实施职位和申请人的最佳方式
我正在尝试实现一个工作板类型的应用程序,并想知道实现“申请人”功能的最佳方法是什么。
一个职位发布有零到多个申请人。申请人是已登录的用户。用户申请职位后,可以取消提交且无法重新提交。
实现这一点的最佳方法是什么?我是否应该有一个单独的申请人模型,其中包含 user_id 和状态以及相应的视图和控件?
或者我应该只拥有一个“申请人”集合来存储 user_ids 并通过用户 ID 检索申请人的姓名?
有我可以看到的实施吗?
谢谢苏妮
;
I am trying to implement a job board type application and wondering what is the best way to implement a "applicant" feature.
A job posting has zero to many applicants. An applicant is a logged in user. Once a user applies for a job, he/she can un-submit and cannot resubmit.
What is the best way to implement this? Should I have a separate applicant model which has a user_id and status and corresponding views and controls?
Or should I just have a collection of "applicants" which stores user_ids and retrieve the name of the applicant through the user id?
Is there an implementation that I can see?
Thanks
Suni;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为新的申请人模型是多余的。在我看来,通过 job_applications 拥有许多用户的作业是最好的方法。
工作申请(工作 ID,用户 ID)
I think that a new applicant model is redundant. A job has many users through job_applications is the best way to go in my opinion.
job_applications(job_id, user_id)