From d2637f982fa00e034d3dbb7c5aa4d03118bf73c3 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 7 Jan 2025 01:10:06 -0800 Subject: add prisma ORM and schema for DB --- prisma/schema.prisma | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 prisma/schema.prisma (limited to 'prisma') diff --git a/prisma/schema.prisma b/prisma/schema.prisma new file mode 100644 index 0000000..dc9edf7 --- /dev/null +++ b/prisma/schema.prisma @@ -0,0 +1,20 @@ +generator client { + provider = "prisma-client-js" +} + +datasource db { + provider = "postgresql" + url = env("DATABASE_URL") +} + +model KaraokeSong { + id Int @id @default(autoincrement()) + title String @map("title") + artist String @map("artist") + linkToMediaFile1 String @map("link_to_media_file_1") + linkToMediaFile2 String? @map("link_to_media_file_2") + linkToLrc String @map("link_to_lrc") + linkToSrv3 String @map("link_to_srv3") + thumbnail String? @map("thumbnail") + @@map("karaoke_songs") +} -- cgit v1.2.3