···8181 id integer primary key autoincrement,
8282 owner_did text not null,
8383 repo_at text not null,
8484- issue_id integer not null unique,
8484+ issue_id integer not null,
8585 title text not null,
8686 body text not null,
8787 open integer not null default 1,
···100100 body text not null,
101101 created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
102102 unique(issue_id, comment_id),
103103- foreign key (issue_id) references issues(issue_id) on delete cascade
103103+ foreign key (repo_at, issue_id) references issues(repo_at, issue_id) on delete cascade
104104 );
105105 create table if not exists _jetstream (
106106 id integer primary key autoincrement,