import { DataTypes } from 'sequelize';
import sequelize from '../database.js';

const PredefinedActivity = sequelize.define('PredefinedActivity', {
    id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true,
    },
    name: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    description: {
        type: DataTypes.TEXT,
        allowNull: true,
    },
    durationText: {
        type: DataTypes.STRING,
        allowNull: true,
    },
    duration: {
        type: DataTypes.INTEGER,
        allowNull: true,
    },
}, {
    tableName: 'predefined_activities',
    timestamps: true,
    underscored: true,
});

export default PredefinedActivity;
