<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Khaled Mohamed</title>
    <description>The latest articles on DEV Community by Khaled Mohamed (@khaledhamam).</description>
    <link>https://dev.to/khaledhamam</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F348212%2Ff3586716-c2b0-4717-a9bf-372e9db2caf3.jpeg</url>
      <title>DEV Community: Khaled Mohamed</title>
      <link>https://dev.to/khaledhamam</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/khaledhamam"/>
    <language>en</language>
    <item>
      <title>How to group multiple different tables for a Many to Many Relation</title>
      <dc:creator>Khaled Mohamed</dc:creator>
      <pubDate>Fri, 29 May 2020 04:11:04 +0000</pubDate>
      <link>https://dev.to/khaledhamam/how-to-group-multiple-different-tables-for-a-many-to-many-relation-3na0</link>
      <guid>https://dev.to/khaledhamam/how-to-group-multiple-different-tables-for-a-many-to-many-relation-3na0</guid>
      <description>&lt;p&gt;Hey all, I'm working on a project an I needed some help in the database design.&lt;br&gt;
The project is a platform in which the user can upload a video, write a blog, or create a course.&lt;br&gt;
Each of them has its own table without any connections, but now I need the user to be able to bookmark the content.&lt;/p&gt;

&lt;p&gt;The question is, should I make a separate bookmark table for each content type? I was also thinking to make a table called &lt;strong&gt;content&lt;/strong&gt;, that contains only an id field, then each of the content types will add a &lt;strong&gt;contentId&lt;/strong&gt; field as a foreign key (or maybe also a pk), now I can make a bookmarks table containing a &lt;strong&gt;userId&lt;/strong&gt; and a &lt;strong&gt;contentId&lt;/strong&gt;, but I think I'll have a hard time querying the bookmarks and trying to find the data of the content.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Gid_AY3n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bd6cwfldzdalmq20ay93.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Gid_AY3n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bd6cwfldzdalmq20ay93.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'll really appreciate your opinion on this, thank you all.&lt;/p&gt;

</description>
      <category>help</category>
    </item>
    <item>
      <title>Looking for a CMS that integrates with a custom DB</title>
      <dc:creator>Khaled Mohamed</dc:creator>
      <pubDate>Tue, 10 Mar 2020 09:31:12 +0000</pubDate>
      <link>https://dev.to/khaledhamam/looking-for-a-cms-that-integrates-with-a-custom-db-4b1m</link>
      <guid>https://dev.to/khaledhamam/looking-for-a-cms-that-integrates-with-a-custom-db-4b1m</guid>
      <description>&lt;p&gt;Hey all, I'm having an issue with a project I'm working on.&lt;br&gt;
I have an app with its own db that contains the users and their credentials.&lt;br&gt;
I want to have a headless CMS that manages some blogs to avoid writing one of my own, but I can't seem to find a CMS that doesn't have its own separate users system.&lt;br&gt;
So my question is whether there is a CMS that I can integrate with to make it see my users in my database? or should I make my own and forget about integrating with a third-party?&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

</description>
      <category>help</category>
    </item>
  </channel>
</rss>
