mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
65 lines
1.2 KiB
JSON
65 lines
1.2 KiB
JSON
{
|
|
"version": 1,
|
|
"tables": {
|
|
"tokens": {
|
|
"columns": {
|
|
"id": {
|
|
"type": "id",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"userId": {
|
|
"type": "refUser",
|
|
"length": 255,
|
|
"notNull": true
|
|
},
|
|
"hostId": {
|
|
"type": "refHost",
|
|
"notNull": true
|
|
},
|
|
"sshCert": {
|
|
"type": "text",
|
|
"notNull": true
|
|
},
|
|
"privateKey": {
|
|
"type": "text",
|
|
"notNull": true
|
|
},
|
|
"email": {
|
|
"type": "text"
|
|
},
|
|
"sub": {
|
|
"type": "text"
|
|
},
|
|
"issuer": {
|
|
"type": "text"
|
|
},
|
|
"audience": {
|
|
"type": "text"
|
|
},
|
|
"createdAt": {
|
|
"type": "text",
|
|
"notNull": true,
|
|
"defaultNow": true
|
|
},
|
|
"expiresAt": {
|
|
"type": "varchar",
|
|
"length": 255,
|
|
"notNull": true
|
|
},
|
|
"lastUsed": {
|
|
"type": "text"
|
|
}
|
|
},
|
|
"indexes": [
|
|
{
|
|
"name": "idx_opkssh_tokens_user_host",
|
|
"columns": ["userId", "hostId"],
|
|
"unique": true
|
|
}
|
|
],
|
|
"adopts": "opkssh_tokens"
|
|
}
|
|
}
|
|
}
|