/*! * Copyright (c) 2024 PLANKA Software GmbH * Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md */ /** * CardLabel.js * * @description :: A model definition represents a database table/collection. * @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models */ /** * @swagger * components: * schemas: * CardLabel: * type: object * required: * - id * - cardId * - labelId * properties: * id: * type: string * description: Unique identifier for the card-label association * example: "1357158568008091264" * cardId: * type: string * description: ID of the card the label is associated with * example: "1357158568008091265" * labelId: * type: string * description: ID of the label associated with the card * example: "1357158568008091266" * createdAt: * type: string * format: date-time * nullable: true * description: When the card-label association was created * example: 2024-01-01T00:00:00.000Z * updatedAt: * type: string * format: date-time * nullable: true * description: When the card-label association was last updated * example: 2024-01-01T00:00:00.000Z */ module.exports = { attributes: { // ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗ // ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗ // ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝ // ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗ // ║╣ ║║║╠╩╗║╣ ║║╚═╗ // ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝ // ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗ // ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗ // ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝ cardId: { model: 'Card', required: true, columnName: 'card_id', }, labelId: { model: 'Label', required: true, columnName: 'label_id', }, }, tableName: 'card_label', };