Files
planka/server/api/models/ProjectManager.js

77 lines
2.4 KiB
JavaScript
Raw Normal View History

/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
2019-08-31 04:07:25 +05:00
/**
* ProjectManager.js
2019-08-31 04:07:25 +05:00
*
* @description :: A model definition represents a database table/collection.
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
*/
2025-09-08 16:20:27 +02:00
/**
* @swagger
* components:
* schemas:
* ProjectManager:
* type: object
* required:
* - projectId
* - userId
* properties:
* id:
* type: string
* description: Unique identifier for the project manager
* example: 1357158568008091264
* projectId:
* type: string
* description: ID of the project the manager is associated with
* example: 1357158568008091265
* userId:
* type: string
* description: ID of the user who is assigned as project manager
* example: 1357158568008091266
* createdAt:
* type: string
* format: date-time
* nullable: true
* description: When the project manager was created
* example: 2024-01-01T00:00:00.000Z
* updatedAt:
* type: string
* format: date-time
* nullable: true
* description: When the project manager was last updated
* example: 2024-01-01T00:00:00.000Z
*/
2019-08-31 04:07:25 +05:00
module.exports = {
attributes: {
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
// ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
projectId: {
model: 'Project',
required: true,
columnName: 'project_id',
2019-08-31 04:07:25 +05:00
},
userId: {
model: 'User',
required: true,
columnName: 'user_id',
},
2019-08-31 04:07:25 +05:00
},
tableName: 'project_manager',
2019-08-31 04:07:25 +05:00
};