Files
vitify-nuxt/prisma/schema.prisma
2025-04-22 11:06:33 +07:00

130 lines
2.7 KiB
Plaintext

generator client {
provider = "prisma-client-js"
previewFeatures = ["prismaSchemaFolder"]
}
datasource db {
provider = "mongodb"
url = env("MONGODB_URL")
}
model Test {
id String @id @default(auto()) @map("_id") @db.ObjectId
name String @unique
}
// model MasterCountry {
// id String @id @map("_id")
// name String @unique
// }
// model MasterAddress {
// id String @id @map("_id")
// name String @unique
// alt_name String?
// latitude Float?
// longitude Float?
// regencies Regency[]
// }
// type Regency {
// id String @map("_id")
// province_id String
// name String
// alt_name String?
// latitude Float?
// longitude Float?
// districts District[]
// }
// type District {
// id String @map("_id")
// regency_id String
// name String
// alt_name String?
// latitude Float?
// longitude Float?
// villages Village[]
// }
// type Village {
// id String @map("_id")
// district_id String
// name String
// }
// model Postal {
// id Int @id @map("_id")
// name String?
// postal Int[]
// }
// model Practitioner {
// id String @id @default(auto()) @map("_id") @db.ObjectId
// active Boolean @default(true)
// identifier Identifier[]
// name HumanName[]
// telecom ContactPoint[]
// gender String @default("unknown")
// birthDate DateTime?
// birthPlace String?
// // deceased Deceased?
// address AddressType[]
// communication BackboneElementCommunication[]
// }
// type Identifier {
// name String
// value String
// }
// type HumanName {
// use String @default("usual")
// text String?
// family String?
// given String[]
// prefix String[]
// suffix String[]
// period Period?
// }
// type Period {
// start DateTime @default(now())
// end DateTime?
// }
// type ContactPoint {
// system String @default("phone")
// use String @default("home")
// value String
// period Period?
// }
// type Deceased {
// deceasedBoolean Boolean?
// deceasedDateTime DateTime?
// }
// type AddressType {
// use String @default("home")
// type String @default("physical")
// text String?
// line String[]
// village String?
// district String?
// city String?
// state String?
// country String?
// postalCode String
// period Period?
// }
// type BackboneElementCommunication {
// language CodeableConceptLanguage
// preferred Boolean?
// }
// type CodeableConceptLanguage {
// text String?
// }