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

54 lines
1.5 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
/**
2025-08-23 00:03:20 +02:00
* StorageUsage.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-08-23 00:03:20 +02:00
const MAIN_ID = '1';
2019-08-31 04:07:25 +05:00
module.exports = {
2025-08-23 00:03:20 +02:00
MAIN_ID,
2019-08-31 04:07:25 +05:00
attributes: {
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
total: {
2025-08-23 00:03:20 +02:00
type: 'string',
required: true,
},
userAvatars: {
type: 'string',
required: true,
columnName: 'user_avatars',
},
backgroundImages: {
type: 'string',
required: true,
columnName: 'background_images',
},
attachments: {
type: 'string',
required: true,
columnName: 'attachments',
},
2019-08-31 04:07:25 +05:00
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
// ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
},
2025-08-23 00:03:20 +02:00
tableName: 'storage_usage',
2019-08-31 04:07:25 +05:00
};