verdnatura-chat/app/lib/database/model/ServersHistory.js

13 lines
301 B
JavaScript

import { Model } from '@nozbe/watermelondb';
import { field, date, readonly } from '@nozbe/watermelondb/decorators';
export default class ServersHistory extends Model {
static table = 'servers_history';
@field('url') url;
@field('username') username;
@readonly @date('updated_at') updatedAt
}