First swagger version, added auto-migrate on startup
This commit is contained in:
14
migrations/20260304163413_create_roles.sql
Normal file
14
migrations/20260304163413_create_roles.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE TABLE IF NOT EXISTS roles(
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
title VARCHAR(20),
|
||||
code VARCHAR(20)
|
||||
);
|
||||
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE IF EXISTS roles;
|
||||
-- +goose StatementEnd
|
||||
Reference in New Issue
Block a user