generated from dreampipcom/nexus
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f07a4d
commit bfcd04e
Showing
1 changed file
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} |