Rough in characteristic_type
This commit is contained in:
parent
6d3dfc88bf
commit
f469d9514b
4 changed files with 118 additions and 13 deletions
|
@ -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)
|
||||
);
|
||||
|
||||
|
|
Reference in a new issue