| 1234567891011121314151617181920212223 |
- -- ******************************************************************
- -- 表 kku_point_transfer 的创建SQL
- -- 对应的Model: App\Module\Point\Models\PointTransferModel
- -- 警告: 此文件由系统自动生成,禁止修改!
- -- ******************************************************************
- CREATE TABLE `kku_point_transfer` (
- `id` int NOT NULL AUTO_INCREMENT COMMENT '自增',
- `from_user_id` int NOT NULL DEFAULT '0' COMMENT '转出用户ID',
- `to_user_id` int NOT NULL DEFAULT '0' COMMENT '转入用户ID',
- `point_id` int NOT NULL DEFAULT '0' COMMENT '积分类型ID',
- `amount` bigint NOT NULL DEFAULT '0' COMMENT '转账积分数量',
- `remark` varchar(500) NOT NULL DEFAULT '' COMMENT '备注',
- `status` tinyint NOT NULL DEFAULT '0' COMMENT '状态:0-待处理,1-已完成,2-已失败',
- `create_time` int NOT NULL DEFAULT '0' COMMENT '创建时间',
- `update_time` int NOT NULL DEFAULT '0' COMMENT '更新时间',
- PRIMARY KEY (`id`),
- KEY `idx_from_user_id` (`from_user_id`),
- KEY `idx_to_user_id` (`to_user_id`),
- KEY `idx_point_id` (`point_id`),
- KEY `idx_status` (`status`),
- KEY `idx_create_time` (`create_time`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='积分转账记录表';
|