UMC_Node.js_Ch1
Tables (10)
alram (CopyOfCopyOfUntitled)
- id (Key) — bigInt — Primary key — NOT NULL
- user_id (Key2) — bigint — Foreign key → user.id — NOT NULL
- is_confirmed (Field) — booleam
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
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) — datetime(6)
- updated_at (Field4) — datetime(6)
book_category (Untitled)
- id (Key) — bigInt — Primary key — NOT NULL
- name (Field) — varchar(20)
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
book_hash_tag (CopyOfCopyOfUntitled22)
- id (Key) — bigint — Primary key — NOT NULL
- hash_tag_id (Key4) — bigInt — Foreign key → hash_tag.id — NOT NULL
- book_id (Key5) — bigint — Foreign key → book.id — NOT NULL
book_likes (CopyOfCopyOfUntitled2)
- id (Key) — bigint — Primary key — NOT NULL
- book_id (Key2) — bigint — Primary key — NOT NULL
- user_id (Key3) — bigint — Primary key — NOT NULL
- id (Key4) — bigint — Foreign key → book.id — NOT NULL
- id (Key5) — bigint — Foreign key → user.id — NOT NULL
- id (Key22) — bigInt — Foreign key → book.book_category_id — NOT NULL
- created_at (Field3) — datetime(6)
- updated_at (Field4) — datetime(6)
hash_tag (CopyOfUntitled)
- id (Key) — bigInt — Primary key — NOT NULL
- name (Field) — varchar(20)
- created_at (Field2) — datetime(6)
- updated_at (Field3) — datetime(6)
marketing (CopyOfUntitled4)
- id (Key) — Primary key — NOT NULL
- alram (Key22) — bigint — Foreign key → alram.user_id — NOT NULL
- title (Field) — varchar(20)
- body (Field2) — text
notice (Untitled4)
- id (Key) — Primary key — NOT NULL
- alram (Key22) — bigint — Foreign key → alram.user_id — NOT NULL
- title (Field) — varchar(20)
- body (Field2) — text
rent (CopyOfUntitled2)
- id (Key) — bigint — Primary key — NOT NULL
- user_id (Key4) — bigint — Foreign key → user.id — NOT NULL
- book_id (Key5) — bigint — Foreign key → book.id — NOT NULL
- id (Key2) — bigInt — Foreign key → book.book_category_id — NOT NULL
- created_at (Field3) — datetime(6)
- updated_at (Field4) — datetime(6)
user (Untitled3)
- id (Key) — bigint — Primary key — NOT NULL
- name (Field) — varchar(20)
- nick_name (Field2) — varchar(20)
- phone_number (Field3) — varchar(20)
- gender (Field4) — varchar(20)
- created_at (Field5) — datetime(6)
- updated_at (Field6) — datetime(6)
- status (Field7) — varchar(20)
- inactive_date (Field8) — datetime