sj_system_user.sql 875 B

123456789101112131415
  1. create table sj_system_user
  2. (
  3. id bigint unsigned auto_increment comment '主键'
  4. primary key,
  5. username varchar(64) not null comment '账号',
  6. password varchar(128) not null comment '密码',
  7. role tinyint default 0 not null comment '角色:1-普通用户、2-管理员',
  8. create_dt datetime default CURRENT_TIMESTAMP not null comment '创建时间',
  9. update_dt datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '修改时间',
  10. constraint uk_username
  11. unique (username)
  12. )
  13. comment '系统用户表';
  14. INSERT INTO ruoyi.sj_system_user (id, username, password, role, create_dt, update_dt) VALUES (1, 'admin', '465c194afb65670f38322df087f0a9bb225cc257e43eb4ac5a0c98ef5b3173ac', 2, '2025-08-23 21:50:38', '2025-08-23 21:50:38');