"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TypeIsTextToSequelize = void 0;
const sequelize_1 = require("sequelize");
const string_1 = require("./string");
const typeGenerator_1 = require("./generators/typeGenerator");
const toSequelizeGenerator_1 = require("./generators/toSequelizeGenerator");
exports.TypeIsTextToSequelize = (0, toSequelizeGenerator_1.toSequelizeGenerator)((options) => (Object.assign(Object.assign({}, options), { type: sequelize_1.DataTypes.TEXT({ length: options === null || options === void 0 ? void 0 : options.length }), comment: options === null || options === void 0 ? void 0 : options.comment })));
const TypeIsText = (0, typeGenerator_1.typeGenerator)((options) => ({
    __name: 'text',
    toSwagger: () => (0, string_1.TypeIsStringToSwagger)(options),
    toSequelize: () => (0, exports.TypeIsTextToSequelize)(options),
    fixValue: string_1.TypeIsStringFixValue,
}));
exports.default = TypeIsText;
//# sourceMappingURL=text.js.map