pangu-user-platform/backend/sql/pg_member_log.sql

18 lines
852 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.

-- 会员操作日志表
-- 作者:湖北新华业务中台研发团队
-- 创建时间2026-02-03
CREATE TABLE IF NOT EXISTS `pg_member_log` (
`log_id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '日志ID',
`member_id` BIGINT NOT NULL COMMENT '会员ID',
`oper_type` VARCHAR(20) NOT NULL COMMENT '操作类型',
`oper_title` VARCHAR(50) NOT NULL COMMENT '操作标题',
`oper_desc` VARCHAR(255) DEFAULT NULL COMMENT '操作描述',
`oper_ip` VARCHAR(50) DEFAULT NULL COMMENT '操作IP',
`oper_time` DATETIME NOT NULL COMMENT '操作时间',
`status` CHAR(1) DEFAULT '0' COMMENT '状态0成功 1失败',
PRIMARY KEY (`log_id`),
INDEX `idx_member_id` (`member_id`),
INDEX `idx_oper_time` (`oper_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='会员操作日志表';