2020-08-22 21:45:17 +00:00
|
|
|
-- This file is automatically generated using maintenance/generateSchemaSql.php.
|
2022-12-31 23:49:18 +00:00
|
|
|
-- Source: sql/tables.json
|
2020-08-22 21:45:17 +00:00
|
|
|
-- Do not modify this file directly.
|
|
|
|
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
|
2022-12-31 23:49:18 +00:00
|
|
|
CREATE TABLE oathauth_types (
|
|
|
|
oat_id SERIAL NOT NULL,
|
|
|
|
oat_name TEXT NOT NULL,
|
|
|
|
PRIMARY KEY(oat_id)
|
2020-08-22 21:45:17 +00:00
|
|
|
);
|
2022-12-31 23:49:18 +00:00
|
|
|
|
|
|
|
CREATE UNIQUE INDEX oat_name ON oathauth_types (oat_name);
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE oathauth_devices (
|
|
|
|
oad_id SERIAL NOT NULL,
|
|
|
|
oad_user INT NOT NULL,
|
|
|
|
oad_type INT NOT NULL,
|
|
|
|
oad_name TEXT DEFAULT NULL,
|
|
|
|
oad_created TIMESTAMPTZ DEFAULT NULL,
|
|
|
|
oad_data TEXT DEFAULT NULL,
|
|
|
|
PRIMARY KEY(oad_id)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE INDEX oad_user ON oathauth_devices (oad_user);
|