···107 -- identifiers
108 id integer primary key autoincrement,
109 pull_id integer not null,
110-111 -- at identifiers
112 repo_at text not null,
113 owner_did text not null,
···194 created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
195 foreign key (repo_at) references repos(at_uri) on delete cascade,
196 unique(starred_by_did, repo_at)
00000000000197 );
198199 create table if not exists migrations (
···107 -- identifiers
108 id integer primary key autoincrement,
109 pull_id integer not null,
110+111 -- at identifiers
112 repo_at text not null,
113 owner_did text not null,
···194 created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
195 foreign key (repo_at) references repos(at_uri) on delete cascade,
196 unique(starred_by_did, repo_at)
197+ );
198+199+ create table if not exists emails (
200+ id integer primary key autoincrement,
201+ did text not null,
202+ email text not null,
203+ verified integer not null default 0,
204+ verification_code text not null,
205+ is_primary integer not null default 0,
206+ created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
207+ unique(did, email)
208 );
209210 create table if not exists migrations (