This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-05 06:24:30 +00:00
|
|
|
// @flow
|
2020-11-15 04:44:31 +00:00
|
|
|
import { computed } from "mobx";
|
2020-06-20 20:59:15 +00:00
|
|
|
import BaseModel from "./BaseModel";
|
2018-12-05 06:24:30 +00:00
|
|
|
|
|
|
|
class User extends BaseModel {
|
|
|
|
avatarUrl: string;
|
|
|
|
id: string;
|
|
|
|
name: string;
|
|
|
|
email: string;
|
|
|
|
isAdmin: boolean;
|
2019-09-15 22:28:11 +00:00
|
|
|
lastActiveAt: string;
|
2018-12-05 06:24:30 +00:00
|
|
|
isSuspended: boolean;
|
|
|
|
createdAt: string;
|
2020-11-30 04:04:58 +00:00
|
|
|
language: string;
|
2020-11-15 04:44:31 +00:00
|
|
|
|
|
|
|
@computed
|
|
|
|
get isInvited(): boolean {
|
|
|
|
return !this.lastActiveAt;
|
|
|
|
}
|
2018-12-05 06:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default User;
|