|
- generator client {
- provider = "prisma-client-js"
- }
-
- datasource db {
- provider = "sqlite"
- url = env("DATABASE_URL")
- }
-
- model Ringtone {
- id Bytes @id
- name String
- composerUserId Bytes @map("composer_user_id")
- tempo Int @default(120)
- data String @default("")
- createdAt DateTime @default(now()) @map("created_at")
- updatedAt DateTime @default(now()) @map("updated_at")
- deletedAt DateTime? @map("deleted_at")
- user User @relation(fields: [composerUserId], references: [id])
-
- @@map("ringtone")
- }
-
- model User {
- id Bytes @id
- username String @unique
- password String
- ringtone Ringtone[]
- userProfile UserProfile?
-
- @@map("user")
- }
-
- model UserProfile {
- userId Bytes @id @map("user_id")
- bio String? @default("")
- email String? @default("")
- user User @relation(fields: [userId], references: [id])
-
- @@map("user_profile")
- }
|