审核 MySQL 表并仅在批准后显示更改
我有一个小型 Web 应用程序,其中有一些表,用户可以在其中发布和编辑数据。我还有一个应用程序管理员来管理新发布或编辑的数据。我想做的是审核每个表并仅在管理员批准后才显示数据。
应用程序流程是这样的:用户在某个表中输入信息;管理员将被注意到,他将批准或拒绝该信息。如果批准,信息将显示在前端。一旦信息获得批准,以后就可以对其进行编辑。当用户编辑信息时,管理员会再次注意到,他必须批准或拒绝编辑的信息,但之前批准的信息必须仍然在网站上可用。
我还需要保留更改信息的每个版本(例如 v1、v2、v3 等)。
您认为,完成这项工作的最佳方式是什么?
谢谢。
I have a small web application with a few tables where users can post and edit data. I also have an application admin which moderates the new posted or edited data. What I would like to do is to audit each table and display the data only after the admin has approved it.
The application flow is something like this: a user enters an information in some table; the admin will be noticed and he will approve or reject that information. If the approves it, the information will be displayed in the front-end. Once an information is approved, it can be edited later. When a user edits an information, the admin gets noticed again and he has to approve or reject the edited information, but the previous approved information must be still available on the website.
I also need to keep each version of the changed information (something like v1, v2, v3 etc.).
In your opinion, what is the best way to make this work?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IS_FOR_DISPALY
默认 NO 的帖子来扩展您的表格。创建包含以下字段的批准表:post_record_id、new_content、aprove_status、aprove_date、aprove_person、已输入...
这只是一般工作流程
IS_FOR_DISPALY
default NO.Create table with approvals containing fields: post_record_id, new_content, aprove_status, aprove_date, aprove_person, entered ....
This is just general work flow
创造历史和队列表?
编辑进入队列表,如果管理员批准队列->真实->历史...
make history and queue tables ?
edits go to queue table and if admin aproves queue->real->history...