feat: add Condo owner desk frontend and backend
This commit is contained in:
65
backend/migrations/001_create_condon_schema.down.sql
Normal file
65
backend/migrations/001_create_condon_schema.down.sql
Normal file
@@ -0,0 +1,65 @@
|
||||
REVOKE ALL ON FUNCTION condon.create_usage_record(
|
||||
uuid,
|
||||
uuid,
|
||||
uuid,
|
||||
varchar,
|
||||
date,
|
||||
date,
|
||||
varchar,
|
||||
smallint,
|
||||
text,
|
||||
uuid
|
||||
) FROM PUBLIC;
|
||||
REVOKE ALL ON FUNCTION condon.open_entitlement_period(
|
||||
uuid,
|
||||
uuid,
|
||||
smallint,
|
||||
uuid,
|
||||
uuid
|
||||
) FROM PUBLIC;
|
||||
REVOKE ALL ON FUNCTION condon.calculate_multiplier(
|
||||
varchar,
|
||||
varchar,
|
||||
smallint
|
||||
) FROM PUBLIC;
|
||||
|
||||
DROP FUNCTION condon.create_usage_record(
|
||||
uuid,
|
||||
uuid,
|
||||
uuid,
|
||||
varchar,
|
||||
date,
|
||||
date,
|
||||
varchar,
|
||||
smallint,
|
||||
text,
|
||||
uuid
|
||||
);
|
||||
DROP FUNCTION condon.open_entitlement_period(
|
||||
uuid,
|
||||
uuid,
|
||||
smallint,
|
||||
uuid,
|
||||
uuid
|
||||
);
|
||||
DROP FUNCTION condon.calculate_multiplier(
|
||||
varchar,
|
||||
varchar,
|
||||
smallint
|
||||
);
|
||||
|
||||
DROP INDEX condon.entitlement_ledger_period_occurred_idx;
|
||||
DROP INDEX condon.usage_records_used_type_check_in_idx;
|
||||
DROP INDEX condon.usage_records_period_idx;
|
||||
DROP INDEX condon.usage_records_owner_created_idx;
|
||||
DROP INDEX condon.owner_accounts_purchased_room_type_idx;
|
||||
DROP INDEX condon.owner_accounts_member_no_idx;
|
||||
|
||||
DROP TABLE condon.entitlement_ledger;
|
||||
DROP TABLE condon.usage_records;
|
||||
DROP TABLE condon.entitlement_periods;
|
||||
DROP TABLE condon.owner_accounts;
|
||||
DROP TABLE condon.room_types;
|
||||
DROP TABLE condon.schema_migrations;
|
||||
|
||||
DROP SCHEMA condon;
|
||||
Reference in New Issue
Block a user