Rough in characteristic_type

This commit is contained in:
Matthew Dillon 2015-06-16 15:25:44 -08:00
parent 6d3dfc88bf
commit f469d9514b
4 changed files with 118 additions and 13 deletions

View file

@ -9,6 +9,13 @@ CREATE TABLE characteristic_types (
updated_at TIMESTAMP WITH TIME ZONE NOT NULL,
deleted_at TIMESTAMP WITH TIME ZONE NULL,
CONSTRAINT characteristic_types_pkey PRIMARY KEY (id)
created_by BIGINT NOT NULL,
updated_by BIGINT NOT NULL,
deleted_by BIGINT NULL,
CONSTRAINT characteristic_types_pkey PRIMARY KEY (id),
FOREIGN KEY (created_by) REFERENCES users(id),
FOREIGN KEY (updated_by) REFERENCES users(id),
FOREIGN KEY (deleted_by) REFERENCES users(id)
);