This commit is contained in:
Neo
2026-02-04 21:39:01 +08:00
parent ee773a9b52
commit a3f4d04335
148 changed files with 31455 additions and 182 deletions

View File

@@ -19,6 +19,11 @@ CREATE TABLE IF NOT EXISTS billiards_ods.member_profiles (
status INT,
user_status INT,
create_time TIMESTAMP,
pay_money_sum NUMERIC(18,2),
person_tenant_org_id BIGINT,
person_tenant_org_name TEXT,
recharge_money_sum NUMERIC(18,2),
register_source TEXT,
content_hash TEXT NOT NULL,
source_file TEXT,
source_endpoint TEXT,
@@ -75,6 +80,9 @@ CREATE TABLE IF NOT EXISTS billiards_ods.member_balance_changes (
operator_name TEXT,
is_delete INT,
create_time TIMESTAMP,
principal_after NUMERIC(18,2),
principal_before NUMERIC(18,2),
principal_data TEXT,
content_hash TEXT NOT NULL,
source_file TEXT,
source_endpoint TEXT,
@@ -185,6 +193,13 @@ CREATE TABLE IF NOT EXISTS billiards_ods.member_stored_value_cards (
tenantName TEXT,
pdAssisnatLevel TEXT,
cxAssisnatLevel TEXT,
able_share_member_discount BOOLEAN,
electricity_deduct_radio NUMERIC(18,4),
electricity_discount NUMERIC(18,4),
electricitycarddeduct BOOLEAN,
member_grade BIGINT,
principal_balance NUMERIC(18,2),
rechargefreezebalance NUMERIC(18,2),
content_hash TEXT NOT NULL,
source_file TEXT,
source_endpoint TEXT,
@@ -331,6 +346,12 @@ CREATE TABLE IF NOT EXISTS billiards_ods.recharge_settlements (
isfirst INT,
rechargecardamount NUMERIC(18,2),
giftcardamount NUMERIC(18,2),
electricityadjustmoney NUMERIC(18,2),
electricitymoney NUMERIC(18,2),
mervousalesamount NUMERIC(18,2),
plcouponsaleamount NUMERIC(18,2),
realelectricitymoney NUMERIC(18,2),
settlelist JSONB,
content_hash TEXT NOT NULL,
source_file TEXT,
source_endpoint TEXT,
@@ -469,6 +490,12 @@ CREATE TABLE IF NOT EXISTS billiards_ods.settlement_records (
isfirst INT,
rechargecardamount NUMERIC(18,2),
giftcardamount NUMERIC(18,2),
electricityadjustmoney NUMERIC(18,2),
electricitymoney NUMERIC(18,2),
mervousalesamount NUMERIC(18,2),
plcouponsaleamount NUMERIC(18,2),
realelectricitymoney NUMERIC(18,2),
settlelist JSONB,
content_hash TEXT NOT NULL,
source_file TEXT,
source_endpoint TEXT,
@@ -559,6 +586,7 @@ CREATE TABLE IF NOT EXISTS billiards_ods.assistant_cancellation_records (
tableName TEXT,
trashReason TEXT,
createTime TIMESTAMP,
tenant_id BIGINT,
content_hash TEXT NOT NULL,
source_file TEXT,
source_endpoint TEXT,
@@ -792,6 +820,8 @@ CREATE TABLE IF NOT EXISTS billiards_ods.assistant_service_records (
get_grade_times INT,
is_not_responding INT,
is_confirm INT,
assistantteamname TEXT,
real_service_money NUMERIC(18,2),
payload JSONB NOT NULL,
content_hash TEXT NOT NULL,
source_file TEXT,
@@ -897,6 +927,7 @@ CREATE TABLE IF NOT EXISTS billiards_ods.site_tables_master (
table_status INT,
temporary_light_second INT,
virtual_table INT,
order_id BIGINT,
content_hash TEXT NOT NULL,
source_file TEXT,
source_endpoint TEXT,
@@ -957,6 +988,14 @@ CREATE TABLE IF NOT EXISTS billiards_ods.table_fee_discount_records (
order_trade_no TEXT,
is_delete INT,
create_time TIMESTAMP,
area_type_id BIGINT,
charge_free BOOLEAN,
site_table_area_id BIGINT,
site_table_area_name TEXT,
sitename TEXT,
table_name TEXT,
table_price NUMERIC(18,2),
tenant_name TEXT,
content_hash TEXT NOT NULL,
source_file TEXT,
source_endpoint TEXT,
@@ -1032,6 +1071,9 @@ CREATE TABLE IF NOT EXISTS billiards_ods.table_fee_transactions (
salesman_org_id BIGINT,
salesman_user_id BIGINT,
create_time TIMESTAMP,
activity_discount_amount NUMERIC(18,2),
order_consumption_type INT,
real_service_money NUMERIC(18,2),
payload JSONB NOT NULL,
content_hash TEXT NOT NULL,
source_file TEXT,
@@ -1234,6 +1276,7 @@ CREATE TABLE IF NOT EXISTS billiards_ods.payment_transactions (
create_time TIMESTAMP,
payment_method INT,
online_pay_channel INT,
tenant_id BIGINT,
content_hash TEXT NOT NULL,
source_file TEXT,
source_endpoint TEXT,
@@ -1440,6 +1483,7 @@ CREATE TABLE IF NOT EXISTS billiards_ods.tenant_goods_master (
remark_name TEXT,
create_time TIMESTAMP,
update_time TIMESTAMP,
not_sale BOOLEAN,
payload JSONB NOT NULL,
content_hash TEXT NOT NULL,
source_file TEXT,
@@ -1522,6 +1566,9 @@ CREATE TABLE IF NOT EXISTS billiards_ods.group_buy_packages (
area_tag_type INT,
creator_name TEXT,
create_time TIMESTAMP,
is_first_limit BOOLEAN,
sort INT,
tenantcouponsaleorderitemid BIGINT,
content_hash TEXT NOT NULL,
source_file TEXT,
source_endpoint TEXT,
@@ -1616,6 +1663,15 @@ CREATE TABLE IF NOT EXISTS billiards_ods.group_buy_redemption_records (
is_single_order INT,
is_delete INT,
create_time TIMESTAMP,
assistant_service_share_money NUMERIC(18,2),
assistant_share_money NUMERIC(18,2),
coupon_sale_id BIGINT,
good_service_share_money NUMERIC(18,2),
goods_share_money NUMERIC(18,2),
member_discount_money NUMERIC(18,2),
recharge_share_money NUMERIC(18,2),
table_service_share_money NUMERIC(18,2),
table_share_money NUMERIC(18,2),
payload JSONB NOT NULL,
content_hash TEXT NOT NULL,
source_file TEXT,
@@ -1812,6 +1868,8 @@ CREATE TABLE IF NOT EXISTS billiards_ods.store_goods_master (
goods_cover TEXT,
create_time TIMESTAMP,
update_time TIMESTAMP,
commodity_code TEXT,
not_sale INTEGER,
payload JSONB NOT NULL,
content_hash TEXT NOT NULL,
source_file TEXT,
@@ -1923,6 +1981,7 @@ CREATE TABLE IF NOT EXISTS billiards_ods.store_goods_sales_records (
tenant_goods_business_id BIGINT,
tenant_goods_category_id BIGINT,
create_time TIMESTAMP,
coupon_share_money NUMERIC(18,2),
payload JSONB NOT NULL,
content_hash TEXT NOT NULL,
source_file TEXT,