Files
qvyun/backend/database/migrations/20250110093539_create_storages.sql
2025-01-10 17:50:54 +08:00

20 lines
488 B
SQL

-- +goose Up
-- +goose StatementBegin
-- create storages table
CREATE TABLE storages (
id SERIAL8 PRIMARY KEY,
created_at timestamp NOT NULL default now(),
updated_at timestamp NOT NULL default now(),
is_default BOOLEAN NOT NULL default false,
name VARCHAR(128) NOT NULL default '',
type INT2 NOT NULL default 0,
config JSONB NOT NULL default '{}'
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE storages;
-- +goose StatementEnd