'use strict';
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const sequelize_1 = require("sequelize");
const database_1 = __importDefault(require("../database"));
class ChatMessage extends sequelize_1.Model {
}
exports.default = ChatMessage;
ChatMessage.init({
    id: {
        type: sequelize_1.DataTypes.INTEGER,
        autoIncrement: true,
        primaryKey: true
    },
    chatId: {
        type: sequelize_1.DataTypes.INTEGER,
        allowNull: true
    },
    htmlcontent: {
        type: sequelize_1.DataTypes.TEXT,
        allowNull: true
    },
    tool_name: {
        type: sequelize_1.DataTypes.TEXT,
        allowNull: true
    },
    content_type: {
        type: sequelize_1.DataTypes.TEXT,
        allowNull: true
    },
    role: {
        type: sequelize_1.DataTypes.TEXT,
        allowNull: true
    },
    content: {
        type: sequelize_1.DataTypes.TEXT,
        allowNull: true
    },
    tool_call_id: {
        type: sequelize_1.DataTypes.TEXT,
        allowNull: true
    },
    temp_id: {
        type: sequelize_1.DataTypes.TEXT,
        allowNull: true
    }
}, {
    tableName: 'chat_message',
    sequelize: database_1.default.sequelize,
    timestamps: true,
    paranoid: true
});
