first commit
This commit is contained in:
23
nest-websocket/prisma/schema.prisma
Normal file
23
nest-websocket/prisma/schema.prisma
Normal file
@@ -0,0 +1,23 @@
|
||||
// This is your Prisma schema file,
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "postgres"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model user {
|
||||
id String @id() @default(uuid())
|
||||
username String
|
||||
}
|
||||
|
||||
model message {
|
||||
id String @id() @default(uuid())
|
||||
content String
|
||||
userId String
|
||||
createAt DateTime @default(now())
|
||||
}
|
||||
Reference in New Issue
Block a user