Lehzin_tech_test_erd
Tables (4)
story_content (작품)
- id (작품 고유 id) — Long — Primary key — NOT NULL
- title (제목) — String
- author (작가) — String
- type (작품 타입) — String
- paid (유료/무료) — Boolean
- openDate (오픈시간) — LocalDateTime
- eventStartDate (이벤트시작시간) — LocalDateTime
- eventEndDate (이벤트마감시간) — LocalDateTime
- createdAt (생성시간) — LocalDateTime
- updatedAt (업데이트 시간) — LocalDateTime
user (유저)
- id (유저 고유 id) — Long — Primary key — NOT NULL
- name (이름) — String
- gender (성별) — String
- adult (성인인증 유무) — Boolean
- coin (코인) — Int
- createdAt (생성시간) — LocalDateTime
- updatedAt (업데이트 시간) — LocalDateTime
user_story_content (구매 관계)
- user (유저 고유 id) — Long — Foreign key → user.id — NOT NULL
- storyContent (작품 고유 id) — Long — Foreign key → story_content.id — NOT NULL
- createdAt (생성시간) — LocalDateTime
- updatedAt (업데이트 시간) — LocalDateTime
user_story_content_view (조회 관계)
- id (테이블 고유id) — Long — Primary key — NOT NULL
- user (유저 고유 id) — Long — Foreign key → user.id — NOT NULL
- storyContent (작품 고유 id) — Long — Foreign key → story_content.id — NOT NULL
- createdAt (생성시간) — LocalDateTime
- updatedAt (업데이트 시간) — LocalDateTime