mirror of
https://github.com/Floriansylvain/CineAllo.git
synced 2026-08-19 19:53:16 +02:00
🗃️ - Added correct Model for CineAllo series
This commit is contained in:
@@ -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;
|
||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user