mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 01:36:30 +02:00
25 lines
481 B
GraphQL
25 lines
481 B
GraphQL
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")
|
|
}
|