mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-30 19:36:25 +02:00
26 lines
481 B
Text
26 lines
481 B
Text
|
|
type User @table {
|
||
|
|
id: String! @default(expr: "auth.uid")
|
||
|
|
username: String! @col(dataType: "varchar(50)")
|
||
|
|
}
|
||
|
|
|
||
|
|
type Movie @table {
|
||
|
|
title: String!
|
||
|
|
imageUrl: String!
|
||
|
|
genre: String
|
||
|
|
}
|
||
|
|
|
||
|
|
type MovieMetadata @table {
|
||
|
|
movie: Movie! @unique
|
||
|
|
rating: Float
|
||
|
|
releaseYear: Int
|
||
|
|
description: String
|
||
|
|
}
|
||
|
|
|
||
|
|
type Review @table(name: "Reviews", key: ["movie", "user"]) {
|
||
|
|
user: User!
|
||
|
|
movie: Movie!
|
||
|
|
rating: Int
|
||
|
|
reviewText: String
|
||
|
|
reviewDate: Date! @default(expr: "request.time")
|
||
|
|
}
|