refactor: delete remain of department and users

This commit is contained in:
SOR
2026-08-09 16:12:06 +08:00
parent d6e8390ed6
commit 091684357d
8 changed files with 9 additions and 173 deletions
-15
View File
@@ -15,21 +15,6 @@ CREATE TABLE account
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci COMMENT ='系统用户/认证信息';
-- 部门表
DROP TABLE IF EXISTS departments;
CREATE TABLE departments
(
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
code VARCHAR(50),
parent_id BIGINT UNSIGNED,
description TEXT,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT fk_departments_parent FOREIGN KEY (parent_id) REFERENCES departments (id) ON DELETE SET NULL
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='组织/部门';
-- 物品类别
DROP TABLE IF EXISTS categories;
CREATE TABLE categories