mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
6 lines
215 B
TypeScript
6 lines
215 B
TypeScript
|
import {DatabaseManager} from "../DatabaseManager";
|
||
|
export var UserModel = DatabaseManager.getInstance().getModel('user', {
|
||
|
name: {type: String, index: {unique: true}},
|
||
|
password: String,
|
||
|
role: Number
|
||
|
});
|