13 lines
297 B
JavaScript
13 lines
297 B
JavaScript
import { Model } from '@nozbe/watermelondb';
|
|
import { date, json } from '@nozbe/watermelondb/decorators';
|
|
|
|
import { sanitizer } from '../utils';
|
|
|
|
export default class Permission extends Model {
|
|
static table = 'permissions';
|
|
|
|
@json('roles', sanitizer) roles;
|
|
|
|
@date('_updated_at') _updatedAt;
|
|
}
|