UMC_task1
Tables (8)
alarm (Untitled8)
- id (Key) — bigint — Primary key — NOT NULL
- member_id (Key2) — bigint — Foreign key → member.id — NOT NULL
- is_confirmed (Field) — boolean
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
- dtype (Field4) — varchar(30)
- title (Field5) — varchar(30)
- body (Field6) — text
book (Untitled2)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(40)
- description (Field2) — text
- created_at (Field3) — datetime(6)
- updated_at (Field4) — datetime(6)
book_category (Untitled)
- Key — bigint — Primary key — NOT NULL
- book_id (Key2) — bigint — Foreign key → book.id — NOT NULL
- name (Field) — varchar(20)
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
book_hashtag (Untitled5)
- id (Key) — bigint — Primary key — NOT NULL
- book_id (Key2) — bigint — Foreign key → book.id — NOT NULL
- hashtag_id (Key3) — bigint — Foreign key → hashtag.id — NOT NULL
book_likes (Untitled7)
- Key — 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) — datetime(6)
- updated_at (Field2) — datetime(6)
hashtag (Untitled6)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — verchar(20)
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(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) — datetime(6)
- updated_at (Field6) — datetime(6)
- status (Field7) — varchar(15)
- Field8 — datetime
rent (Untitled4)
- id (Key) — bigint — Primary key — NOT NULL
- user_id (Key2) — bigint — Foreign key → book.id — NOT NULL
- member_id (Key3) — bigint — Foreign key → member.id — NOT NULL
- created_at (Field) — datetime(6)
- updated_at (Field2) — datetime(6)