mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add video model
This commit is contained in:
parent
6f71b98209
commit
00774230af
13
api/src/models/video.ts
Normal file
13
api/src/models/video.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { t } from "elysia";
|
||||
|
||||
export const Video = t.Object({
|
||||
id: t.String({ format: "uuid" }),
|
||||
path: t.String(),
|
||||
rendering: t.Number({ minimum: 0 }),
|
||||
part: t.Number({ minimum: 0 }),
|
||||
version: t.Number({ minimum: 0 }),
|
||||
|
||||
createdAt: t.String({ format: "date-time" }),
|
||||
});
|
||||
|
||||
export type Video = typeof Video.static;
|
Loading…
x
Reference in New Issue
Block a user