umc_database

Tables (8)

alarm (Untitled8)

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

book (Untitled2)

  • id (Key) — bigint — Primary key — NOT NULL
  • book_category_id (Key2) — bigint — Foreign key → book_category.id — NOT NULL
  • name (Field) — varchar(40)
  • description (Field2) — text
  • created_at (Field3) — datatime(6)
  • updated_at (Field4) — datatime(6)

book_category (Untitled)

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

book_hash_tag (Untitled5)

  • id (Key) — bigint — Primary key — NOT NULL
  • book_id (Key2) — bigint — Foreign key → book.id — NOT NULL
  • hash_tag_id (Key4) — bigint — Foreign key → hash_tag.id — NOT NULL

book_likes (Untitled7)

  • id (Key) — bigint — Primary key — NOT NULL
  • book_id (Key2) — bigint — Foreign key → book.id — NOT NULL
  • member_id (Key3) — bigint — Foreign key → member.id — NOT NULL
  • created_at (Field) — datatime(6)
  • updated_at (Field2) — datatime(6)

hash_tag (Untitled6)

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

member (Untitled3)

  • id (Key) — bigint — Primary key — NOT NULL
  • phone_num (Field) — varchar(15)
  • name (Field2) — varchar(10)
  • nickname (Field3) — varchar(20)
  • gender (Field4) — varchar(10)
  • created_at (Field5) — datatime(6)
  • updated_at (Field6) — datatime(6)
  • status (Field7) — varchar(15)
  • inactive_date (Field8) — datatime

rent (Untitled4)

  • id (Key) — bigint — Primary key — NOT NULL
  • book_id (Key3) — bigint — Foreign key → book.id — NOT NULL
  • member_id (Key4) — bigint — Foreign key → member.id — NOT NULL
  • created_at (Field) — datatime(6)
  • updated_at (Field2) — datatime(6)