···330 verified text, -- time of verification
331 created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
332333- unique(instance)
0000000000000000334 );
335336 create table if not exists pipelines (
···330 verified text, -- time of verification
331 created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
332333+ unique(did, instance)
334+ );
335+336+ create table if not exists spindle_members (
337+ -- identifiers for the record
338+ id integer primary key autoincrement,
339+ did text not null,
340+ rkey text not null,
341+342+ -- data
343+ instance text not null,
344+ subject text not null,
345+ created text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
346+347+ -- constraints
348+ foreign key (did, instance) references spindles(owner, instance) on delete cascade,
349+ unique (did, instance, subject)
350 );
351352 create table if not exists pipelines (