🗃️ - Added correct Model for CineAllo series

This commit is contained in:
Florian Sylvain
2022-11-10 11:07:45 +01:00
parent 35c48ace4d
commit b92aba3a8d
2 changed files with 26 additions and 6 deletions
@@ -0,0 +1,18 @@
/*
Warnings:
- You are about to drop the `Article` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropTable
DROP TABLE `Article`;
-- CreateTable
CREATE TABLE `Serie` (
`title` VARCHAR(191) NOT NULL,
`date` INTEGER NOT NULL,
`description` VARCHAR(2000) NOT NULL,
`thumbmailURL` VARCHAR(2048) NOT NULL,
PRIMARY KEY (`title`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
+5 -3
View File
@@ -10,7 +10,9 @@ datasource db {
url = env("DATABASE_URL") url = env("DATABASE_URL")
} }
model Article { model Serie {
id Int @id @default(autoincrement()) title String @id
title String date Int
description String @db.VarChar(2000)
thumbmailURL String @db.VarChar(2048)
} }