Difference between revisions of "Schema"
(Created page with 'CREATE TABLE BufferComponent ( id INTEGER PRIMARY KEY, name VARCHAR(40), componentRhoId INTEGER, componentViscId INTEGER, componentD...') |
|||
Line 9: | Line 9: | ||
modified DATE | modified DATE | ||
); | ); | ||
+ | |||
+ | <br> | ||
+ | |||
CREATE TABLE amino ( | CREATE TABLE amino ( | ||
"id" INTEGER PRIMARY KEY, | "id" INTEGER PRIMARY KEY, | ||
Line 23: | Line 26: | ||
"pka" DOUBLE, | "pka" DOUBLE, | ||
"active" INTEGER NOT NULL DEFAULT (1), modified DATE); | "active" INTEGER NOT NULL DEFAULT (1), modified DATE); | ||
+ | |||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE aminoComposition( | CREATE TABLE aminoComposition( | ||
id INTEGER PRIMARY KEY, | id INTEGER PRIMARY KEY, | ||
Line 31: | Line 39: | ||
modified DATE | modified DATE | ||
); | ); | ||
+ | |||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE buffer ( | CREATE TABLE buffer ( | ||
id INTEGER PRIMARY KEY, | id INTEGER PRIMARY KEY, | ||
name VARCHAR(64), | name VARCHAR(64), | ||
densityDirectEntry DOUBLE, | densityDirectEntry DOUBLE, | ||
− | |||
name VARCHAR(64), | name VARCHAR(64), | ||
densityDirectEntry DOUBLE, | densityDirectEntry DOUBLE, | ||
Line 54: | Line 66: | ||
modified DATE | modified DATE | ||
); | ); | ||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE bufferComposition ( | CREATE TABLE bufferComposition ( | ||
id INTEGER PRIMARY KEY, | id INTEGER PRIMARY KEY, | ||
Line 63: | Line 79: | ||
modified DATE | modified DATE | ||
); | ); | ||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE conjugateComposition( | CREATE TABLE conjugateComposition( | ||
id INTEGER PRIMARY KEY, | id INTEGER PRIMARY KEY, | ||
Line 71: | Line 91: | ||
modified DATE | modified DATE | ||
); | ); | ||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE conjugates ( | CREATE TABLE conjugates ( | ||
− | |||
"id" INTEGER PRIMARY KEY, | "id" INTEGER PRIMARY KEY, | ||
"name" VARCHAR(30), | "name" VARCHAR(30), | ||
Line 96: | Line 119: | ||
modified DATE | modified DATE | ||
); | ); | ||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE denature ( | CREATE TABLE denature ( | ||
"id" INTEGER PRIMARY KEY, | "id" INTEGER PRIMARY KEY, | ||
Line 105: | Line 132: | ||
"carbo" BOOLEAN, | "carbo" BOOLEAN, | ||
"active" INTEGER NOT NULL DEFAULT (1), modified DATE); | "active" INTEGER NOT NULL DEFAULT (1), modified DATE); | ||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE experiment ( | CREATE TABLE experiment ( | ||
id INTEGER PRIMARY KEY, | id INTEGER PRIMARY KEY, | ||
− | |||
name varchar(64), | name varchar(64), | ||
Tc DOUBLE, | Tc DOUBLE, | ||
Line 127: | Line 157: | ||
modified DATE | modified DATE | ||
); | ); | ||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE extinction ( | CREATE TABLE extinction ( | ||
"id" INTEGER PRIMARY KEY, | "id" INTEGER PRIMARY KEY, | ||
Line 142: | Line 176: | ||
Fp DOUBLE, | Fp DOUBLE, | ||
FFo DOUBLE, | FFo DOUBLE, | ||
− | |||
FFp DOUBLE, | FFp DOUBLE, | ||
So DOUBLE, | So DOUBLE, | ||
Line 166: | Line 199: | ||
modified DATE | modified DATE | ||
); | ); | ||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE rhoseries ( | CREATE TABLE rhoseries ( | ||
id INTEGER PRIMARY KEY, | id INTEGER PRIMARY KEY, | ||
Line 177: | Line 214: | ||
Cmax DOUBLE, | Cmax DOUBLE, | ||
ErrorMax DOUBLE, | ErrorMax DOUBLE, | ||
− | |||
Source VARCHAR(80), | Source VARCHAR(80), | ||
modified DATE | modified DATE | ||
); | ); | ||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE sample( | CREATE TABLE sample( | ||
id INTEGER PRIMARY KEY, | id INTEGER PRIMARY KEY, | ||
Line 200: | Line 240: | ||
modified DATE | modified DATE | ||
, aminoSequenceCodeSize integer); | , aminoSequenceCodeSize integer); | ||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE version ("databaseVersion" varchar(9), applicationVersion varchar(9)); | CREATE TABLE version ("databaseVersion" varchar(9), applicationVersion varchar(9)); | ||
+ | |||
+ | <br> | ||
+ | |||
+ | |||
CREATE TABLE viscseries ( | CREATE TABLE viscseries ( | ||
id INTEGER PRIMARY KEY, | id INTEGER PRIMARY KEY, |
Latest revision as of 13:55, 25 April 2012
CREATE TABLE BufferComponent ( id INTEGER PRIMARY KEY, name VARCHAR(40), componentRhoId INTEGER, componentViscId INTEGER, componentDensity DOUBLE, componentMr DOUBLE, active INTEGER NOT NULL DEFAULT (1), modified DATE );
CREATE TABLE amino ( "id" INTEGER PRIMARY KEY, "Namethree" VARCHAR(3), "name" VARCHAR(25), "nameone" VARCHAR(1), "Mr" DOUBLE, "covalent" INTEGER, "vbar" DOUBLE, "HipH7" DOUBLE, "HipH4" DOUBLE, "extinction" DOUBLE, "charge" DOUBLE, "pka" DOUBLE, "active" INTEGER NOT NULL DEFAULT (1), modified DATE);
CREATE TABLE aminoComposition(
id INTEGER PRIMARY KEY,
sampleId INTEGER REFERENCES sample(id),
aminoId INTEGER REFERENCES amino(id),
count INTEGER,
active INTEGER NOT NULL DEFAULT(1),
modified DATE
);
CREATE TABLE buffer (
id INTEGER PRIMARY KEY,
name VARCHAR(64),
densityDirectEntry DOUBLE,
name VARCHAR(64),
densityDirectEntry DOUBLE,
viscosityDirectEntry DOUBLE,
densityStandard DOUBLE,
viscosityStandard DOUBLE,
densityStandardT DOUBLE,
viscosityStandardT DOUBLE,
computeDensity DOUBLE,
computeViscosity DOUBLE,
pH DOUBLE,
isHeavyWater INTEGER,
D2O DOUBLE,
D2O18 DOUBLE,
H2O18 DOUBLE,
H2O DOUBLE,
active INTEGER NOT NULL DEFAULT (1),
modified DATE
);
CREATE TABLE bufferComposition (
id INTEGER PRIMARY KEY,
bufferId INTEGER,
componentID INTEGER,
concentration DOUBLE,
units VARCHAR(10),
active INTEGER NOT NULL DEFAULT (1),
modified DATE
);
CREATE TABLE conjugateComposition(
id INTEGER PRIMARY KEY,
sampleId INTEGER REFERENCES sample(id),
conjugateId INTEGER REFERENCES conjugates(id),
count INTEGER,
active INTEGER NOT NULL DEFAULT(1),
modified DATE
);
CREATE TABLE conjugates (
"id" INTEGER PRIMARY KEY,
"name" VARCHAR(30),
"Mr" DOUBLE,
"covalent" INTEGER,
"vbar" DOUBLE,
"hiph7" DOUBLE,
"hiph4" DOUBLE,
"extinction" DOUBLE,
"charge" DOUBLE,
"pka" DOUBLE,
"Mcutoff" DOUBLE,
"carbo" INTEGER,
"active" INTEGER NOT NULL DEFAULT (1), modified DATE);
CREATE TABLE defaults (
id INTEGER PRIMARY KEY,
temperature DOUBLE,
density DOUBLE,
viscosity DOUBLE,
vbar DOUBLE,
pH DOUBLE,
sk DOUBLE,
modified DATE
);
CREATE TABLE denature (
"id" INTEGER PRIMARY KEY,
"Name" VARCHAR(25),
"rhomin" DOUBLE,
"v3" DOUBLE,
"g3" DOUBLE,
"Md" DOUBLE,
"carbo" BOOLEAN,
"active" INTEGER NOT NULL DEFAULT (1), modified DATE);
CREATE TABLE experiment (
id INTEGER PRIMARY KEY,
name varchar(64),
Tc DOUBLE,
RPM DOUBLE,
sigma DOUBLE,
sstar DOUBLE,
mgml DOUBLE,
sstart DOUBLE,
vbar DOUBLE,
rho DOUBLE,
vis DOUBLE,
Mp DOUBLE,
Mb DOUBLE,
calculatedBy varchar(30),
sample_id INTEGER,
buffer_id INTEGER,
results_id INTEGER,
active INTEGER NOT NULL DEFAULT(1),
modified DATE
);
CREATE TABLE extinction (
"id" INTEGER PRIMARY KEY,
"name" VARCHAR(25),
"nm" DOUBLE,
"ext" DOUBLE,
"active" INTEGER NOT NULL DEFAULT (1), modified DATE);
CREATE TABLE results (
id INTEGER PRIMARY KEY,
name varchar(64),
R DOUBLE,
Ro DOUBLE,
Rp DOUBLE,
Fo DOUBLE,
Fp DOUBLE,
FFo DOUBLE,
FFp DOUBLE,
So DOUBLE,
Sp DOUBLE,
Do DOUBLE,
Dp DOUBLE,
Delta1v DOUBLE,
Delta1t DOUBLE,
abv DOUBLE,
abt DOUBLE,
av DOUBLE,
at DOUBLE,
bv DOUBLE,
bt DOUBLE,
method varchar(20),
options varchar(25),
options_value DOUBLE,
shape varchar(25),
sample_id INTEGER,
buffer_id INTEGER,
experiment_id INTEGER,
active INTEGER NOT NULL DEFAULT(1),
modified DATE
);
CREATE TABLE rhoseries (
id INTEGER PRIMARY KEY,
name VARCHAR(40),
a DOUBLE,
b DOUBLE,
c DOUBLE,
d DOUBLE,
e DOUBLE,
f DOUBLE,
Cmax DOUBLE,
ErrorMax DOUBLE,
Source VARCHAR(80),
modified DATE
);
CREATE TABLE sample(
id INTEGER PRIMARY KEY,
name VARCHAR(64),
VBarDirectEntry DOUBLE,
VBarStandard DOUBLE,
VbarStandardT DOUBLE,
calcVBar DOUBLE,
calcMr DOUBLE,
calcHydration DOUBLE,
useDenaturant INTEGER REFERENCES denaturant(id),
sk DOUBLE,
pkaamino DOUBLE,
pkacarboxl DOUBLE,
pH DOUBLE,
nMer INTEGER,
aminoSequence TEXT,
active INTEGER NOT NULL DEFAULT(1),
modified DATE
, aminoSequenceCodeSize integer);
CREATE TABLE version ("databaseVersion" varchar(9), applicationVersion varchar(9));
CREATE TABLE viscseries (
id INTEGER PRIMARY KEY,
name VARCHAR(40),
a DOUBLE,
b DOUBLE,
c DOUBLE,
d DOUBLE,
e DOUBLE,
Cmax DOUBLE,
ErrorMax DOUBLE,
Source VARCHAR(80),
modified DATE
);