mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 17:23:21 +03:00
feat: Track storage usage
This commit is contained in:
@@ -16,18 +16,13 @@ module.exports = {
|
||||
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
|
||||
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
|
||||
|
||||
dirname: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
},
|
||||
extension: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
},
|
||||
sizeInBytes: {
|
||||
type: 'string', // TODO: should be number somehow
|
||||
size: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
columnName: 'size_in_bytes',
|
||||
},
|
||||
|
||||
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
||||
@@ -38,6 +33,11 @@ module.exports = {
|
||||
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
|
||||
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
|
||||
|
||||
uploadedFileId: {
|
||||
model: 'UploadedFile',
|
||||
required: true,
|
||||
columnName: 'uploaded_file_id',
|
||||
},
|
||||
projectId: {
|
||||
model: 'Project',
|
||||
required: true,
|
||||
|
||||
Reference in New Issue
Block a user