Job Application Form - Copy this React, Tailwind Component to your project
create me a Application List, // models/Company.js import { DataTypes } from "sequelize"; import sequelize from "../config/database.js"; const Application = sequelize.define( "Application", { id: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true, }, user_id: { type: DataTypes.INTEGER, allowNull: false, references: { model: "users", // Table name key: "id", }, }, job_id: { type: DataTypes.INTEGER, allowNull: false, references: { model: "jobs", // Table name key: "id", }, }, status: { type: DataTypes.ENUM(["pending", "approved", "rejected"]), defaultValue: "pending", }, date_applied: { type: DataTypes.STRING, allowNull: false, }, }, { modelName: "application", timestamps: true, } ); export default Application; And show user info like name, email, jobname and cover letter when click on each application
