nb06-seven-team4

Tables (4)

ExerciseRecord (운동기록)

  • id (아이디) — int — Primary key — NOT NULL
  • exerciseType (운동 종류) — enum
  • description (설명) — string? — NOT NULL
  • time (시간) — int
  • distance (거리) — float
  • photos (사진) — string[]
  • authorNickname (기록자 닉네임) — string — Foreign key → participant.id — NOT NULL
  • authorPassword (비밀번호) — string
  • createdAt (생성일자) — date
  • updatedAt (마지막업데이트일자) — date
  • id (그룹 아이디) — int — Foreign key → Group.id — NOT NULL

Group (그룹)

  • id (그룹 아이디) — int — Primary key — NOT NULL
  • groupName (그룹 이름) — string
  • description (그룹 설명) — string? — NOT NULL
  • nickname (닉네임(그룹 생성자)) — string
  • password (비밀번호) — string
  • image (이미지) — string?
  • tag (태그) — string[] — NOT NULL
  • discordwebhookurl (디스코드 웹훅 URL) — string? — NOT NULL
  • discordserverinviteurl (디스코드 초대 링크) — string? — NOT NULL
  • goalNumber (목표 횟수) — int
  • likes (추천수) — int
  • participants (참여자목록) — participant[]
  • exerciserecords (운동기록목록) — ExerciseRecord[]
  • medals (획득메달목록) — Medal[]
  • createdAt (생성일자) — date
  • updatedAt (마지막 업데이트 일자) — date

Medal (메달(배지))

  • id (아이디(메달)) — int — Primary key — NOT NULL
  • type (타입) — enum — NOT NULL
  • createdAt (생성일자) — date
  • updatedAt (마지막업데이트일자) — date
  • id (그룹 아이디) — int — Foreign key → Group.id — NOT NULL

participant (참여자)

  • id (아이디) — int — Primary key — NOT NULL
  • nickname (참여자 닉네임) — string
  • password (비밀번호) — string
  • isOwner (그룹장 여부) — boolean
  • createdAt (생성일자) — date
  • updatedAt (마지막업데이트일자) — date
  • id (그룹 아이디) — int — Foreign key → Group.id — NOT NULL