2017-06-28 20:28:28 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var apiname = 'issuer_oauth3_org';
|
|
|
|
var baseFields = [ 'createdAt', 'updatedAt', 'deletedAt' ];
|
|
|
|
|
|
|
|
module.exports = [
|
2017-07-19 23:42:06 +00:00
|
|
|
{
|
|
|
|
tablename: apiname + '_private_keys',
|
|
|
|
idname: 'id',
|
|
|
|
indices: baseFields.concat([ 'kty', 'kid' ]),
|
|
|
|
},
|
2017-07-21 16:45:01 +00:00
|
|
|
{
|
|
|
|
tablename: apiname + '_codes',
|
|
|
|
idname: 'id',
|
|
|
|
indices: baseFields.concat([ 'code', 'expires' ]),
|
|
|
|
},
|
2017-07-24 20:45:25 +00:00
|
|
|
{
|
|
|
|
tablename: apiname + '_accounts',
|
|
|
|
idname: 'username',
|
|
|
|
indices: baseFields.concat([ 'accountId' ]),
|
|
|
|
},
|
2017-09-12 22:31:11 +00:00
|
|
|
{
|
|
|
|
tablename: apiname + '_contact_nodes',
|
|
|
|
idname: 'id',
|
|
|
|
indices: baseFields.concat([ 'accountId', 'verifiedAt', 'lastVerifiedAt' ]),
|
|
|
|
},
|
2017-06-28 20:28:28 +00:00
|
|
|
{
|
|
|
|
tablename: apiname + '_jwks',
|
|
|
|
idname: 'id',
|
2017-06-28 23:51:24 +00:00
|
|
|
indices: baseFields.concat([ 'kty', 'kid', 'sub' ]),
|
2017-06-29 00:34:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
tablename: apiname + '_grants',
|
|
|
|
idname: 'id',
|
2017-07-12 20:39:53 +00:00
|
|
|
indices: baseFields.concat([ 'sub', 'azp', 'azpSub', 'scope' ]),
|
2017-06-29 00:34:20 +00:00
|
|
|
},
|
2017-06-28 20:28:28 +00:00
|
|
|
];
|