Skip to content

Commit

Permalink
ar(fix) [DPCP-NAN]: schemas FY
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Jan 7, 2025
1 parent bb7b2a0 commit 942f876
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 84 deletions.
84 changes: 0 additions & 84 deletions prisma/schema-fii.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -77,88 +77,4 @@ model InvestWallets {
communityCreatorId String? @db.ObjectId
@@map("investWallets")
}

model InvestCareEulogy {
id String @id @default(auto()) @map("_id") @db.ObjectId
name ILocaleString
slug String
description ILocaleString
title ILocaleString
body ILocaleString
loggedOn DateTime @db.Date
loggedFor DateTime[] @db.Date
publishedOn DateTime @db.Date
userOwner User? @relation("thoughtUserOwner", fields: [userOwnerId], references: [id])
userOwnerId String? @db.ObjectId
communityOwner Communities? @relation("thoughtCommunityOwner", fields: [communityOwnerId], references: [id])
communityOwnerId String? @db.ObjectId
userCreator User? @relation("thoughtUserCreator", fields: [userCreatorId], references: [id])
userCreatorId String? @db.ObjectId
communityCreator Communities? @relation("thoughtCommunityCreator", fields: [communityCreatorId], references: [id])
communityCreatorId String? @db.ObjectId
@@map("investCareEulogy")
}

model InvestCareImprovementPlan {
id String @id @default(auto()) @map("_id") @db.ObjectId
name ILocaleString
slug String
description ILocaleString
title ILocaleString
body ILocaleString
loggedOn DateTime @db.Date
loggedFor DateTime[] @db.Date
publishedOn DateTime @db.Date
userOwner User? @relation("thoughtUserOwner", fields: [userOwnerId], references: [id])
userOwnerId String? @db.ObjectId
communityOwner Communities? @relation("thoughtCommunityOwner", fields: [communityOwnerId], references: [id])
communityOwnerId String? @db.ObjectId
userCreator User? @relation("thoughtUserCreator", fields: [userCreatorId], references: [id])
userCreatorId String? @db.ObjectId
communityCreator Communities? @relation("thoughtCommunityCreator", fields: [communityCreatorId], references: [id])
communityCreatorId String? @db.ObjectId
@@map("investCareImprovementPlan")
}

model CareTypes {
id String @id @default(auto()) @map("_id") @db.ObjectId
name ILocaleString
slug String
description ILocaleString
title ILocaleString
body ILocaleString
loggedOn DateTime @db.Date
loggedFor DateTime[] @db.Date
publishedOn DateTime @db.Date
userOwner User? @relation("thoughtUserOwner", fields: [userOwnerId], references: [id])
userOwnerId String? @db.ObjectId
communityOwner Communities? @relation("thoughtCommunityOwner", fields: [communityOwnerId], references: [id])
communityOwnerId String? @db.ObjectId
userCreator User? @relation("thoughtUserCreator", fields: [userCreatorId], references: [id])
userCreatorId String? @db.ObjectId
communityCreator Communities? @relation("thoughtCommunityCreator", fields: [communityCreatorId], references: [id])
communityCreatorId String? @db.ObjectId
@@map("careTypes")
}
84 changes: 84 additions & 0 deletions prisma/schema-invest.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,88 @@ datasource db {
provider = "mongodb"
url = env("PRISMA_INVEST_URI")
directUrl = env("MONGODB_INVEST_URI")
}

model InvestCareEulogy {
id String @id @default(auto()) @map("_id") @db.ObjectId
name ILocaleString
slug String
description ILocaleString
title ILocaleString
body ILocaleString
loggedOn DateTime @db.Date
loggedFor DateTime[] @db.Date
publishedOn DateTime @db.Date
userOwner User? @relation("thoughtUserOwner", fields: [userOwnerId], references: [id])
userOwnerId String? @db.ObjectId
communityOwner Communities? @relation("thoughtCommunityOwner", fields: [communityOwnerId], references: [id])
communityOwnerId String? @db.ObjectId
userCreator User? @relation("thoughtUserCreator", fields: [userCreatorId], references: [id])
userCreatorId String? @db.ObjectId
communityCreator Communities? @relation("thoughtCommunityCreator", fields: [communityCreatorId], references: [id])
communityCreatorId String? @db.ObjectId
@@map("investCareEulogy")
}

model InvestCareImprovementPlan {
id String @id @default(auto()) @map("_id") @db.ObjectId
name ILocaleString
slug String
description ILocaleString
title ILocaleString
body ILocaleString
loggedOn DateTime @db.Date
loggedFor DateTime[] @db.Date
publishedOn DateTime @db.Date
userOwner User? @relation("thoughtUserOwner", fields: [userOwnerId], references: [id])
userOwnerId String? @db.ObjectId
communityOwner Communities? @relation("thoughtCommunityOwner", fields: [communityOwnerId], references: [id])
communityOwnerId String? @db.ObjectId
userCreator User? @relation("thoughtUserCreator", fields: [userCreatorId], references: [id])
userCreatorId String? @db.ObjectId
communityCreator Communities? @relation("thoughtCommunityCreator", fields: [communityCreatorId], references: [id])
communityCreatorId String? @db.ObjectId
@@map("investCareImprovementPlan")
}

model CareTypes {
id String @id @default(auto()) @map("_id") @db.ObjectId
name ILocaleString
slug String
description ILocaleString
title ILocaleString
body ILocaleString
loggedOn DateTime @db.Date
loggedFor DateTime[] @db.Date
publishedOn DateTime @db.Date
userOwner User? @relation("thoughtUserOwner", fields: [userOwnerId], references: [id])
userOwnerId String? @db.ObjectId
communityOwner Communities? @relation("thoughtCommunityOwner", fields: [communityOwnerId], references: [id])
communityOwnerId String? @db.ObjectId
userCreator User? @relation("thoughtUserCreator", fields: [userCreatorId], references: [id])
userCreatorId String? @db.ObjectId
communityCreator Communities? @relation("thoughtCommunityCreator", fields: [communityCreatorId], references: [id])
communityCreatorId String? @db.ObjectId
@@map("careTypes")
}

0 comments on commit 942f876

Please sign in to comment.