[hw-4] add postgres db

This commit is contained in:
Никита Шубин
2025-06-26 12:08:46 +00:00
parent 3ebaad5558
commit 77ed9fcf85
46 changed files with 1582 additions and 369 deletions

View File

@@ -0,0 +1,24 @@
-- +goose Up
INSERT INTO
stocks (sku, total_count, reserved)
VALUES
(139275865, 65534, 0),
(2956315, 100, 30),
(1076963, 100, 35),
(135717466, 100, 20),
(135937324, 100, 30),
(1625903, 10000, 0),
(1148162, 100, 0);
-- +goose Down
DELETE FROM stocks
WHERE
sku IN (
139275865,
2956315,
1076963,
135717466,
135937324,
1625903,
1148162
);