UMC

Tables (19)

alarm (Untitled13)

  • id (Key) — bigint — Primary key — NOT NULL
  • user_id (Key2) — bigint — Foreign key → user.id — NOT NULL
  • is_confirmed (Field) — boolean
  • dtype (Field2) — varchar(20)
  • title (Field3) — varchar(30)
  • content (Field4) — text
  • created_at (Field5) — datetime(6)
  • updated_at (Field6) — datetime(6)

alert_option (Untitled16)

  • id (Key) — bigint — Primary key — NOT NULL
  • user_id (Key2) — bigint — Foreign key → user.id — NOT NULL
  • title (Field) — varchar(20)
  • dtype (Field2) — varchar(20)
  • created_at (Field3) — datetime(6)
  • updated_at (Field4) — datetime(6)

answer_to_inquiry (Untitled3)

  • id (Key) — bigint — Primary key — NOT NULL
  • inquiry_id (Key2) — bigint — Foreign key → inquiry.id — NOT NULL
  • title (Field) — varchar(30)
  • content (Field2) — text
  • created_at (Field3) — datetime(6)
  • updated_at (Field4) — datetime(6)

answer_to_review (Untitled12)

  • id (Key) — bigint — Primary key — NOT NULL
  • review_id (Key2) — bigint — Foreign key → review.id — NOT NULL
  • restaurant_id (Key4) — bigint — Foreign key → restaurant.id — NOT NULL
  • content (Field) — text
  • created_at (Field2) — datetime(6)
  • updated_at (Field3) — datetime(6)

food_category (Untitled5)

  • id (Key) — bigint — Primary key — NOT NULL
  • name (Field) — varchar(20)
  • created_at (Field2) — datetime(6)
  • updated_at (Field3) — datetime(6)

inquiry (Untitled2)

  • id (Key) — bigint — Primary key — NOT NULL
  • user_id (Key2) — bigint — Foreign key → user.id — NOT NULL
  • title (Field) — varchar(30)
  • content (Field2) — text
  • category (Field4) — varchar(15)
  • is_answered (Field5) — boolean
  • created_at (Field6) — datetime(6)
  • updated_at (Field7) — datetime(6)

inquiry_answer_image (CopyOfUntitled4)

  • id (Key) — bigint — Primary key — NOT NULL
  • answer_id (Key2) — bigint — Foreign key → answer_to_inquiry.id — NOT NULL
  • image_url (Field) — text
  • created_at (Field2) — datetime(6)
  • updated_at (Field3) — datetime(6)

inquiry_image (Untitled4)

  • id (Key) — bigint — Primary key — NOT NULL
  • inquiry_id (Key2) — bigint — Foreign key → inquiry.id — NOT NULL
  • image_url (Field) — text
  • created_at (Field2) — datetime(6)
  • updated_at (Field3) — datetime(6)

mission (Untitled6)

  • id (Key) — bigint — Primary key — NOT NULL
  • restaurant_id (Key2) — bigint — Foreign key → restaurant.id — NOT NULL
  • content (Field) — varchar(50)
  • get_point (Field2) — int
  • due_date (Field3) — datetime
  • created_at (Field4) — datetime(6)
  • updated_at (Field5) — datetime(6)

mission_assigned (Untitled9)

  • id (Key) — bigint — Primary key — NOT NULL
  • user_id (Key2) — bigint — Foreign key → user.id — NOT NULL
  • mission_id (Key3) — bigint — Foreign key → mission.id — NOT NULL
  • is_completed (Field) — boolean
  • created_at (Field2) — datetime(6)
  • updated_at (Field3) — datetime(6)

open_day_and_time_of_restaurant (Untitled10)

  • id (Key) — bigint — Primary key — NOT NULL
  • restaurant_id (Key2) — bigint — Foreign key → restaurant.id — NOT NULL
  • day_of_week (Field) — varchar(10)
  • open_time (Field2) — time
  • close_time (Field3) — time
  • created_at (Field4) — datetime(6)
  • updated_at (Field5) — datetime(6)

region (Untitled8)

  • id (Key) — bigint — Primary key — NOT NULL
  • name (Field) — varchar(15)
  • created_at (Field2) — datetime(6)
  • updated_at (Field3) — datetime(6)

restaurant (Untitled7)

  • id (Key) — bigint — Primary key — NOT NULL
  • region_id (Key2) — bigint — Foreign key → region.id — NOT NULL
  • name (Field) — varchar(30)
  • category (Field2) — varchar(15)
  • address (Field3) — varchar(100)
  • rating (Field4) — float
  • created_at (Field8) — datetime(6)
  • updated_at (Field9) — datetime(6)

restaurant_image (Untitled17)

  • id (Key) — bigint — Primary key — NOT NULL
  • restaurant_id (Key2) — bigint — Foreign key → restaurant.id — NOT NULL
  • image_url (Field) — text
  • created_at (Field2) — datetime(6)
  • updated_at (Field3) — datetime(6)

review (Untitled11)

  • id (Key) — bigint — Primary key — NOT NULL
  • user_id (Key2) — bigint — Foreign key → user.id — NOT NULL
  • restaurant_id (Key3) — bigint — Foreign key → restaurant.id — NOT NULL
  • rating (Field) — float
  • content (Field2) — text
  • created_at (Field3) — datetime(6)
  • updated_at (Field4) — datetime(6)

terms (Untitled14)

  • id (Key) — bigint — Primary key — NOT NULL
  • title (Field) — varchar(20)
  • content (Field2) — text
  • optional (Field3) — boolean
  • created_at (Field4) — datetime(6)
  • updated_at (Field5) — datetime(6)

user (Untitled)

  • id (Key) — bigint — Primary key — NOT NULL
  • gender (Field) — varcdhar(10)
  • date_of_birth (Field2) — datetime
  • address (Field3) — varchar(100)
  • point (Field4) — int
  • nickname (Field5) — varchar(30)
  • email (Field6) — varchar(50)
  • phone_num (Field7) — varchar(20)
  • social_type (Field8) — varchar(15)
  • status (Field9) — varchar(15)
  • inactive_date (Field10) — datetime
  • created_at (Field11) — datetime(6)
  • updated_at (Field12) — datetime(6)

user_preferred_food (CopyOfUntitled5)

  • id (Key) — bigint — Primary key — NOT NULL
  • category_id (Key2) — bigint — Foreign key → food_category.id — NOT NULL
  • user_id (Key3) — bigint — Foreign key → user.id — NOT NULL
  • created_at (Field2) — datetime(6)
  • updated_at (Field3) — datetime(6)

user_terms (Untitled15)

  • id (Key) — bigint — Primary key — NOT NULL
  • terms_id (Key2) — bigint — Foreign key → terms.id — NOT NULL
  • user_id (Key3) — bigint — Foreign key → user.id — NOT NULL
  • created_at (Field) — datetime(6)
  • updated_at (Field2) — datetime(6)