You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
818 B
44 lines
818 B
import {PrismaClient} from "../queries/Prisma.js";
|
|
|
|
async function main() {
|
|
const client = new PrismaClient()
|
|
await client.$connect()
|
|
await client.gender.upsert({
|
|
where: {
|
|
id: "f"
|
|
},
|
|
create: {
|
|
id: "f",
|
|
name: "Female"
|
|
},
|
|
update: {
|
|
name: "Female"
|
|
},
|
|
})
|
|
await client.gender.upsert({
|
|
where: {
|
|
id: "m"
|
|
},
|
|
create: {
|
|
id: "m",
|
|
name: "Male"
|
|
},
|
|
update: {
|
|
name: "Male"
|
|
},
|
|
})
|
|
await client.gender.upsert({
|
|
where: {
|
|
id: "x"
|
|
},
|
|
create: {
|
|
id: "x",
|
|
name: "Non-binary"
|
|
},
|
|
update: {
|
|
name: "Non-binary"
|
|
},
|
|
})
|
|
}
|
|
|
|
main() |