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