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

const Login = sequelize.define('login', {
    userId: {
        type: DataTypes.INTEGER,
        allowNull: false
    },
    timestamp: {
        type: DataTypes.DATE,
        allowNull: false,
        defaultValue: DataTypes.NOW
    }
}, {
    schema: 'logs',
    underscored: true,
    tableName: 'login'
});

export default Login;
