Importing base schema

This commit is contained in:
Matthew Dillon 2014-10-16 09:41:01 -08:00
parent 7e74d672ba
commit b045ded9cd
16 changed files with 170 additions and 0 deletions

View 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)
);