17 lines
441 B
TypeScript
17 lines
441 B
TypeScript
import type { ObjectId } from "mongodb";
|
|
import type Building from "./Building";
|
|
import type DBResource from "./DBResource";
|
|
import type Research from "./Research";
|
|
|
|
export default interface User {
|
|
_id: ObjectId;
|
|
username: string;
|
|
email: string;
|
|
password: string;
|
|
lastLogin: Date;
|
|
resources: Array<DBResource>;
|
|
buildings: Array<Building>;
|
|
research: Array<Research>;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
} |