mirror of
https://github.com/Floriansylvain/CineAllo.git
synced 2026-08-19 11:43:24 +02:00
🗃️ - Added likes field in show table db
This commit is contained in:
@@ -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
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||||
|
|
||||||
generator client {
|
generator client {
|
||||||
provider = "prisma-client-js"
|
provider = "prisma-client-js"
|
||||||
}
|
}
|
||||||
|
|
||||||
datasource db {
|
datasource db {
|
||||||
provider = "mysql"
|
provider = "mysql"
|
||||||
url = env("DATABASE_URL")
|
url = env("DATABASE_URL")
|
||||||
}
|
}
|
||||||
|
|
||||||
model Serie {
|
model Serie {
|
||||||
title String @id
|
title String @id
|
||||||
date Int
|
date Int
|
||||||
description String @db.VarChar(2000)
|
description String @db.VarChar(2000)
|
||||||
thumbmailURL String @db.VarChar(2048)
|
thumbmailURL String @db.VarChar(2048)
|
||||||
|
likes Int @default(0)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user