stufflog graphql server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
466 B

-- +goose Up
-- +goose StatementBegin
CREATE TABLE activity (
activity_id CHAR(16) PRIMARY KEY,
project_id CHAR(16) NOT NULL,
name VARCHAR(255) NOT NULL,
countable BOOLEAN NOT NULL,
unit_is_time BOOLEAN NOT NULL,
unit_name VARCHAR(255) NOT NULL,
unit_value FLOAT NOT NULL,
base_value FLOAT NOT NULL,
INDEX(Project_id)
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE activity;
-- +goose StatementEnd