ps73/feathers-prisma

View on GitHub
prisma/schema.prisma

Summary

Maintainability
Test Coverage
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native", "debian-openssl-3.0.x"]
}

datasource db {
  provider = "sqlite"
  url      = "file:./tests.db"
}

model User {
  id      Int      @id @default(autoincrement())
  name    String?
  age     Int?
  time    Int?
  created Boolean?
  todos   Todo[]
}

model Todo {
  id     Int     @id @default(autoincrement())
  title  String
  tag1   String?
  tag2   String?
  done   Boolean @default(false)
  prio   Int     @default(0)
  userId Int
  user   User    @relation(fields: [userId], references: [id])
}

model PeopleId {
  customid Int      @id @default(autoincrement())
  name     String?
  age      Int?
  time     Int?
  created  Boolean?
}

model People {
  id      Int      @id @default(autoincrement())
  name    String
  age     Int?
  time    Int?
  created Boolean?
}