12 lines
282 B
TypeScript
12 lines
282 B
TypeScript
import { object, date, number, string } from 'zod'
|
|
import { iUserSchema } from './user-zod'
|
|
|
|
export const iSubscriptionSchema = object({
|
|
id: number(),
|
|
entity: string(), // FIXME: correct type?
|
|
entityId: number(), // FIXME: correct type?
|
|
user: iUserSchema,
|
|
|
|
created: date(),
|
|
})
|