kotluck

테이블 (7)

accounts.User (Untitled)

  • Key (id) — 기본 키 — NOT NULL
  • Field
  • Field2
  • Field3

boards.Board (Untitled3)

  • Key (id) — 기본 키 — NOT NULL
  • Key (author) — 'accounts.User' — 외래 키 → accounts.User.Key — NOT NULL
  • Field (title) — null=False
  • Field (content) — null=False
  • Field (image) — upload_to='board'
  • Field (category) — choices=CATEGORY_CHOICES, default='자유게시판'
  • Field (created_at) — auto_now_add=True

boards.RecruitmentBoard (CopyOfUntitled3)

  • Key (id) — 기본 키 — NOT NULL
  • Key (author) — 'accounts.User' — 외래 키 → accounts.User.Key — NOT NULL
  • Field (title) — null=False
  • Field (content) — null=False
  • Field (image) — upload_to='board'
  • Field (is_admin) — default=0(0=게스트, 1=호스트)
  • Field (created_at) — auto_now_add=True

chat --> 추후추가예정 (Untitled5)

  • Key (user) — 'accounts.User' — 외래 키 → accounts.User.Key — NOT NULL
  • Field

comments.Comment (Untitled4)

  • Key (id) — 기본 키 — NOT NULL
  • Key (board) — 외래 키 → boards.Board.Key — NOT NULL
  • Key (recruitment_board) — 외래 키 → boards.RecruitmentBoard.Key — NOT NULL
  • Key (author) — 외래 키 → accounts.User.Key — NOT NULL
  • Field (contents) — null=False
  • Field (created_at) — auto_now_add=True

profiles.Profile (Untitled2)

  • Key (id) — 기본 키 — NOT NULL
  • Key (user) — 'accounts.User', on_delete=models.CASCADE — 외래 키 → accounts.User.Key — NOT NULL
  • Field (nickname) — unique=True
  • Field (gender) — choices=GENDER_CHOICES, default='선택안함'
  • Field (age) — null=False
  • Field (region) — null=False
  • Field (info) — null=True
  • Field (image) — upload_to='profile', blank=True

reports.Report (Untitled6)

  • Key (id) — 외래 키 → accounts.User.Key — NOT NULL