dn

테이블 (5)

구독자 (Subscriber)

  • subscriberId (Key) — Long — 기본 키 — NOT NULL
  • email (Field) — email
  • sendTime (Field2) — LocalDateTime
  • status (Field3) — enum

뉴스 (Article)

  • newsId (Key) — Long — 기본 키 — NOT NULL
  • title (Field) — String
  • context (Field2) — String
  • url (Field3) — String
  • themeId (Key2) — Long — 외래 키 → 테마.themeId — NOT NULL

로그 (SentLog)

  • logId (Key) — Long — 기본 키 — NOT NULL
  • sentAt (Field) — LocalDateTime
  • articleId (Key2) — Long — 외래 키 → 뉴스.newsId — NOT NULL
  • subscriberId (Key3) — Long — 외래 키 → 구독자.subscriberId — NOT NULL
  • status (Field2) — enum

선택테마 (SubTheme)

  • subthemeId (Key3) — Long — 기본 키 — NOT NULL
  • subscriberId (Key) — Long — 외래 키 → 테마.themeId — NOT NULL
  • themeId (Key2) — Long — 외래 키 → 구독자.subscriberId — NOT NULL

테마 (Theme)

  • themeId (Key) — Long — 기본 키 — NOT NULL
  • name (Field) — String