generator client {
  provider      = "prisma-client-js"
  output        = "./client"
  binaryTargets = ["native", "darwin", "darwin-arm64"]
}

datasource db {
  provider = "sqlite"
  url      = env("DATABASE_URL")
}

model AccountData {
  id        String   @id @unique
  json      String
  updatedAt DateTime @updatedAt
}

model AppData {
  id    String @id @unique
  value String
}

model Track {
  id        Int      @id @unique
  json      String
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}

model Album {
  id        Int      @id @unique
  json      String
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}

model Artist {
  id        Int      @id @unique
  json      String
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}

model ArtistAlbum {
  id        Int      @id @unique
  hotAlbums String
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}

model Playlist {
  id        Int      @id @unique
  json      String
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}

model Audio {
  id        Int      @id @unique
  bitRate   Int
  format    String
  source    String
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}

model Lyrics {
  id        Int      @id @unique
  json      String
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}

model AppleMusicAlbum {
  id        Int      @id @unique
  json      String
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}

model AppleMusicArtist {
  id        Int      @id @unique
  json      String
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}
