1
0
mirror of https://github.com/chowa/ejyy.git synced 2026-01-21 05:07:48 +08:00

优化admin逻辑

This commit is contained in:
xuecong
2021-11-19 11:39:41 +08:00
parent 445b66cb24
commit 7393fb6429
9 changed files with 21 additions and 42 deletions

View File

@@ -724,11 +724,6 @@ CREATE TABLE `ejyy_property_company_access` (
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`content`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `ejyy_property_company_admin` (
`id` bigint(20) NOT NULL,
`property_company_user_id` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `ejyy_property_company_auth` (
`id` bigint(20) NOT NULL,
`property_company_user_id` bigint(20) NOT NULL,
@@ -771,6 +766,7 @@ CREATE TABLE `ejyy_property_company_user` (
`department_id` bigint(20) DEFAULT NULL,
`job_id` bigint(20) DEFAULT NULL,
`access_id` bigint(20) DEFAULT NULL,
`admin` tinyint(1) NOT NULL DEFAULT 0,
`join_company_at` bigint(13) DEFAULT NULL,
`leave_office` tinyint(1) NOT NULL DEFAULT 0,
`created_by` bigint(20) DEFAULT NULL,