made the connection tables
This commit is contained in:
@@ -199,8 +199,10 @@ model ConnectDetails {
|
||||
id Int @id @default(autoincrement())
|
||||
userXid Int @map("user_xid")
|
||||
user User @relation(fields: [userXid], references: [id], onDelete: Cascade)
|
||||
connectXid Int @map("connect_xid")
|
||||
connect Connections @relation(fields: [connectXid], references: [id], onDelete: Cascade)
|
||||
schoolCompanyXid Int @map("school_company_xid")
|
||||
schoolCompany SchoolCompany @relation(fields: [schoolCompanyXid], references: [id], onDelete: Restrict)
|
||||
connectionXid Int @map("connection_xid")
|
||||
connect Connections @relation(fields: [connectionXid], references: [id], onDelete: Cascade)
|
||||
isActive Boolean @default(true) @map("is_active")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
@@ -258,6 +260,20 @@ model UserBucketInterested {
|
||||
@@schema("usr")
|
||||
}
|
||||
|
||||
model SchoolCompany {
|
||||
id Int @id @default(autoincrement())
|
||||
schoolCompanyName String @map("school_company_name") @db.VarChar(255)
|
||||
isSchool Boolean @map("is_school")
|
||||
isActive Boolean @default(true) @map("is_active")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
deletedAt DateTime? @map("deleted_at")
|
||||
connectDetails ConnectDetails[]
|
||||
|
||||
@@map("school_company")
|
||||
@@schema("mst")
|
||||
}
|
||||
|
||||
model Countries {
|
||||
id Int @id @default(autoincrement())
|
||||
countryName String @unique @map("country_name") @db.VarChar(50)
|
||||
|
||||
Reference in New Issue
Block a user