feat: 任务一键推送企微(总群+KOC个人直达+群发,含推送记录)
This commit is contained in:
18
db/schema.ts
18
db/schema.ts
@@ -287,6 +287,24 @@ export const wecomGroupPushes = mysqlTable(
|
||||
(table) => [index("wecom_group_pushes_task_idx").on(table.taskId)],
|
||||
);
|
||||
|
||||
export const wecomPushLogs = mysqlTable(
|
||||
"wecom_push_logs",
|
||||
{
|
||||
id: varchar("id", { length: 64 }).primaryKey(),
|
||||
taskId: varchar("task_id", { length: 64 }).notNull(),
|
||||
projectId: varchar("project_id", { length: 64 }).notNull().default(""),
|
||||
pushKind: varchar("push_kind", { length: 32 }).notNull().default("task_open"),
|
||||
mainGroupCount: int("main_group_count").notNull().default(0),
|
||||
kocUserids: text("koc_userids").notNull(),
|
||||
kocOkCount: int("koc_ok_count").notNull().default(0),
|
||||
kocFailList: text("koc_fail_list").notNull(),
|
||||
groupPushId: varchar("group_push_id", { length: 128 }).notNull().default(""),
|
||||
detail: text("detail").notNull(),
|
||||
createdAt: timestamp("created_at"),
|
||||
},
|
||||
(table) => [index("wecom_push_logs_task_idx").on(table.taskId, table.pushKind)],
|
||||
);
|
||||
|
||||
export const projects = mysqlTable("projects", {
|
||||
id: varchar("id", { length: 64 }).primaryKey(),
|
||||
name: varchar("name", { length: 255 }).notNull(),
|
||||
|
||||
Reference in New Issue
Block a user