aboutsummaryrefslogtreecommitdiffstats
path: root/prisma/schema.prisma
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-01-07 01:10:06 -0800
committerPinapelz <yukais@pinapelz.com>2025-01-07 01:10:06 -0800
commitd2637f982fa00e034d3dbb7c5aa4d03118bf73c3 (patch)
treeb9f054e48ec8e66c23e7dbedaebb7da7aa69d721 /prisma/schema.prisma
parent0c4520544bb5ecc63e833f5e344cf8cd071854cb (diff)
add prisma ORM and schema for DBbrowser
Diffstat (limited to 'prisma/schema.prisma')
-rw-r--r--prisma/schema.prisma20
1 files changed, 20 insertions, 0 deletions
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")
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage