cangku/sql/create_pricing_calculator_user_prefs_system_mysql.sql

9 lines
655 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 单品利润测算:用户个性化默认值表(系统库 shujuku3_system,MariaDB/MySQL)
-- 每个运营一份配置(优惠券金额/活动折扣/安装费/营业利润率),按 user_id 隔离。
CREATE TABLE IF NOT EXISTS pricing_calculator_user_prefs (
user_id BIGINT PRIMARY KEY COMMENT '用户ID',
prefs_json VARCHAR(2000) NOT NULL COMMENT '个性化默认值 JSON',
created_at DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='单品利润测算用户个性化默认值';