Files
ruoyi-vue-pro/sql/mysql/ydoyun_user_ext.sql
2026-02-27 09:45:29 +08:00

18 lines
948 B
SQL
Raw Permalink 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.

-- E3 用户扩展信息表
CREATE TABLE IF NOT EXISTS `ydoyun_user_ext` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`user_id` bigint NOT NULL COMMENT '用户ID关联 system_users.id',
`usercode` varchar(64) DEFAULT NULL COMMENT 'E3 用户编码ERP USERID',
`creator` varchar(64) DEFAULT '' COMMENT '创建者',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updater` varchar(64) DEFAULT '' COMMENT '更新者',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_user_id` (`user_id`) COMMENT '用户ID唯一索引',
KEY `idx_usercode` (`usercode`) COMMENT 'E3用户编码索引'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='E3 用户扩展信息表';