liquid-funding/app/model/schema.js

30 lines
784 B
JavaScript
Raw Normal View History

2019-01-15 14:18:04 +00:00
import { appSchema, tableSchema } from '@nozbe/watermelondb'
export default appSchema({
version: 1,
tables: [
2019-01-15 18:32:55 +00:00
tableSchema({
name: 'lp_events',
columns: [
{ name: 'address', type: 'string' },
{ name: 'event', type: 'string' },
{ name: 'event_id', type: 'string' },
2019-01-15 22:29:02 +00:00
{ name: 'block_number', type: 'number', isIndexed: true },
2019-01-15 18:32:55 +00:00
]
2019-01-16 20:50:49 +00:00
}),
tableSchema({
name: 'profiles',
columns: [
{ name: 'addr', type: 'string' },
{ name: 'canceled', type: 'boolean' },
{ name: 'commit_time', type: 'number' },
{ name: 'type', type: 'string' },
{ name: 'name', type: 'string' },
{ name: 'url', type: 'string' },
{ name: 'id_profile', type: 'number' }
]
2019-01-15 18:32:55 +00:00
})
2019-01-15 14:18:04 +00:00
]
})