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/Member.ts
2021-12-28 19:18:47 +01:00

15 lines
363 B
TypeScript

import { Type, Static } from '@sinclair/typebox'
import { date, id } from './utils'
export const memberSchema = {
id,
isOwner: Type.Boolean({ default: false }),
createdAt: date.createdAt,
updatedAt: date.updatedAt,
userId: id,
guildId: id
}
const memberObjectSchema = Type.Object(memberSchema)
export type Member = Static<typeof memberObjectSchema>