mirror of
https://github.com/Floriansylvain/CineAllo.git
synced 2026-10-18 20:34:11 +02:00
🗃️ - Added likes field in show table db
This commit is contained in:
1 parent
98db7693bc
commit
71a451c4f4
2 files changed
+10
-7
No files matched your search
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE `Serie` ADD COLUMN `likes` INTEGER NOT NULL DEFAULT 0;
|
||||
@@ -2,17 +2,18 @@
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "mysql"
|
||||
url = env("DATABASE_URL")
|
||||
provider = "mysql"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model Serie {
|
||||
title String @id
|
||||
date Int
|
||||
description String @db.VarChar(2000)
|
||||
thumbmailURL String @db.VarChar(2048)
|
||||
title String @id
|
||||
date Int
|
||||
description String @db.VarChar(2000)
|
||||
thumbmailURL String @db.VarChar(2048)
|
||||
likes Int @default(0)
|
||||
}
|
||||
Reference in new issue
Block a user