CarrotMarketForEdu
Tables (25)
Account (account)
- 등록 은행 또는 증권사 아이디 (moneySupply_id) — BIGINT — Primary key — NOT NULL
- 등록 은행 또는 증권사 (moneySupply) — VARCHAR(45)
ActiveBadge (activeBadge)
- 활동 뱃지 아이디 (현재 총 28개) (activeBadge_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- 활동 뱃지 이름 (activeBadgeName) — VARCHAR(45)
- 활동 뱃지 url (activeBadge_url) — TEXT
- 획득 방법 (howToGetBadge) — TEXT
- 활동 뱃지 설명 (activeBadgeExplain) — TEXT
- 활동 뱃지 획득자 수 (퍼센트) (getterNumPercent) — DECIMAL(3, 0)
Address1 (address1)
- Address1 (address1_id) — BIGINT — Primary key — NOT NULL
- Address2 (address2_id) — BIGINT — Foreign key → Address2.Address2 — NOT NULL
- Address1Name (address1Name) — VARCHAR(10)
Address2 (address2)
- Address2 (address2_id) — BIGINT — Primary key — NOT NULL
- Address3 (address3_id) — BIGINT — Foreign key → Address3.Address3 — NOT NULL
- Address2Name (address2Name) — VARCHAR(10)
Address3 (address3)
- Address3 (address3_id) — BIGINT — Primary key — NOT NULL
- Address4 (address4_id) — BIGINT — Foreign key → Address4.Address4 — NOT NULL
- Address3Name (address3Name) — VARCHAR(10)
Address4 (address4)
- Address4 (address4_id) — BIGINT — Primary key — NOT NULL
- Address4Name (address4Name) — VARCHAR(10)
CarrotPay (carrotPay)
- 당근 페이 아이디 (carrotPay_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- Status (status) — VARCHAR(20)
- 회원 아이디 (user_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- 잔액 (balance) — BIGINT
- 등록 은행 또는 증권사 아이디 (moneySupply_id) — BIGINT — Foreign key → Account.등록 은행 또는 증권사 아이디 — NOT NULL
Category (category)
- 카테고리 아이디 (ex: 전자기기) (category_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- 카테고리 이름 (categoryName) — TEXT
Category_Together (category_Together)
- 같이해요 카테고리 아이디 (categoryTogether) — BIGINT — Primary key — NOT NULL
- 같이해요 카테고리 이름 (categoryTogetherName) — VARCHAR(45)
- 같이해요 카테고리 이미지 url (categoryTogetherImg) — TEXT
Comment (comment)
- 답변 or 댓글 아이디 (comment_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- Status (status) — VARCHAR(20)
- 회원 아이디 (user_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- 동네 생활 글 아이디 (regionLifePost_id) — BIGINT — Foreign key → RegionLife.동네 생활 글 아이디 — NOT NULL
- 답변 or 댓글 내용 (comment) — TEXT
Comment - Reply (commentReply)
- 댓글 or 답변의 대댓글 (commentReply_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- Status (status) — VARCHAR(20)
- 대댓글 내용 (commentReply) — TEXT
- 답변 or 댓글 아이디 (comment_id) — BIGINT — Foreign key → Comment.답변 or 댓글 아이디 — NOT NULL
- 동네 생활 글 아이디 (regionLifePost_id) — BIGINT — Foreign key → RegionLife.동네 생활 글 아이디 — NOT NULL
- 회원 아이디 (user_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
FreqPhrase (freqphrase)
- 자주 쓰는 문구 아이디 (freqPhrase_id) — BIGINT — Primary key — NOT NULL
- 자주 쓰는 문구 (freqPhrase) — VARCHAR(225)
- 회원 아이디 (user_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- Status (status) — VARCHAR(45)
Interest (interest)
- 관심 아이디 (interest_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- 게시물 아이디 (post_id) — BIGINT — Foreign key → Post.게시물 아이디 — NOT NULL
- 회원 아이디 (user_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
Keyword (keyword)
- 키워드 아이디 (keyword_id) — BIGINT — Primary key — NOT NULL
- 키워드 (keyword) — VARCHAR(90)
KeywordAlarm (keywordAlarm)
- 키워드 알람 (keywordAlarm_id) — BIGINT — Primary key — NOT NULL
- 회원 아이디 (user_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- 키워드 아이디 (keyword_id) — BIGINT — Foreign key → Keyword.키워드 아이디 — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- Status (status) — VARCHAR(20)
Post (post)
- 게시물 아이디 (post_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- Status (status) — VARCHAR(20)
- 회원 아이디 (user_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- 게시글 제목 (postTitle) — TEXT
- 게시글 내용 (postContent) — TEXT
- 게시물 사진 url (postImg_url) — TEXT
- 카테고리 아이디 (ex: 전자기기) (category_id) — BIGINT — Foreign key → Category.카테고리 아이디 (ex: 전자기기) — NOT NULL
- 가격 (price) — BIGINT
- 당근 페이 가능 여부 ( Y / N ) (carrotPayAvailability) — VARCHAR(1)
- 판매 상태 (판매중 or 거래완료 or 숨김) (sellingStatus) — VARCHAR(20)
RegionLife (regionLife)
- 동네 생활 글 아이디 (regionLifePost_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- Status (status) — VARCHAR(20)
- 회원 아이디 (user_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- 궁금해요 (wondering) — BIGINT
- 댓글 or 답변 (comment) — TEXT
- 글의 종류 (같이해요 or 동네생활) (kindOfContent) — VARCHAR(10)
RegionLife_RegionLife (regionLife_RegionLife)
- 동네 생활 아이디 (contentRegionLife_id) — BIGINT — Primary key — NOT NULL
- 주제 아이디 (subject_id) — BIGINT — Foreign key → Subject_RegionLife.주제 아이디 — NOT NULL
- 게시글 아이디 (regionLifePost_id) — BIGINT — Foreign key → RegionLife.동네 생활 글 아이디 — NOT NULL
- 내용 (content) — TEXT
- 사진 url (img_url) — TEXT
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- status — VARCHAR(45)
RegionLife_Together (regionLife_Together)
- 같이해요 아이디 (contentTogether_idx) — BIGINT — Primary key — NOT NULL
- 게시글 아이디 (regionLifePost_idx) — BIGINT — Foreign key → RegionLife.동네 생활 글 아이디 — NOT NULL
- 같이해요 카테고리 아이디 (categoryTogether_idx) — BIGINT — Foreign key → Category_Together.같이해요 카테고리 아이디 — NOT NULL
- 제목 (title) — TEXT
- 활동 내용 (content) — TEXT
- 인원수 (peopleNum) — INT
- 성별 / 나이 (genderAndOld) — VARCHAR(45)
- 날짜 (date) — DATE
- 시간 (time) — TIME
- 장소 (region) — TEXT
Subject_RegionLife (subject_RegionLife)
- 주제 아이디 (subject_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- 주제 이름 (subjectName) — VARCHAR(45)
- 관심 주제 (Y | N) (interestSubject) — VARCHAR(45)
Sympathy (sympathy)
- 공감 아이디 (sympathy_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- Status (status) — VARCHAR(20)
- 회원 아이디 (user_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- 동네 생활 글 아이디 (regionLifePost_id) — BIGINT — Foreign key → RegionLife.동네 생활 글 아이디 — NOT NULL
- 공감 이미지 url (4가지 : 카카오처럼) (sympathyImg_url) — TEXT
Trade (trade)
- 거래 아이디 (trade_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTATMP
- UpdateAt (updateAt) — TIMESTAMP
- Status (status) — VARCHAR(20)
- 게시물 아이디 (post_id2) — BIGINT — Foreign key → Post.게시물 아이디 — NOT NULL
- 가격 (price) — BIGINT
- 판매자 아이디 (user_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- 구매자 아이디 (user2_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- 당근 페이 사용 가능 여부 (carrotPayAvailability) — VARCHAR(1)
TradeChatting (chatting)
- 채팅 아이디 (chat_id) — BIGINT — Primary key — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- Status (status)
- 채팅 내용 (chattingContents) — TEXT
- 채팅 내용 사진 url (chattingContentImg_url) — TEXT
- 판매자 아이디 (seller_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- 구매자 아이디 (buyer_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- 거래 아이디 (trade_id) — BIGINT — Foreign key → Trade.거래 아이디 — NOT NULL
User (user)
- 회원 아이디 (user_id) — BIGINT — Primary key — NOT NULL — 회원 아이디
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP
- Status (status) — VARCHAR(20)
- 회원 닉네임 (userNickName) — VARCHAR(10)
- 회원 전화번호 (userPhoneNum) — VARCHAR(11)
- 회원 프로필 사진 url (userProfileImg_url) — TEXT
- 회원 동네1 (main) (address1_id) — BIGINT — Foreign key → Address1.Address1 — NOT NULL
- 회원 동네1의 인증횟수 (userRegion1Auth) — BIGINT
- 회원 동네2 (address2_id) — BIGINT — Foreign key → Address1.Address1 — NOT NULL
- 회원 동네2의 인증횟수 (userRegion2Auth) — BIGINT
- 회원 매너온도 (userMannerTemp) — DECIMAL(5, 1)
- 회원 재거리 희망률 (userRetradeRate) — DECIMAL(5, 1)
- 회원 응답률 (userResponseRate) — DECIMAL(5, 1)
UserActiveBadge (userActiveBadge)
- 활동 뱃지를 가지는 회원 아이디 (user_id) — BIGINT — Foreign key → User.회원 아이디 — NOT NULL — 회원 아이디
- 활동 뱃지 아이디 (현재 총 28개) (activeBadge_id) — BIGINT — Foreign key → ActiveBadge.활동 뱃지 아이디 (현재 총 28개) — NOT NULL
- CreateAt (createAt) — TIMESTAMP
- UpdateAt (updateAt) — TIMESTAMP