Hi trahma,
interesting problem. From your question is not clear to me where the content of a specific article version is stored. I think two tables are enough. Let's keep the table names article and article_version. I would define them as article - id, title, ... article_version - article_id, version, creation_time, content article hasMany article_versions. It makes sense to me also to have a 'relationship' where you only take the version names without the content.
Hope this helps
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community