37 lines
826 B
JavaScript
37 lines
826 B
JavaScript
import { Model } from '@nozbe/watermelondb';
|
|
import { date, field } from '@nozbe/watermelondb/decorators';
|
|
|
|
export const SERVERS_TABLE = 'servers';
|
|
|
|
export default class Server extends Model {
|
|
static table = SERVERS_TABLE;
|
|
|
|
@field('name') name;
|
|
|
|
@field('icon_url') iconURL;
|
|
|
|
@field('use_real_name') useRealName;
|
|
|
|
@field('file_upload_media_type_white_list') FileUpload_MediaTypeWhiteList;
|
|
|
|
@field('file_upload_max_file_size') FileUpload_MaxFileSize;
|
|
|
|
@date('rooms_updated_at') roomsUpdatedAt;
|
|
|
|
@field('version') version;
|
|
|
|
@date('last_local_authenticated_session') lastLocalAuthenticatedSession;
|
|
|
|
@field('auto_lock') autoLock;
|
|
|
|
@field('auto_lock_time') autoLockTime;
|
|
|
|
@field('biometry') biometry;
|
|
|
|
@field('unique_id') uniqueID;
|
|
|
|
@field('enterprise_modules') enterpriseModules;
|
|
|
|
@field('e2e_enable') E2E_Enable;
|
|
}
|