Final_Project
Tables (22)
account_product (상품 테이블)
- product_id (상품 id) — int64 — Primary key — NOT NULL
- product_name (상품 이름) — object
- product_price (상품 가격) — float
accounts_attendance (출석 테이블)
- id — int64 — Primary key — NOT NULL
- user_id (유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- attendance_date (출석 날짜) — datetime
accounts_blockrecord (차단기록테이블)
- id — int64 — Primary key — NOT NULL
- user_id (유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- block_user_id (차단된 유저) — int64
- reason (이유) — object
- created_at (차단한 시간) — datetime
accounts_failpaymenthistory (상품 구매 실패 기록 테이블)
- id — int64 — Primary key — NOT NULL
- user_id (유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- product_id (상품 id) — int64 — Foreign key → account_product.product_id — NOT NULL
- phone_type (핸드폰 타입) — object — ios / android
- created_at (구매 실패 시간) — datetime
accounts_friendrequest (친구 요청 테이블)
- id — int64 — Primary key — NOT NULL
- send_user_id (보낸 유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- receive_user_id (받는 유저 id) — int64
- status (상태) — object — P(대기) / A(수락) / R(거절)
- created_at (보낸 시간) — datetime
- updated_at (업데이트 시간) — datetime
accounts_group (학급 테이블)
- group_id (그룹 id) — int64 — Primary key — NOT NULL
- school_id (학교 id) — int64 — Foreign key → accounts_school.school_id — NOT NULL
- grade (학년) — int64
- class_num (반) — int64
accounts_nearbyschool (가까운 학교를 기록해두기 위한 관계형 테이블)
- id — int64 — Primary key — NOT NULL
- school_id (학교 id) — int64 — Foreign key → accounts_school.school_id — NOT NULL
- nearby_school_id (가까운 학교 id) — int64
- distance (거리) — float64
accounts_paymenthistory (구매 기록 테이블)
- id — int64 — Primary key — NOT NULL
- user_id (유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- product_id (상품 id) — int64 — Foreign key → account_product.product_id — NOT NULL
- phone_type (핸드폰 타입) — object — ios / android
- created_at (구매한 시간) — datetime
accounts_pointhistory (포인트 기록 테이블)
- id — int64 — Primary key — NOT NULL
- user_id (유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- delta_point (포인트 양) — int64 — 음수값도 존재
- created_at (기록된 시간) — datetime
- user_question_record_id (투표 기록 id) — float64
accounts_school (학교 테이블)
- school_id (학교 id) — int64 — Primary key — NOT NULL
- address (주소) — object
- student_count (학생 수) — int64
accounts_timelinereport (유저 신고기록 테이블)
- id — int64 — Primary key — NOT NULL
- user_id (유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- reason (신고 사유) — object
- created_at (신고한 시간) — datetime
- reported_user_id (신고 대상 유저 id) — int64
- user_question_record_id (투표 기록id) — int64
accounts_user (유저)
- user_id (유저 id) — int64 — Primary key — NOT NULL
- group_id (그룹 id) — int64 — Foreign key → accounts_group.group_id — NOT NULL
- is_superuser (superuser 여부) — int64
- is_staff (staff 여부) — int64
- firebase_uid (firebase 세션관리 식별자) — object
- gender (성별) — object
- point (포인트) — int64
- friend_id_list (친구 id 데이터) — object
- is_push_on (푸쉬 on/off) — int64
- block_user_id_list (차단한 유저 id 데이터) — object
- hide_user_id_list (숨김 처리한 유저 id 데이터) — object
- ban_status (차단 혹은 탈퇴한 유저 타입) — object
- report_count (신고 당한 횟수) — int64
- alarm_count (알람 갯수) — int64
- pending_chat (안읽은 채팅 갯수) — int64
- pending_votes (확인 안한 투표 갯수) — int64
- created_at (만든 시간) — datetime
accounts_user_contacts (유저 컨택 테이블)
- id — int64 — Primary key — NOT NULL
- user_id (유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- contacts_count (이 전화번호를 가지고 있는 유저 수) — int64
- invite_user_id_list (이 전화번호를 초대했던 유저 id 리스트)
accounts_userquestionredcord (투표 기록 테이블)
- id — int64 — Primary key — NOT NULL
- user_id (선택한 유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- question_piece_id (투표 id) — int64 — Foreign key → polls_questionpiece.question_piece_id — NOT NULL
- question_id (질문 id) — int64 — Foreign key → polls_questionpiece.question_id — NOT NULL
- chosen_user_id (선택 받은 유저 id) — int64
- opened_times (열어본 횟수) — int64
- status (상태) — object — (닫힘 / 초성 열림 / 차단)
- answer_status (답장 상태) — object — (미답변 / 비공개 / 공개)
- report_count (신고 횟수) — int64
- created_at (선택한 시간) — datetime
- answer_updated_at (답장 시간) — datetime
- has_read (읽었는지 여부) — int64
accounts_userwithdraw (탈퇴 기록 테이블)
- id — int64 — Primary key — NOT NULL
- reason (이유) — object
- created_at (탈퇴한 시간) — datetime
event_receipts (포인트 이벤트 참여 테이블)
- id — int64 — Primary key — NOT NULL
- user_id (유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- event_id (이벤트 id) — int64 — Foreign key → events.event_id — NOT NULL
- attendance_date (출석 날짜) — datetime
events (포인트 이벤트 테이블)
- event_id (이벤트 id) — int64 — Primary key — NOT NULL
- title (제목) — object
- plus_point (추가 포인트) — int64
- event_type (이벤트 종류) — object
- is_expired (만료 여부) — int64
- created_at (이벤트 생성 시간) — datetime
polls_question (질문 데이터 테이블)
- question_id (질문 id) — int64 — Primary key — NOT NULL
- question_text (질문 내용) — object
- created_at (만든 시간) — datetime
polls_questionpiece (투표 테이블)
- question_piece_id (투표 id) — int64 — Primary key — NOT NULL
- question_id (질문 id) — int64 — Foreign key → polls_question.question_id — NOT NULL
- is_voted (투표 여부) — int64
- created_at (투표한 시간) — datetime
polls_questionreport (질문에 대한 신고기록 테이블)
- id — int64 — Primary key — NOT NULL
- user_id (유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- question_id (질문 id) — int64 — Foreign key → polls_question.question_id — NOT NULL
- reason (신고 사유) — object
- created_at (신고한 시간) — datetime
polls_questionset (질문 세트 테이블)
- id — int64 — Primary key — NOT NULL
- user_id (유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- question_piece_id (투표 id) — int64 — Foreign key → polls_questionpiece.question_piece_id — NOT NULL
- opening_time (질문 오픈 시간) — datetime
- status (상태) — object — 상태(닫힘 / 열림 / 종료)
- created_at (만든 시간) — datetime
polls_usercandidate (투표에 등장하는 유저들 테이블)
- id — int64 — Primary key — NOT NULL
- user_id (유저 id) — int64 — Foreign key → accounts_user.user_id — NOT NULL
- question_piece_id (투표 id) — int64 — Foreign key → polls_questionpiece.question_piece_id — NOT NULL
- created_at (등장한 시간) — datetime