cecon-interfaces
Version:
Interfaces de Projetos Cecon
27 lines (26 loc) • 768 B
JavaScript
;
// src/models/base.entity.ts
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseEntity = void 0;
var BaseEntity = /** @class */ (function () {
// #endregion Properties (6)
// #region Constructors (1)
function BaseEntity(data) {
// #region Properties (6)
this.active = true;
this.companyId = '';
this.containerId = '';
this.createdAt = new Date();
this.id = '';
this.updatedAt = new Date();
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return BaseEntity;
}());
exports.BaseEntity = BaseEntity;