25 lines
476 B
JavaScript
25 lines
476 B
JavaScript
import { Model } from '@nozbe/watermelondb';
|
|
import { field, json } from '@nozbe/watermelondb/decorators';
|
|
|
|
import { sanitizer } from '../utils';
|
|
|
|
export default class User extends Model {
|
|
static table = 'users';
|
|
|
|
@field('token') token;
|
|
|
|
@field('username') username;
|
|
|
|
@field('name') name;
|
|
|
|
@field('language') language;
|
|
|
|
@field('status') status;
|
|
|
|
@field('statusText') statusText;
|
|
|
|
@field('login_email_password') loginEmailPassword;
|
|
|
|
@json('roles', sanitizer) roles;
|
|
}
|