Add video model

This commit is contained in:
Zoe Roux 2024-11-08 22:27:01 +01:00
parent 6f71b98209
commit 00774230af
No known key found for this signature in database

13
api/src/models/video.ts Normal file
View 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;