vn-verdnaturachat/app/lib/database/model/Permission.js

15 lines
350 B
JavaScript

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