mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-07 06:41:53 +08:00
feat: CRM 客户限制
This commit is contained in:
@@ -6,4 +6,6 @@ DELETE FROM "crm_receivable";
|
||||
|
||||
DELETE FROM "crm_receivable_plan";
|
||||
|
||||
DELETE FROM "crm_customer";
|
||||
DELETE FROM "crm_customer";
|
||||
|
||||
DELETE FROM "crm_customer_limit_config";
|
@@ -122,4 +122,20 @@ CREATE TABLE IF NOT EXISTS "crm_customer" (
|
||||
"deleted" bit NOT NULL DEFAULT FALSE,
|
||||
"tenant_id" bigint NOT NULL,
|
||||
PRIMARY KEY ("id")
|
||||
) COMMENT '客户表';
|
||||
) COMMENT '客户表';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "crm_customer_limit_config" (
|
||||
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
||||
"type" int NOT NULL,
|
||||
"user_ids" varchar,
|
||||
"dept_ids" varchar,
|
||||
"max_count" int NOT NULL,
|
||||
"deal_count_enabled" varchar,
|
||||
"creator" varchar DEFAULT '',
|
||||
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updater" varchar DEFAULT '',
|
||||
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
"deleted" bit NOT NULL DEFAULT FALSE,
|
||||
"tenant_id" bigint NOT NULL,
|
||||
PRIMARY KEY ("id")
|
||||
) COMMENT '客户限制配置表';
|
Reference in New Issue
Block a user