6 PRIMARY KEY(lname, fname)
8 CREATE INDEX users_username_idx ON users(username);
9 CREATE INDEX users_fname_idx ON users(fname);
10 CREATE INDEX users_lname_idx ON users(lname);
11 CREATE INDEX users_userid_idx ON users(userid);
12 CREATE TABLE taxonomy (
13 id serial primary key,
17 accession text not null primary key,
19 txid int2 not null references taxonomy(id)
21 CREATE TABLE sequences (
22 eid int4 not null references entry(eid),
23 pid serial primary key,
24 product text not null,
25 sequence text not null,
26 multipart bool default 'false'
28 CREATE INDEX sequences_product_idx ON sequences(product) ;
29 CREATE TABLE xsequences (
30 pid int4 not null references sequences(pid),
31 sequence text not null
33 CREATE INDEX xsequences_pid_idx ON xsequences(pid) ;