| 
									
										
										
										
											2017-06-28 14:28:28 -06:00
										 |  |  | 'use strict'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var apiname = 'issuer_oauth3_org'; | 
					
						
							|  |  |  | var baseFields = [ 'createdAt', 'updatedAt', 'deletedAt' ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module.exports = [ | 
					
						
							| 
									
										
										
										
											2017-07-19 17:42:06 -06:00
										 |  |  |   { | 
					
						
							|  |  |  |     tablename: apiname + '_private_keys', | 
					
						
							|  |  |  |     idname: 'id', | 
					
						
							|  |  |  |     indices: baseFields.concat([ 'kty', 'kid' ]), | 
					
						
							|  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2017-07-21 10:45:01 -06:00
										 |  |  |   { | 
					
						
							|  |  |  |     tablename: apiname + '_codes', | 
					
						
							|  |  |  |     idname: 'id', | 
					
						
							|  |  |  |     indices: baseFields.concat([ 'code', 'expires' ]), | 
					
						
							|  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2017-07-24 14:45:25 -06: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 14:28:28 -06:00
										 |  |  |   { | 
					
						
							|  |  |  |     tablename: apiname + '_jwks', | 
					
						
							|  |  |  |     idname: 'id', | 
					
						
							| 
									
										
										
										
											2017-06-28 17:51:24 -06:00
										 |  |  |     indices: baseFields.concat([ 'kty', 'kid', 'sub' ]), | 
					
						
							| 
									
										
										
										
											2017-06-28 18:34:20 -06:00
										 |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     tablename: apiname + '_grants', | 
					
						
							|  |  |  |     idname: 'id', | 
					
						
							| 
									
										
										
										
											2017-07-12 14:39:53 -06:00
										 |  |  |     indices: baseFields.concat([ 'sub', 'azp', 'azpSub', 'scope' ]), | 
					
						
							| 
									
										
										
										
											2017-06-28 18:34:20 -06:00
										 |  |  |   }, | 
					
						
							| 
									
										
										
										
											2017-06-28 14:28:28 -06:00
										 |  |  | ]; |