mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
parent
281cb4a71b
commit
f9e0147f33
61 changed files with 1063 additions and 191 deletions
|
@ -5,12 +5,30 @@
|
|||
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
|
||||
*/
|
||||
|
||||
const Roles = {
|
||||
EDITOR: 'editor',
|
||||
VIEWER: 'viewer',
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
Roles,
|
||||
|
||||
attributes: {
|
||||
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
|
||||
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
|
||||
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
|
||||
|
||||
role: {
|
||||
type: 'string',
|
||||
isIn: Object.values(Roles),
|
||||
required: true,
|
||||
},
|
||||
canComment: {
|
||||
type: 'boolean',
|
||||
allowNull: true,
|
||||
columnName: 'can_comment',
|
||||
},
|
||||
|
||||
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
||||
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
||||
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue