Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var _from2 = _interopRequireDefault(_from);
var _webinySqlTable = require("webiny-sql-table");
var _columns = require("./columns");
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
/**
* Contains basic columns. If needed, this class can be extended to add additional columns,
* and then be set as a new columns container as the default one.
*/
class ColumnsContainer extends _webinySqlTable.ColumnsContainer {
bigInt() {
const column = new _columns.BigIntColumn(
this.newColumnName,
this,
(0, _from2.default)(arguments)
);
this.columns.push(column);
return column;
}
blob() {
const column = new _columns.BlobColumn(this.newColumnName, this);
this.columns.push(column);
return column;
}