Files
hldrCenter/server/sql/admin/admin.sql
2025-11-01 23:36:31 +08:00

13 lines
828 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.
-- 管理员表:存储系统管理员信息
CREATE TABLE `admin` (
`id` int NOT NULL COMMENT '用户ID',
`username` varchar(255) DEFAULT NULL,
`password` varchar(255) NOT NULL COMMENT '管理员密码',
`cover_url` varchar(255) DEFAULT NULL,
`intro` text DEFAULT NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`role` varchar(30) DEFAULT NULL,
`status` tinyint NOT NULL DEFAULT 1 COMMENT '1表示启用0表示禁用',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='管理员信息表';