feat: 新增第三方登录认证和管理
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for cbc_message
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS `cbc_message` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`ne_type` TEXT,
|
||||
`ne_id` TEXT,
|
||||
`message_json` TEXT,
|
||||
`status` TEXT DEFAULT 'INACTIVE' CHECK(`status` IN ('ACTIVE', 'INACTIVE')),
|
||||
`detail` TEXT,
|
||||
`created_at` INTEGER,
|
||||
`updated_at` INTEGER
|
||||
CREATE TABLE IF NOT EXISTS "cbc_message" (
|
||||
"id" integer NOT NULL,
|
||||
"ne_type" text(32),
|
||||
"ne_id" text(32),
|
||||
"message_json" text(10240),
|
||||
"status" text(32),
|
||||
"detail" text(255),
|
||||
"created_at" integer,
|
||||
"updated_at" integer,
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- Create indexes
|
||||
CREATE INDEX IF NOT EXISTS `idx_id` ON `cbc_message`(`id`);
|
||||
CREATE INDEX IF NOT EXISTS `idx_ne_time` ON `cbc_message`(`ne_type`, `ne_id`, `created_at`);
|
||||
-- ----------------------------
|
||||
-- Indexes structure for table cbc_message
|
||||
-- ----------------------------
|
||||
CREATE INDEX IF NOT EXISTS "idx_cbcm_ne_time"
|
||||
ON "cbc_message" (
|
||||
"ne_type" ASC,
|
||||
"ne_id" ASC,
|
||||
"created_at" ASC
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user