18 lines
399 B
TypeScript
18 lines
399 B
TypeScript
|
import { object, date, number, string, array, boolean } from 'zod'
|
||
|
import { iUserSchema } from './user-zod'
|
||
|
import { iTaskSchema } from './task-zod'
|
||
|
|
||
|
export const iAvatarSchema = object({
|
||
|
id: number(),
|
||
|
title: string(),
|
||
|
listId: number(),
|
||
|
limit: number(),
|
||
|
tasks: array(iTaskSchema),
|
||
|
isDoneBucket: boolean(),
|
||
|
position: number(),
|
||
|
|
||
|
createdBy: iUserSchema,
|
||
|
created: date(),
|
||
|
updated: date(),
|
||
|
})
|