This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
bactdb/datastore/migrations/00011_AddStrainObsMeasurements_up.sql
2014-10-23 16:14:34 -08:00

17 lines
469 B
SQL

-- bactdb
-- Matthew R Dillon
CREATE TABLE strainsobsmeasurements (
id BIGSERIAL NOT NULL,
strainsobservations_id BIGINT,
measurement_table CHARACTER VARYING(15),
measurement_id BIGINT,
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE,
deleted_at TIMESTAMP WITH TIME ZONE,
CONSTRAINT strainsobsmeasurements_pkey PRIMARY KEY (id),
FOREIGN KEY (strainsobservations_id) REFERENCES strainsobservations(id)
);