My Contacts

Sample Contacts ERD

Tables (5)

Contact Interect (contact_interest)

  • Contact Id (contact_id) — BIGINT(11) — Foreign key → My_Contacts.Contact Id — NOT NULL
  • Interest Id (interest id) — BIGINT(11) — Foreign key → Interest.Interest Id — NOT NULL

Interest (interest)

  • Interest Id (interest id) — BIGINT(11) — Primary key — NOT NULL
  • Interest (interest) — VARCHAR(255)

My_Contacts (my_contacts)

  • Contact Id (contact_id) — BIGINT(11) — Primary key — NOT NULL
  • Last Name (last_name) — VARCHAR(255)
  • First Name (first_name) — VARCHAR(255)
  • Phone (phone) — VARCHAR(20) — NOT NULL
  • Emaile (email) — VARCHAR(100)
  • Gender (gender) — CHAR(1)
  • Birthday (birthday) — CHAR(8)
  • Zip Code Id (zip_code_id) — BIGINT(11) — Foreign key → Zip Code.Zip Code Id — NOT NULL
  • Status Id (status_id) — BIGINT(11) — Foreign key → Status.Status Id — NOT NULL

Status (status)

  • Status Id (status_id) — BIGINT(11) — Primary key — NOT NULL
  • Status (status) — VARCHAR(255)

Zip Code (zip_code)

  • Zip Code Id (zip_code_id) — BIGINT(11) — Primary key — NOT NULL
  • City (city) — VARCHAR(255)
  • State (state) — VARCHAR(255)