feat : Création de toutes les entités

This commit is contained in:
Yaël Perret
2026-09-01 17:18:28 +02:00
parent d4246aa2c8
commit d8aa9956d0
32 changed files with 529 additions and 5 deletions

16
src/models/post_media.ts Normal file
View File

@@ -0,0 +1,16 @@
import { z } from 'zod';
import { uuidSchema } from './_shared';
export const postMediaTypeSchema = z.enum(['IMAGE', 'VIDEO']);
export const postMediaSchema = z.object({
id: uuidSchema,
post_id: uuidSchema,
url: z.string().url(),
type: postMediaTypeSchema,
duration_seconds: z.number().int().min(0).nullable(),
display_order: z.number().int().default(0),
});
export type PostMedia = z.infer<typeof postMediaSchema>;