felipeog / dc-shoppingify Goto Github PK
View Code? Open in Web Editor NEWHere I used a devChallenges challenge to experiment with Wasp
Here I used a devChallenges challenge to experiment with Wasp
Ideas
entity User {=psl
id Int @id @default(autoincrement())
username String @unique
password String
itemsLists ItemsList[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
psl=}
entity ItemsList {=psl
id Int @id @default(autoincrement())
name String @default("Shopping list")
listItems ListItem[]
state String @default("ONGOING") // "ONGOING" | "COMPLETED" | "CANCELLED" https://github.com/wasp-lang/wasp/issues/641
user User @relation(fields: [userId], references: [id])
userId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
psl=}
entity ListItem {=psl
id Int @id @default(autoincrement())
amount Int @default(1)
isDone Boolean @default(false)
item Item @relation(fields: [itemId], references: [id])
itemId Int
itemsList ItemsList @relation(fields: [itemsListId], references: [id])
itemsListId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
psl=}
entity Item {=psl
id Int @id @default(autoincrement())
name String @unique
note String?
image String?
listItems ListItem[]
category Category @relation(fields: [categoryId], references: [id])
categoryId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
psl=}
entity Category {=psl
id Int @id @default(autoincrement())
name String @unique
items Item[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
psl=}
Pages
Sidebars
The left-sidebar and right-sidebar should be accessible on all pages
Pages that enable manipulation of all entities that belong to the authenticated user.
Category
Item
ItemsList
ListItem
entity User {=psl
id Int @id @default(autoincrement())
username String @unique
password String
itemsLists ItemsList[]
listItems ListItem[]
items Item[]
categories Category[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
psl=}
entity ItemsList {=psl
id Int @id @default(autoincrement())
name String @default("Shopping list")
listItems ListItem[]
// "ONGOING" | "COMPLETED" | "CANCELLED" https://github.com/wasp-lang/wasp/issues/641
state String @default("ONGOING")
user User @relation(fields: [userId], references: [id])
userId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
psl=}
entity ListItem {=psl
id Int @id @default(autoincrement())
amount Int @default(1)
isDone Boolean @default(false)
item Item @relation(fields: [itemId], references: [id])
itemId Int
itemsList ItemsList @relation(fields: [itemsListId], references: [id])
itemsListId Int
user User @relation(fields: [userId], references: [id])
userId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@unique([itemId, itemsListId, userId])
psl=}
entity Item {=psl
id Int @id @default(autoincrement())
name String
note String?
image String?
listItems ListItem[]
category Category @relation(fields: [categoryId], references: [id])
categoryId Int
user User @relation(fields: [userId], references: [id])
userId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@unique([name, userId])
psl=}
entity Category {=psl
id Int @id @default(autoincrement())
name String
items Item[]
user User @relation(fields: [userId], references: [id])
userId Int
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@unique([name, userId])
psl=}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.