Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
changed line from item to transformation. added machine to transforma…
Browse files Browse the repository at this point in the history
…tion. updated metadata
  • Loading branch information
dvalnn committed May 26, 2024
1 parent a624b6e commit f7f54d1
Show file tree
Hide file tree
Showing 17 changed files with 77 additions and 277 deletions.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion migrations/005_items.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ CREATE TABLE IF NOT EXISTS items (
piece_kind piece_kind NOT NULL REFERENCES pieces(code),
order_id uuid REFERENCES orders(id),
warehouse char(2) REFERENCES warehouses(code),
production_line char(2) REFERENCES production_lines(code),
status item_status NOT NULL DEFAULT 'pending',
acc_cost money NOT NULL DEFAULT 0,

Expand Down
6 changes: 5 additions & 1 deletion migrations/010_transformations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ CREATE TABLE IF NOT EXISTS transformations(
product_id uuid NOT NULL REFERENCES items(id),
recipe_id bigint NOT NULL REFERENCES recipes(id),
status transformation_status NOT NULL DEFAULT 'pending',
date int

-- Metadata for vistualization purposes
date int,
line char(2) REFERENCES production_lines(code),
machine char(2) REFERENCES machines(code)
);
2 changes: 2 additions & 0 deletions migrations/015_metada.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ simulation_date INT
CHECK(simulation_date >= 0)
PRIMARY KEY
);

INSERT INTO epoch_table(simulation_date) VALUES(1);
Loading

0 comments on commit f7f54d1

Please sign in to comment.