mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
|
/**
|
||
|
* ProjectManager.js
|
||
|
*
|
||
|
* @description :: A model definition represents a database table/collection.
|
||
|
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
|
||
|
*/
|
||
|
|
||
|
module.exports = {
|
||
|
attributes: {
|
||
|
issuer: {
|
||
|
type: 'string',
|
||
|
isNotEmptyString: true,
|
||
|
allowNull: true,
|
||
|
},
|
||
|
sub: {
|
||
|
type: 'string',
|
||
|
isNotEmptyString: true,
|
||
|
allowNull: true,
|
||
|
},
|
||
|
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
|
||
|
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
|
||
|
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
|
||
|
|
||
|
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
||
|
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
||
|
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
|
||
|
|
||
|
// ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
|
||
|
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
|
||
|
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
|
||
|
|
||
|
userId: {
|
||
|
model: 'User',
|
||
|
required: true,
|
||
|
columnName: 'user_id',
|
||
|
},
|
||
|
},
|
||
|
|
||
|
tableName: 'identity_provider_user',
|
||
|
};
|