issuer.rest.walnut.js/models.js

26 lines
562 B
JavaScript
Raw Normal View History

'use strict';
var apiname = 'issuer_oauth3_org';
var baseFields = [ 'createdAt', 'updatedAt', 'deletedAt' ];
module.exports = [
{
tablename: apiname + '_private_keys',
idname: 'id',
unique: ['id'],
indices: baseFields.concat([ 'kty', 'kid' ]),
},
{
tablename: apiname + '_jwks',
idname: 'id',
unique: ['id'],
2017-06-28 23:51:24 +00:00
indices: baseFields.concat([ 'kty', 'kid', 'sub' ]),
},
{
tablename: apiname + '_grants',
idname: 'id',
unique: ['id'],
indices: baseFields.concat([ 'sub', 'azp', 'azpSub', 'scope' ]),
},
];