#ifndef TEMPLATEDAO_H #define TEMPLATEDAO_H #include #include #include #include #include #include class Template { public: int id = 0; QString name; QString description; QString documentType; // budget, invoice, project, purchase, third, generic double widthMM = 210; double heightMM = 297; double marginTop = 20; double marginBottom = 20; double marginLeft = 20; double marginRight = 20; QString content; // JSON con definicion de elementos bool isDefault = false; QString createdBy; }; class TemplateDAO : public QObject { Q_OBJECT public: explicit TemplateDAO(QObject *parent = nullptr) : QObject(parent) {} static bool create(Template &tpl); static QVector