Revert "feat(loyalty): EnakPoint & EnakCoin" (#32)

This reverts merge commit 645da30, returning main to f0ff59f.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
efrilm
2026-09-30 15:16:15 +07:00
co-authored by Claude Opus 5.5
parent 645da3048e
commit 4e24f9bbb0
195 changed files with 2179 additions and 20060 deletions
@@ -1,16 +0,0 @@
ALTER TABLE payments
DROP CONSTRAINT IF EXISTS chk_payments_point_pair,
DROP COLUMN IF EXISTS point_value,
DROP COLUMN IF EXISTS points_used;
DROP TRIGGER IF EXISTS trigger_create_point_payment_method ON organizations;
DROP FUNCTION IF EXISTS create_point_payment_method();
-- Fails if an EnakPoint method has been used by a payment, which is the point: those
-- payments would lose their method.
DELETE FROM payment_methods WHERE type = 'point';
DROP INDEX IF EXISTS uq_payment_methods_point_per_organization;
ALTER TABLE payment_methods DROP CONSTRAINT IF EXISTS payment_methods_type_check;
ALTER TABLE payment_methods ADD CONSTRAINT payment_methods_type_check
CHECK (type IN ('cash', 'card', 'digital_wallet'));