Spaces:
Sleeping
Sleeping
Download backend/sql/011_billing_lemonsqueezy.sql from stylevoice/talk: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/spaces/stylevoice/talk/resolve/main/backend/sql/011_billing_lemonsqueezy.sql
- Command line
-
hf download hf://spaces/stylevoice/talk/backend/sql/011_billing_lemonsqueezy.sql
-
curl -L -o 011_billing_lemonsqueezy.sql https://huggingface.co/spaces/stylevoice/talk/resolve/main/backend/sql/011_billing_lemonsqueezy.sql
1.35 kB
| -- ๊ฒฐ์ ์ฒ๋ฆฌ์ ๋ณ๊ฒฝ: ccbill/epoch โ lemonsqueezy (2026-05-04) | |
| -- | |
| -- ๋ฐฐ๊ฒฝ: NSFW ๊ฐ ๋งค์ถ driver ๊ฐ ์๋ ๋ถ๊ฐ๊ธฐ๋ฅ์ผ๋ก ์ฌ์ ์๋จ์ ๋ฐ๋ผ ์ผ๋ฐ SaaS | |
| -- ๊ฒฐ์ ์ฒ๋ฆฌ์(Lemon Squeezy)๋ก ์ ํ. CCBillยทEpoch ์ 4-6์ฃผ ์ ์ ๋ถํ์. | |
| -- | |
| -- subscriptions.processor CHECK constraint ์ 'lemonsqueezy' ์ถ๊ฐ. | |
| -- ๊ธฐ์กด 'ccbill'/'epoch' ๊ฐ์ ์ ์ง (์ญ์ฌ์ ๋ฐ์ดํฐ ๋ณด์กด). ์ ๊ท row ๋ | |
| -- 'lemonsqueezy' / 'manual' / 'coupon' ๋ง ์ฌ์ฉ. | |
| -- 1) processor CHECK constraint ๊ต์ฒด | |
| ALTER TABLE public.subscriptions | |
| DROP CONSTRAINT IF EXISTS subscriptions_processor_check; | |
| ALTER TABLE public.subscriptions | |
| ADD CONSTRAINT subscriptions_processor_check | |
| CHECK (processor IN ('lemonsqueezy', 'ccbill', 'epoch', 'manual', 'coupon')); | |
| -- 2) billing_events ๋ ๋์ผํ๊ฒ (๋ณ๋ CHECK ๊ฐ ์๋ค๋ฉด) | |
| ALTER TABLE public.billing_events | |
| DROP CONSTRAINT IF EXISTS billing_events_processor_check; | |
| -- billing_events ์๋ ์๋ CHECK ์์์ โ VARCHAR ๊ทธ๋๋ก ๋ . | |
| -- (์ด๋ฒคํธ ๋ก๊ทธ๋ ๋ฏธ๋ ์ฒ๋ฆฌ์ ์ถ๊ฐ์ ์ ์ฐํด์ผ ํ๋ฏ๋ก ์๋์ ์ผ๋ก ์ ์ฝ ์ ๋ .) | |
| -- 3) ์ฝ๋ฉํธ ๊ฐฑ์ (์ด์์ ๊ฐ์ด๋) | |
| COMMENT ON COLUMN public.subscriptions.processor IS | |
| '๊ฒฐ์ ์ฒ๋ฆฌ์: lemonsqueezy(์ฃผ๋ ฅ) / ccbillยทepoch(legacy, ์ ๊ท row ๋ฏธ์์ฑ) / manual(๊ด๋ฆฌ์) / coupon(์ฟ ํฐ)'; | |