Dear
Tables (4)
tbl_diary (일기)
- id (아이디) — PK, AI — Primary key — NOT NULL
- user_id (유저 아이디) — PK, FK — Foreign key → tbl_user.id — NOT NULL
- title (제목) — NOT NULL
- date (날짜) — NOT NULL
- emotion (감정) — NOT NULL
- weather (날씨) — NOT NULL
- content (내용) — NOT NULL
tbl_image (이미지)
- id (아이디) — PK, AI — Primary key — NOT NULL
- diary_id (다이어리 아이디) — PK, FK — Foreign key → tbl_diary.id — NOT NULL
- image_url (이미지 URL) — NOT NULL
tbl_letter (편지)
- id (아이디) — PK, AI — Primary key — NOT NULL
- user_id (수신자 아이디) — PK, FK — Foreign key → tbl_user.id — NOT NULL
- dear_name (수신자 이름) — NOT NULL
- date (날짜) — NOT NULL
- content (내용) — NOT NULL
tbl_user (유저)
- id (아이디) — PK, AI — Primary key — NOT NULL
- nickname (닉네임) — NOT NULL
- account_id (사용자 아이디) — NOT NULL
- password (비밀번호) — NOT NULL