@arsendoman/book-publisher-store
Version:
A Nest.js package for book publishing and storing
18 lines (13 loc) • 329 B
text/typescript
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
export type RoleDocument = Role & Document;
export enum Roles {
SUPER_ADMIN = 'super_admin',
ADMIN = 'admin',
CUSTOMER = 'customer',
}
()
export class Role {
()
title: Roles;
}
export const RoleSchema = SchemaFactory.createForClass(Role);