ts-db-helper
Version:
Simple ORM based on TypeScript
41 lines • 1.34 kB
JavaScript
/**
* @class ColumnConfig
*
* @description
* specific configurator for {@link Column} annotation
*
* @author Olivier Margarit
* @since 0.1
*/
var ColumnConfig = /** @class */ (function () {
function ColumnConfig() {
/**
* @property {boolean} primaryKey, define the column as primary key of the table,
* the default value is false
*/
this.primaryKey = false;
/**
* @property {boolean} autoIncrement, define if the column value is auto incremented
* default value is false
*/
this.autoIncrement = false;
/**
* @property {boolean} unique, define if column value should be unique. Default value
* is false
*/
this.unique = false;
/**
* @property {boolean} indexed, define if column value should be indexed. Default value
* is false
*/
this.indexed = false;
/**
* @property {string} type, define type of the column, type must be compatible with
* the field type plus the sqlite manged type
*/
this.type = 'string';
}
return ColumnConfig;
}());
export { ColumnConfig };
//# sourceMappingURL=column.configurator.js.map