| 1 |
-- This file is automatically generated using maintenance/generateSchemaSql.php. |
| 2 |
-- Source: sql/tables.json |
| 3 |
-- Do not modify this file directly. |
| 4 |
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes |
| 5 |
CREATE TABLE oathauth_types ( |
| 6 |
oat_id SERIAL NOT NULL, |
| 7 |
oat_name TEXT NOT NULL, |
| 8 |
PRIMARY KEY(oat_id) |
| 9 |
); |
| 10 |
|
| 11 |
CREATE UNIQUE INDEX oat_name ON oathauth_types (oat_name); |
| 12 |
|
| 13 |
|
| 14 |
CREATE TABLE oathauth_devices ( |
| 15 |
oad_id SERIAL NOT NULL, |
| 16 |
oad_user INT NOT NULL, |
| 17 |
oad_type INT NOT NULL, |
| 18 |
oad_name TEXT DEFAULT NULL, |
| 19 |
oad_created TIMESTAMPTZ DEFAULT NULL, |
| 20 |
oad_data TEXT DEFAULT NULL, |
| 21 |
PRIMARY KEY(oad_id) |
| 22 |
); |
| 23 |
|
| 24 |
CREATE INDEX oad_user ON oathauth_devices (oad_user); |