My Contact

Sample Contacts ERD

Tables (5)

Contact Interest (contact_interest)

  • Contact Id (contact_id) — BIGINT(11) — Foreign key → My contacts.Contact Id — NOT NULL
  • Interest Id (interest_id) — BIGINT(11) — Foreign key → Interests.Interest Id — NOT NULL

Interests (interests)

  • 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 — VARCHAR(20)
  • Email (email) — VARCHAR(100)
  • Gender (gender) — CHAR(1)
  • Birthday (birthday) — CHAR(8)
  • Zip Code Id (zip_code_id2) — 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)