import { prop } from '@typegoose/typegoose'; export default class Rank { @prop({ required: true }) public name: string; @prop({ required: true }) public roleID: string; @prop({ default: [] }) public permissions: string[]; @prop() public description: string; }