mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-14 19:31:17 +00:00
2f3632f680
Change-Id: If55220b4bc3faf259cf750a90bfc1975193c151e
79 lines
1.7 KiB
JSON
79 lines
1.7 KiB
JSON
[
|
|
{
|
|
"name": "oathauth_types",
|
|
"comment": "Possible authentication device types",
|
|
"columns": [
|
|
{
|
|
"name": "oat_id",
|
|
"comment": "Unique ID of this device type",
|
|
"type": "integer",
|
|
"options": { "autoincrement": true, "notnull": false }
|
|
},
|
|
{
|
|
"name": "oat_name",
|
|
"comment": "Internal name of this device type, matching the keys of attributes.OATHAuth.Modules in extension.json",
|
|
"type": "binary",
|
|
"options": { "notnull": true, "length": 255 }
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "oat_name",
|
|
"columns": [ "oat_name" ],
|
|
"unique": true
|
|
}
|
|
],
|
|
"pk": [ "oat_id" ]
|
|
},
|
|
{
|
|
"name": "oathauth_devices",
|
|
"comment": "Enrolled authentication devices",
|
|
"columns": [
|
|
{
|
|
"name": "oad_id",
|
|
"comment": "Unique ID of this authentication device",
|
|
"type": "integer",
|
|
"options": { "autoincrement": true, "notnull": false }
|
|
},
|
|
{
|
|
"name": "oad_user",
|
|
"comment": "User ID",
|
|
"type": "integer",
|
|
"options": { "notnull": true }
|
|
},
|
|
{
|
|
"name": "oad_type",
|
|
"comment": "Device type ID, references the oathauth_types table",
|
|
"type": "integer",
|
|
"options": { "notnull": true }
|
|
},
|
|
{
|
|
"name": "oad_name",
|
|
"comment": "User-specified name of this device",
|
|
"type": "binary",
|
|
"options": { "notnull": false, "length": 255 }
|
|
},
|
|
{
|
|
"name": "oad_created",
|
|
"comment": "Timestamp when this authentication device was created",
|
|
"type": "mwtimestamp",
|
|
"options": { "notnull": false }
|
|
},
|
|
{
|
|
"name": "oad_data",
|
|
"comment": "Data",
|
|
"type": "blob",
|
|
"options": { "length": 65530, "notnull": false }
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "oad_user",
|
|
"columns": [ "oad_user" ],
|
|
"unique": false
|
|
}
|
|
],
|
|
"pk": [ "oad_id" ]
|
|
}
|
|
]
|