theNorms commited on
Commit
cb27a07
·
verified ·
1 Parent(s): c01e9fa

Upload project files

Browse files
Files changed (1) hide show
  1. prisma/schema.prisma +32 -0
prisma/schema.prisma ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // This is your Prisma schema file,
2
+ // learn more about it in the docs: https://pris.ly/d/prisma-schema
3
+
4
+ // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
5
+ // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
6
+
7
+ generator client {
8
+ provider = "prisma-client-js"
9
+ }
10
+
11
+ datasource db {
12
+ provider = "sqlite"
13
+ url = env("DATABASE_URL")
14
+ }
15
+
16
+ model User {
17
+ id String @id @default(cuid())
18
+ email String @unique
19
+ name String?
20
+ createdAt DateTime @default(now())
21
+ updatedAt DateTime @updatedAt
22
+ }
23
+
24
+ model Post {
25
+ id String @id @default(cuid())
26
+ title String
27
+ content String?
28
+ published Boolean @default(false)
29
+ authorId String
30
+ createdAt DateTime @default(now())
31
+ updatedAt DateTime @updatedAt
32
+ }