Changed ACCESS_LEVEL to enum

This commit is contained in:
Jonathan Barrow
2023-03-18 17:04:32 -04:00
parent a2415faab8
commit 5c7738d1d0

View File

@@ -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;