liquid-funding/app/model/profiles.js

21 lines
425 B
JavaScript
Raw Normal View History

2019-01-16 20:50:49 +00:00
import { Model } from '@nozbe/watermelondb'
import { fieldGenerator } from '../utils/db'
export default class Profiles extends Model {
constructor(...args) {
super(...args)
const field = fieldGenerator(this)
field('addr')
field('canceled')
field('commit_time', 'commitTime')
field('type')
field('name')
field('url')
field('id_profile', 'idProfile')
}
static table = 'profiles'
}