feat: acquire-core full legacy C corpus (~2066 files, build-verified) + generator + inventory

This commit is contained in:
forge-bot 2026-07-18 11:24:15 +00:00
commit b96cf702ee
2897 changed files with 264970 additions and 0 deletions

23
db/cl_ddl_0002.sql Normal file
View file

@ -0,0 +1,23 @@
-- cl_ddl_0002.sql - 마감 DBIO 스키마/뷰 정의 (easy)
-- 런타임 PostgreSQL 에 적용. 컴파일에는 불필요.
CREATE TABLE IF NOT EXISTS cl_ledger (
key VARCHAR(15) NOT NULL,
merch_id VARCHAR(15) NOT NULL,
card_no VARCHAR(19) NOT NULL,
amount BIGINT NOT NULL DEFAULT 0,
biz_date CHAR(8) NOT NULL,
status CHAR(1) NOT NULL DEFAULT 'R',
fee BIGINT NOT NULL DEFAULT 0,
reg_ts TIMESTAMP NOT NULL DEFAULT now(),
upd_ts TIMESTAMP,
CONSTRAINT pk_cl_ledger PRIMARY KEY (key)
);
CREATE INDEX IF NOT EXISTS ix_cl_ddl_0002_date_status
ON cl_ledger (biz_date, status);
CREATE OR REPLACE VIEW cl_ddl_0002_daily_v AS
SELECT biz_date, status, count(*) AS cnt, sum(amount) AS total
FROM cl_ledger
GROUP BY biz_date, status;