-
Notifications
You must be signed in to change notification settings - Fork 0
/
dnamodelFK.sql
34 lines (30 loc) · 956 Bytes
/
dnamodelFK.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
ALTER TABLE dnamodel.reference
ADD CONSTRAINT reference_simulation
FOREIGN KEY (simulationId )
REFERENCES dnamodel.simulation (simulationId )
ON DELETE NO ACTION
ON UPDATE NO ACTION;
ALTER TABLE dnamodel.topology
ADD CONSTRAINT topology_simulation
FOREIGN KEY (simulationId )
REFERENCES dnamodel.simulation (simulationId )
ON DELETE NO ACTION
ON UPDATE NO ACTION;
ALTER TABLE dnamodel.snapshot
ADD CONSTRAINT snapshot_simulation
FOREIGN KEY (simulationId )
REFERENCES dnamodel.simulation (simulationId )
ON DELETE NO ACTION
ON UPDATE NO ACTION;
ALTER TABLE dnamodel.atom
ADD CONSTRAINT atom_topology
FOREIGN KEY (topologyId)
REFERENCES dnamodel.topology (topologyId)
ON DELETE NO ACTION
ON UPDATE NO ACTION;
ALTER TABLE dnamodel.atom
ADD CONSTRAINT atom_snapshot
FOREIGN KEY (snapshotId)
REFERENCES dnamodel.snapshot (snapshotId )
ON DELETE NO ACTION
ON UPDATE NO ACTION;