-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Showing
9 changed files
with
34 additions
and
26 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
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,24 @@ | ||
datasource db { | ||
provider = "sqlite" | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
generator client { | ||
provider = "prisma-client-js" | ||
} | ||
|
||
// Use Prisma Schema file to define your entities: https://www.prisma.io/docs/concepts/components/prisma-schema | ||
// Run `wasp db migrate-dev` in the CLI to create the database tables | ||
// Then run `wasp db studio` to open Prisma Studio and view your db models | ||
model User { | ||
id Int @id @default(autoincrement()) | ||
tasks Task[] | ||
} | ||
|
||
model Task { | ||
id Int @id @default(autoincrement()) | ||
description String | ||
isDone Boolean @default(false) | ||
user User @relation(fields: [userId], references: [id]) | ||
userId Int | ||
} |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes