mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-30 14:18:22 -05:00
Changed ACCESS_LEVEL to enum
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import { Model, HydratedDocument } from 'mongoose';
|
||||
|
||||
type DEVICE = 'wiiu' | '3ds';
|
||||
type ACCESS_LEVEL = 0 | 1 | 2 | 3;
|
||||
enum ACCESS_LEVEL {
|
||||
User = 0,
|
||||
Admin = 1,
|
||||
Owner = 2,
|
||||
Dev = 3
|
||||
}
|
||||
|
||||
export interface INEXAccount {
|
||||
device_type: DEVICE;
|
||||
|
||||
Reference in New Issue
Block a user