-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathFilmList.ts
44 lines (34 loc) · 1.12 KB
/
FilmList.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// @generated
// This file is automatically generated by Kanel. Do not modify manually.
import { filmId, type FilmId } from './Film';
import { mpaaRating, type default as MpaaRating } from './MpaaRating';
import { z } from 'zod';
/** Represents the view public.film_list */
export default interface FilmList {
/** Database type: pg_catalog.int4 */
fid: FilmId;
/** Database type: pg_catalog.varchar */
title: string;
/** Database type: pg_catalog.text */
description: string | null;
/** Database type: pg_catalog.varchar */
category: string;
/** Database type: pg_catalog.numeric */
price: string;
/** Database type: pg_catalog.int2 */
length: number | null;
/** Database type: public.mpaa_rating */
rating: MpaaRating | null;
/** Database type: pg_catalog.text */
actors: string;
}
export const filmList = z.object({
fid: filmId,
title: z.string(),
description: z.string().nullable(),
category: z.string(),
price: z.string(),
length: z.number().nullable(),
rating: mpaaRating.nullable(),
actors: z.string(),
}) as unknown as z.Schema<FilmList>;