text: const Sequelize = require("sequelize");
  
  module.exports = class Attendance extends Sequelize.Model {
    static init(sequelize) {
      return super.init(
        {},
        {
          sequelize,
          timestamps: true,
          underscored: true,
          modelName: "attendance",
          tableName: "attendances",
          charset: "utf8",
          collate: "utf8_general_ci",
        }
      );
    }
    static associate(db) {
      db.Attendance.belongsTo(db.User, {
        foreignKey: {
          name: "user_id",
          allowNull: false,
        },
        targetKey: "id",
      });
    }
  };
  