WIP - using objection base model to handle objects operations

This commit is contained in:
Francisco Gaona
2025-12-24 20:18:43 +01:00
parent e4f1ba96ad
commit 4520f94b69
15 changed files with 2325 additions and 16 deletions

View File

@@ -158,7 +158,13 @@ const validateForm = (): boolean => {
const handleSave = () => {
if (validateForm()) {
emit('save', formData.value)
// Filter out system fields from save data
const saveData = { ...formData.value }
const systemFields = ['id', 'tenantId', 'ownerId', 'created_at', 'updated_at', 'createdAt', 'updatedAt', 'createdBy', 'updatedBy']
for (const field of systemFields) {
delete saveData[field]
}
emit('save', saveData)
}
}