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 6f07a4d commit bfcd04e
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions prisma/public/prisma/schema/_make.prisma
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
// to-do: schema-make.prisma
// ---- @PUBLIC Make: marketplace ----
//
// Public Listings
// Geography or ambients
model PublicMakeSpaces {
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("actionUserOwner", fields: [userOwnerId], references: [id])
userOwnerId String? @db.ObjectId
communityOwner Communities? @relation("actionCommunityOwner", fields: [communityOwnerId], references: [id])
communityOwnerId String? @db.ObjectId
userCreator User? @relation("actionUserCreator", fields: [userCreatorId], references: [id])
userCreatorId String? @db.ObjectId
communityCreator Communities? @relation("actionCommunityCreator", fields: [communityCreatorId], references: [id])
communityCreatorId String? @db.ObjectId
@@map("makeSpaces")
}

// Groceries or shopping lists
model PublicMakeProcurements {
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("actionUserOwner", fields: [userOwnerId], references: [id])
userOwnerId String? @db.ObjectId
communityOwner Communities? @relation("actionCommunityOwner", fields: [communityOwnerId], references: [id])
communityOwnerId String? @db.ObjectId
userCreator User? @relation("actionUserCreator", fields: [userCreatorId], references: [id])
userCreatorId String? @db.ObjectId
communityCreator Communities? @relation("actionCommunityCreator", fields: [communityCreatorId], references: [id])
communityCreatorId String? @db.ObjectId
@@map("makeProcurements")
}

// Listings
model PublicMakeListings {
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("actionUserOwner", fields: [userOwnerId], references: [id])
userOwnerId String? @db.ObjectId
communityOwner Communities? @relation("actionCommunityOwner", fields: [communityOwnerId], references: [id])
communityOwnerId String? @db.ObjectId
userCreator User? @relation("actionUserCreator", fields: [userCreatorId], references: [id])
userCreatorId String? @db.ObjectId
communityCreator Communities? @relation("actionCommunityCreator", fields: [communityCreatorId], references: [id])
communityCreatorId String? @db.ObjectId
@@map("makeListings")
}

0 comments on commit bfcd04e

Please sign in to comment.