This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/models/utils.ts

15 lines
345 B
TypeScript
Raw Normal View History

import { Type } from "@sinclair/typebox"
export const date = {
createdAt: Type.String({
format: "date-time",
description: "Created date time",
}),
updatedAt: Type.String({
format: "date-time",
description: "Last updated date time",
}),
}
export const id = Type.Integer({ minimum: 1, description: "Unique identifier" })