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;
|
||||||
@@ -2,15 +2,17 @@
|
|||||||
// 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 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