2020-08-22 21:45:17 +00:00
|
|
|
[
|
|
|
|
{
|
2022-12-31 23:49:18 +00:00
|
|
|
"name": "oathauth_types",
|
|
|
|
"comment": "Possible authentication device types",
|
2020-08-22 21:45:17 +00:00
|
|
|
"columns": [
|
|
|
|
{
|
2022-12-31 23:49:18 +00:00
|
|
|
"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",
|
2020-08-22 21:45:17 +00:00
|
|
|
"comment": "User ID",
|
|
|
|
"type": "integer",
|
|
|
|
"options": { "notnull": true }
|
|
|
|
},
|
|
|
|
{
|
2022-12-31 23:49:18 +00:00
|
|
|
"name": "oad_type",
|
2023-12-06 15:07:43 +00:00
|
|
|
"comment": "Device type ID, references the oathauth_types table",
|
2022-12-31 23:49:18 +00:00
|
|
|
"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 }
|
2020-08-22 21:45:17 +00:00
|
|
|
},
|
|
|
|
{
|
2022-12-31 23:49:18 +00:00
|
|
|
"name": "oad_data",
|
2020-08-22 21:45:17 +00:00
|
|
|
"comment": "Data",
|
|
|
|
"type": "blob",
|
|
|
|
"options": { "length": 65530, "notnull": false }
|
|
|
|
}
|
|
|
|
],
|
2022-12-31 23:49:18 +00:00
|
|
|
"indexes": [
|
|
|
|
{
|
|
|
|
"name": "oad_user",
|
|
|
|
"columns": [ "oad_user" ],
|
|
|
|
"unique": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"pk": [ "oad_id" ]
|
2020-08-22 21:45:17 +00:00
|
|
|
}
|
|
|
|
]
|