mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
15 lines
515 B
SQL
15 lines
515 B
SQL
|
|
CREATE TABLE "cd_oauth_bound"
|
|
(
|
|
"id" bigint PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY NOT NULL,
|
|
"user_id" bigint NOT NULL,
|
|
"type" varchar(512) NOT NULL,
|
|
"open_id" varchar(512) NOT NULL,
|
|
"create_time" timestamp NOT NULL DEFAULT (CURRENT_TIMESTAMP),
|
|
"update_time" timestamp NOT NULL DEFAULT (CURRENT_TIMESTAMP)
|
|
);
|
|
|
|
|
|
CREATE INDEX "index_oauth_bound_user_id" ON "cd_oauth_bound" ("user_id");
|
|
CREATE INDEX "index_oauth_bound_open_id" ON "cd_oauth_bound" ("open_id");
|