ts-db-helper
Version:
Simple ORM based on TypeScript
38 lines • 1 kB
JavaScript
/**
* @class DataModel
*
* @description
* data model passed to the model migration
*
* @author Olivier Margarit
* @since 0.1
*/
var DataModel = /** @class */ (function () {
/**
* @public
* @constructor is a part of private API, DataModel is generated
* by the NgDbHelperModule for the model migration
*
* @param {{[index: string]: any}} tables tables of the data model
*/
function DataModel(tables) {
/**
* @public
* @property {Array<DbTable>} tables, data model table list
*/
this.tables = [];
/**
* @public
* @property {string} version, data model varsion
*/
this.version = '';
for (var key in tables) {
if (tables.hasOwnProperty(key)) {
this.tables.push(tables[key]);
}
}
}
return DataModel;
}());
export { DataModel };
//# sourceMappingURL=data-model.model.js.map