-- ******************************************************************
-- 表 kku_user_punishs 的创建SQL
-- 对应的Model: App\Module\Ulogic\Models\UserPunish
-- 警告: 此文件由系统自动生成，禁止修改！
-- ******************************************************************

CREATE TABLE `kku_user_punishs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) unsigned NOT NULL COMMENT '用户ID',
  `type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '类型',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `desc` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '描述',
  `level` tinyint(3) unsigned DEFAULT NULL COMMENT '惩罚等级',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `admin_id` bigint(20) unsigned NOT NULL COMMENT '做出惩罚的管理员ID',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='用户 - 惩罚（违规记录）';
