Importing base schema
This commit is contained in:
parent
7e74d672ba
commit
b045ded9cd
16 changed files with 170 additions and 0 deletions
16
datastore/migrations/00006_AddObservations_up.sql
Normal file
16
datastore/migrations/00006_AddObservations_up.sql
Normal file
|
@ -0,0 +1,16 @@
|
|||
-- bactdb
|
||||
-- Matthew R Dillon
|
||||
|
||||
CREATE TABLE observations (
|
||||
id BIGSERIAL NOT NULL,
|
||||
observation_name CHARACTER VARYING(100),
|
||||
observation_type_id BIGINT,
|
||||
|
||||
created_at TIMESTAMP WITH TIME ZONE,
|
||||
updated_at TIMESTAMP WITH TIME ZONE,
|
||||
deleted_at TIMESTAMP WITH TIME ZONE,
|
||||
|
||||
CONSTRAINT observations_pkey PRIMARY KEY (id),
|
||||
FOREIGN KEY (observation_type_id) REFERENCES observation_types(id)
|
||||
);
|
||||
|
Reference in a new issue