title: Maintain Two Types Of User
body: <p>So I have a requirement where I have to maintain two types of users.</p>
  <ol>
  <li><p>A company and all of its users, to manage day-to-day work. And also create public data like showing a few items and related images and set availability for meetings and more.</p>
  </li>
  <li><p>Public user who can see the items, images. and can book the meetings.</p>
  </li>
  </ol>
  <p>Now for the first case, every user is created by official email and password as registeruser endpoint from rest-framework. there is user profile and other company data.</p>
  <p>For the second type of user (public), I have to give access for social login as well as login by email/mobile (maybe).</p>
  <p>I am confused as how to configure this in the best possible way. the company datas' are important.</p>
  <p>Should I create both user types in the same database (differentiating by user types)? or should I use a seprerate database then how to fetch data from two databases (never done this)?  Also to keep my datas safe from unauthorized access.</p>
  <p>Or is there a better way to manage all of my requirements which I'm totally unaware of? Like a better approach.</p>
  <p>Looking for an explanation from an experienced person.
  Thanks</p>