A
Anonymous
Application Form - Copy this React, Tailwind Component to your project
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, } );
Prompt
