import { Model, DataTypes } from 'sequelize';
import { sequelize } from '../../../utils/sequelize.js';

class HealthActivity extends Model { }

HealthActivity.init({
    id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true},
    characterId: { 
        type: DataTypes.INTEGER,
        allowNull: false},
    activityTr: {
        type: DataTypes.STRING,
        allowNull: false},
    cost: {
        type: DataTypes.FLOAT,
        allowNull: false},
    successPercentage: {
        type: DataTypes.INTEGER,
        allowNull: false
    }
}, {
    sequelize,
    modelName: 'health_activity',
    tableName: 'health_activity',
    schema: 'falukant_log',
    timestamps: true,
    underscored: true});

export default HealthActivity;
