point_config.sql 1.1 KB

12345678910111213141516171819
  1. -- ******************************************************************
  2. -- 表 kku_point_config 的创建SQL
  3. -- 对应的Model: App\Module\Point\Models\PointConfigModel
  4. -- 警告: 此文件由系统自动生成,禁止修改!
  5. -- ******************************************************************
  6. CREATE TABLE `kku_point_config` (
  7. `id` int NOT NULL AUTO_INCREMENT COMMENT '自增',
  8. `name` varchar(100) NOT NULL DEFAULT '' COMMENT '积分名称',
  9. `currency_id` int NOT NULL DEFAULT '0' COMMENT '关联的积分类型ID,外键关联kku_point_currency表',
  10. `type` int NOT NULL DEFAULT '0' COMMENT '积分账户类型,关联POINT_TYPE枚举',
  11. `display_attributes` text COMMENT '显示属性,如图标、颜色等',
  12. `create_time` int NOT NULL DEFAULT '0' COMMENT '创建时间',
  13. `update_time` int NOT NULL DEFAULT '0' COMMENT '更新时间',
  14. PRIMARY KEY (`id`),
  15. UNIQUE KEY `uk_type` (`type`),
  16. KEY `idx_currency_id` (`currency_id`),
  17. KEY `idx_create_time` (`create_time`)
  18. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='积分配置表';