15 lines
411 B
TypeScript
15 lines
411 B
TypeScript
import type { TypeOf } from 'zod'
|
|
|
|
import { DateSchema } from './common/date'
|
|
import { IdSchema } from './common/id'
|
|
|
|
import { AbstractSchema } from './abstract'
|
|
|
|
export const TaskAssigneeSchema = AbstractSchema.extend({
|
|
created: DateSchema.nullable(),
|
|
userId: IdSchema.default(0), // IUser['id']
|
|
taskId: IdSchema.default(0), // ITask['id']
|
|
})
|
|
|
|
export type TaskAssignee = TypeOf<typeof TaskAssigneeSchema>
|