feat: support bind user to tenants
This commit is contained in:
10
backend/database/migrations/20241212111730_alter_tenants.sql
Normal file
10
backend/database/migrations/20241212111730_alter_tenants.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
-- add column bind_user_id to tenants
|
||||
ALTER TABLE tenants ADD COLUMN bind_user_id INT8 NOT NULL DEFAULT 0;
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP COLUMN bind_user_id FROM tenants;
|
||||
-- +goose StatementEnd
|
||||
Reference in New Issue
Block a user