title: Mapping a primary key as foreign key in database
body: <p>I have a logical problem in my database design. 
  I have got a table with 2 field, one of the integer field is the primary key and it acts as foreign key in all other tables. </p>
  
  <p>The table structure is </p>
  
  <ol>
  <li>A table with an ID as primary key</li>
  <li>ID may have the basic data types as values</li>
  <li>Based on these data types the tables are mapped to the main table having ID as primary key </li>
  </ol>
  
  <p>How can I map this in the database creation? How can i design the table with this requirement.</p>