| 1 | [ |
| 2 | { |
| 3 | "name": "oathauth_types", |
| 4 | "comment": "Possible authentication device types", |
| 5 | "columns": [ |
| 6 | { |
| 7 | "name": "oat_id", |
| 8 | "comment": "Unique ID of this device type", |
| 9 | "type": "integer", |
| 10 | "options": { "autoincrement": true, "notnull": false } |
| 11 | }, |
| 12 | { |
| 13 | "name": "oat_name", |
| 14 | "comment": "Internal name of this device type, matching the keys of attributes.OATHAuth.Modules in extension.json", |
| 15 | "type": "binary", |
| 16 | "options": { "notnull": true, "length": 255 } |
| 17 | } |
| 18 | ], |
| 19 | "indexes": [ |
| 20 | { |
| 21 | "name": "oat_name", |
| 22 | "columns": [ "oat_name" ], |
| 23 | "unique": true |
| 24 | } |
| 25 | ], |
| 26 | "pk": [ "oat_id" ] |
| 27 | }, |
| 28 | { |
| 29 | "name": "oathauth_devices", |
| 30 | "comment": "Enrolled authentication devices", |
| 31 | "columns": [ |
| 32 | { |
| 33 | "name": "oad_id", |
| 34 | "comment": "Unique ID of this authentication device", |
| 35 | "type": "integer", |
| 36 | "options": { "autoincrement": true, "notnull": false } |
| 37 | }, |
| 38 | { |
| 39 | "name": "oad_user", |
| 40 | "comment": "User ID", |
| 41 | "type": "integer", |
| 42 | "options": { "notnull": true } |
| 43 | }, |
| 44 | { |
| 45 | "name": "oad_type", |
| 46 | "comment": "Device type ID, references the oathauth_types table", |
| 47 | "type": "integer", |
| 48 | "options": { "notnull": true } |
| 49 | }, |
| 50 | { |
| 51 | "name": "oad_name", |
| 52 | "comment": "User-specified name of this device", |
| 53 | "type": "binary", |
| 54 | "options": { "notnull": false, "length": 255 } |
| 55 | }, |
| 56 | { |
| 57 | "name": "oad_created", |
| 58 | "comment": "Timestamp when this authentication device was created", |
| 59 | "type": "mwtimestamp", |
| 60 | "options": { "notnull": false } |
| 61 | }, |
| 62 | { |
| 63 | "name": "oad_data", |
| 64 | "comment": "Data", |
| 65 | "type": "blob", |
| 66 | "options": { "length": 65530, "notnull": false } |
| 67 | } |
| 68 | ], |
| 69 | "indexes": [ |
| 70 | { |
| 71 | "name": "oad_user", |
| 72 | "columns": [ "oad_user" ], |
| 73 | "unique": false |
| 74 | } |
| 75 | ], |
| 76 | "pk": [ "oad_id" ] |
| 77 | } |
| 78 | ] |