🗃️ - 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;
+8 -6
View File
@@ -2,15 +2,17 @@
// 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 Article {
id Int @id @default(autoincrement())
title String
model Serie {
title String @id
date Int
description String @db.VarChar(2000)
thumbmailURL String @db.VarChar(2048)
}