Всё переделано, разделено на backend и frontend
This commit is contained in:
27
ospabhost/backend/prisma/schema.prisma
Normal file
27
ospabhost/backend/prisma/schema.prisma
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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 = "mysql"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
username String
|
||||
email String @unique
|
||||
password String
|
||||
createdAt DateTime @default(now())
|
||||
}
|
||||
|
||||
// Пока что у тебя нет других моделей, но ты можешь
|
||||
// добавить их сюда позже, например:
|
||||
// model Plan {
|
||||
// id Int @id @default(autoincrement())
|
||||
// name String @unique
|
||||
// price Float
|
||||
// }
|
||||
Reference in New Issue
Block a user