BetU
Tables (7)
CertificationImage (Untitled)
- certificationImageId (인증사진 아이디) — Primary key — NOT NULL
- challengeId (챌린지 아이디) — Foreign key → Challenge.challengeId — NOT NULL
- groupId (그룹 아이디) — Foreign key → Challenge.groupId — NOT NULL
- userId (유저 아이디) — Foreign key → Users.userId — NOT NULL
- imageUrl (인증사진 주소)
- uploadedAt (인증사진 업로드 시간)
Challenge (챌린지)
- challengeId (챌린지 아이디) — Primary key — NOT NULL
- groupId (그룹 아이디) — Foreign key → Group.groupId — NOT NULL
- challengeName (챌린지 이름)
- challengeDescription (챌린지 설명)
- challengeDate (챌린지 기간)
- challengeIsPublic (챌린지 공개여부)
Comment (댓글)
- commentId (댓글 아이디) — Primary key — NOT NULL
- postId (포스트 아이디) — Foreign key → Post.postId — NOT NULL
- groupId (그룹 아이디) — Foreign key → Post.groupId — NOT NULL
- commentContent (댓글 내용)
Group (그룹)
- groupId (그룹 아이디) — Primary key — NOT NULL
- groupName (그룹 이름)
- groupCode (그룹 코드)
- groupIsPublic (그룹 공개 여부)
Post (포스트)
- postId (포스트 아이디) — Primary key — NOT NULL
- groupId (그룹 아이디) — Foreign key → Group.groupId — NOT NULL
- postContent (포스트 내용)
UserGroup (유저그룹)
- userGroupId (유저 그룹 아이디) — Primary key — NOT NULL
- userId (유저 아이디) — Foreign key → Users.userId — NOT NULL
- groupId (그룹 아이디) — Foreign key → Group.groupId — NOT NULL
- userGroupRole (유저 그룹 권한)
Users (유저)
- userId (유저 아이디) — Primary key — NOT NULL
- userName (유저 이름)
- userEmail (유저 이메일)
- userPassword (유저 비밀번호)