-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.js
29 lines (26 loc) · 851 Bytes
/
schema.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import {appSchema, tableSchema} from '@nozbe/watermelondb'
export default appSchema({
version: 1,
tables: [
tableSchema({
name: 'users',
columns: [
{name: 'email', type: 'string'},
{name: 'first_name', type: 'string'},
{name: 'middle_name', type: 'string'},
{name: 'last_name', type: 'string'},
{name: 'username', type: 'string'},
{name: 'profile_image', type: 'string'},
{name: 'image', type: 'string'},
{name: 'gender', type: 'string'},
{name: 'phone_number', type: 'string'},
{name: 'occupation', type: 'string'},
{name: 'address', type: 'string'},
{name: 'city', type: 'string'},
{name: 'zip', type: 'string'},
{name: 'state', type: 'string'},
{name: 'country', type: 'string'},
],
}),
],
})