postgresql

This commit is contained in:
2023-12-20 23:09:12 +03:00
parent 872217d845
commit 89046d130c
14 changed files with 336 additions and 4 deletions

View File

@ -0,0 +1,16 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE categories (
id INTEGER NOT NULL PRIMARY KEY,
parent_id INTEGER NOT NULL DEFAULT 0,
title VARCHAR NOT NULL DEFAULT '',
name VARCHAR NOT NULL DEFAULT '',
flat_name VARCHAR NOT NULL DEFAULT '',
level INTEGER NOT NULL DEFAULT 0
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE categories;
-- +goose StatementEnd