forked from LeenkxTeam/Kmake
19 lines
268 B
TypeScript
19 lines
268 B
TypeScript
|
|
enum UserType {
|
||
|
|
Staff,
|
||
|
|
Admin,
|
||
|
|
};
|
||
|
|
|
||
|
|
class UserAccount {
|
||
|
|
name: string;
|
||
|
|
id: number;
|
||
|
|
type: UserType;
|
||
|
|
|
||
|
|
constructor(name: string, id: number, type: UserType) {
|
||
|
|
this.name = name;
|
||
|
|
this.id = id;
|
||
|
|
this.type = type;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export { UserAccount, UserType };
|