1 create table user_location_prefs (
2 user_id integer not null comment 'user who has the preference' references user (id),
3 share_location tinyint default 1 comment 'Whether to share location data',
4 created datetime not null comment 'date this record was created',
5 modified timestamp comment 'date this record was modified',
7 constraint primary key (user_id)
8 ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
12 user_id integer not null comment 'user receiving the notice' references user (id),
13 notice_ids blob comment 'packed list of notice ids',
15 constraint primary key (user_id)
17 ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;