From f59876f92019a990e20c5edddfd35f91740cd113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20P=C3=A9rez?= Date: Tue, 19 Sep 2023 02:23:37 +0100 Subject: [PATCH] chore: data table for users openid auth --- sql/openid_users.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sql/openid_users.sql diff --git a/sql/openid_users.sql b/sql/openid_users.sql new file mode 100644 index 0000000..6e576ff --- /dev/null +++ b/sql/openid_users.sql @@ -0,0 +1,15 @@ +DROP TABLE openid_users; +CREATE TABLE IF NOT EXISTS openid_users +( + id INTEGER PRIMARY KEY NOT NULL, + name TEXT NOT NULL, + application TEXT NOT NULL, + appkey TEXT NOT NULL, + userid INTEGER NOT NULL, + description TEXT NOT NULL, + created TEXT NOT NULL, + lastaccess TEXT NOT NULL +); +CREATE UNIQUE INDEX idx_openid_app_name +ON openid_users (application,name); +