-
Notifications
You must be signed in to change notification settings - Fork 0
/
webschema.sql
87 lines (77 loc) · 2.11 KB
/
webschema.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
--
-- "web" schema: auxiliary tables supporting various website scripts
--
drop schema if exists web cascade;
create schema web;
grant usage on schema web to public;
grant select on all tables in schema web to public;
alter default privileges in schema web grant select on tables to public;
set search_path = web, pg_catalog;
create table dep2accno (
depno text not null,
accno text not null
);
create table procque (
accno text not null,
received date not null,
onhold text not null,
status text,
released date
);
create sequence pulsefilelist_id_seq;
create table pulsefilelist (
id integer not null default nextval('pulsefilelist_id_seq'),
accnum integer,
mfg text,
exptype text,
dimension text,
file text,
name text
);
alter sequence pulsefilelist_id_seq owned by pulsefilelist.id;
create table termlist (
term text,
expansion text,
description text,
isprimary text
);
-- related_entries: database_name, database_accession_code, relationship
--
-- assembly_db_link: author_supplied, database_code, accession_code,
-- entry_mol_code, entry_mol_name, entry_experimental_method, entry_structure_resolution,
-- entry_relationship_type, entry_details
--
-- entity_db_link: author_supplied, database_code, accession_code,
-- entry_mol_code, entry_mol_name, entry_experimental_method, entry_structure_resolution,
-- entry_relationship_type, entry_details,
-- [...BLAST fields...]
--
-- chem_comp_db_link: author_supplied, database_code, accession_code, accession_code_type,
-- entry_mol_code, entry_mol_name,
-- entry_relationship_type, entry_details
--
-- pdb_link: bmrb_id, pdb_id
--
-- uniprot_mappings: id, bmrb_id, entity_id, pdb_chain_id, pdb_id,
-- link_type: (author, blast, pdb),
-- uniprot_id, protein_sequence,details
--
-- web.related_entries (?)
-- bmrb_id
-- entity_id
-- link_type
-- db_name
-- db_id
-- db_subid
-- protein_sequence
-- exptl_method
-- quality_factor (?)
-- details
--
-- for now however just add pdb_link
--
create table pdb_link (
bmrb_id text not null,
pdb_id text not null
);
-- eof