tpt_v2
Tables (40)
Copy Of Copy Of Untitled4 (CustomerAssginment)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (lecture_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (Customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (status) — enum — "SUBMIT", "UNSUBMIT"
Copy Of Copy Of Untitled5 (AssignmentAttachment)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customerAssginment_id) — bigint — Foreign key → Copy Of Copy Of Untitled4.Key — NOT NULL — Auto Increment
- Field (fileKey) — varchar — 파일 키
Copy Of Untitled (admin)
- Key (id) — bigint — Foreign key → user_base.Key — NOT NULL — Auto Increment
- Field (one_line_introduction) — varchar — 한줄소개
- Field (phone_number) — varchar — 핸드폰번호
Copy Of Untitled2 (complaint)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (answered_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (title) — varchar — NOT NULL — 제목
- Field (complaint_reply) — text — 컴플레인 답변 내용
- Field2 (content) — text — NOT NULL — 내용
- Field (answered_at) — datetime — NOT NULL — 답변 일자
- Field3 (created_at) — datetime — NOT NULL — 작성일시
- Field4 (updated_at) — datetime — NOT NULL — 수정일시
- Field (status) — ENUM — 'UNANSWERED','ANSWERED'
Copy Of Untitled3 (leveltest_response)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (leveltest_attempt_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (leveltest_question_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (answer_text) — varchar — 주관식,단답일경우 유저가 적은 답안
- Field2 (choice_number) — varchar — 객관식일 경우 유저가 선택한 번호
- Field3 (scored_awareded) — int — 유저가 해당 문제에서 획득한 점수
- Field4 (cretead_at) — datetime — 생성일시
- Field (updated_at) — datetime — 수정일시
Copy Of Untitled5 (LectureAttachment)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (lecuture_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (fileKey) — varchar — 파일 키
- Field (fileUrl) — varchar — 첨부파일 url
- Field (attachmentType) — varchar — 일반, 과제
Untitled (billing_request)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (moid) — varchar — 가맹점에서 부여한 주문번호
- Field (status) — enum — PENDING, COMPLETE, FAILED
- Field (result_code) — varchar — 결과 코드
- Field (result_msg) — text — 결과 메시지
- Field (completed_at) — datetime — 완료 일시
Untitled (leveltest_question)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Field (content) — varchar — 문제 내용
- Field2 (score) — int — 점수배점
- Field3 (problem_type) — enum — ENUM(SUBJECTIVE,SHORT_ANSWER, MULTIPLE_CHOICE)
- Field (image_url) — varchar — 레벨테스트 이미지
- Field (choice1) — varchar — 1번선택지 내용
- Field2 (choice_2) — varchar — 2번선택지 내용
- Field3 (choice_3) — varchar — 3번 선택지 내용
- Field4 (choice_4) — varchar — 4번 선택지 내용
- Field5 (choice_5) — varchar — 5번 선택지 내용
- Field (correct_choice_num) — varchar — 정답 선택지 번호(객관식), 여러개일경우 ,로 구분
- Field (answer_text) — varchar — 정답내용(주관식,단답형)
Untitled (leveltest_attempt)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (trainer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (total_score) — int — 레벨테스트 총점
- Field2 (leveltest_grade) — enum — ENUM('A','B','C')
- Field (leveltest_status) — enum — SUBMITTED, GRADED
- Field3 (created_at) — datetime — 생성일시
- Field4 (updated_At) — datetime — 수정일시
Untitled (subscription)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (subscription_plan_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (payment_method_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (subscribed_price) — bigdecimal — 구독 시작 시 확정된 금액 (중복 저장)
- Field (status) — enum — ACTIVE, CANCELLED, PAYMENT_FAILED, EXPIRED
- Field (current_period_start) — date — 현재 결제 주기 시작일
- Field (current_period_end) — date — 현재 결제 주기 종료일
- Field (next_billing_date) — date — 다음 결제 예정일
- Field (last_billing_date) — date — 마지막 결제 성공일
- Field (cancelled_at) — datetime — 해지 일시
- Field (cancellation_reason) — text — 해지 사유
- Field (payment_failed_count) — int — 연속 결제 실패 횟수
- Field (last_payment_failed_at) — datetime — 마지막 결제 실패 일시
- Field (subscription_type) — enum — REGULAR, PRE_REGISTER
- Field (promotion_note) — varchar — ex) 프로모션 메모 (예: 2개월 무료 사전등록)
Untitled (payment)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (subscription_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (payment_method_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (order_id) — varchar — 주문번호 (merchant_uid)
- Field (order_name) — varchar — 주문명 - 한글 (예: 기본 구독 플랜 2025년 11월 구독료)
- Field (pg_goods_name) — varchar — PG 상품명 - 영문 (예: Subscription 11/2025) - NicePay 전송용
- Field (amount) — bigdecimal — 결제 금액
- Field (vat) — bigdecimal — 부가세
- Field (discount_amount) — bigdecimal — 할인 금액
- Field (status) — enum — PENDING, SUCCESS, FAILED, CANCELLED, REFUNDED
- Field (payment_type) — enum — INITIAL, RECURRING, MANUAL
- Field (payment_key) — varchar — PG 결제 키 (NicePay payment key)
- Field (pg_tid) — varchar — PG 거래 고유번호 (transaction id)
- Field (pg_auth_code) — varchar — PG 승인 번호
- Field (pg_response_code) — varhcar — PG 응답 코드
- Field (pg_response_message) — text — PG 응답 메시지
- Field (pg_metadata) — json — PG사 응답 원본 데이터
- Field (requested_at) — datetime — 결제 요청 일시
- Field (paid_at) — datetime — 결제 완료 일시
- Field (failed_at) — datetime — 결제 실패 일시
- Field (cancelled_at) — datetime — 취소 일시
- Field (refunded_at) — datetime — 환불 일시
- Field (failure_reason) — text — 결제 실패 사유
- Field (failure_code) — varchar — 실패 코드
- Field (refund_amount) — bigdecimal — 환불 금액
- Field (refund_reason) — text — 환불 사유
- Field (pg_refund_tid) — varchar — PG 환불 거래번호
- Field (cancel_reason) — text — 취소 사유
- Field (receipt_url) — varchar — 영수증 URL
- Field (billing_period_start) — date — 청구 기간 시작일
- Field (billing_period_end) — date — 청구 기간 종료일
- Field (payment_method_snapshot) — json — 결제 당시 결제수단 정보 스냅샷
- Field (is_promotional) — boolean — 프로모션 결제 여부
- Field (promotion_detail) — varchar — 프로모션 상세 (예: 사전등록 2개월 무료)
Untitled (investment_type_change_request)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (trainer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (current_type) — enum — SWING, DAY, SCALPING
- Field (requested_type) — enum — SWING, DAY, SCALPING
- Field (status) — enum — PENDING, APPROVED, REJECTED, CANCELLED
- Field (reason) — text — 변경 사유
- Field (requested_date) — date — 신청일
- Field (target_change_date) — date — 변경 예정일 ( 매달 1일 )
- Field (processed_at) — datetime — 승인/거부 처리 시각
- Field (rejection_reason) — text — 거부 사유
Untitled (subscription_plan)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Field (name) — varchar — 구독 플랜 이름
- Field (price) — bigdecimal — 월 구독료
- Field (effective_from) — datetime — 시행 시작일
- Field (effective_to) — datetime — 시행 종료일 (NULL = 현재 활성)
- Field (is_active) — boolean — 현재 활성 플랜 여부
Untitled (memo)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (title) — varchar — 메모 제목
- Field (content) — text — 메모 내용
Untitled (payment_method)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (payment_request_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (order_id) — varchar — 주문 아이디
- Field (payment_method_type) — enum — CARD, KAKAOPAY, NAVERPAY
- Field (pg_customer_key) — varchar — PG사 고객 식별키
- Field (billing_key) — varchar — 정기결제용 빌링키
- Field (billing_key_issued_at) — datetime — 빌링키 발급 일시
- Field (display_name) — varchar — 화면 표시명 (예: 신한 **** 1234, 카카오페이)
- Field (masked_identifier) — varchar — 마스킹된 카드번호/계좌번호
- Field (card_company_code) — varchar — 카드사 코드 (예: 신한, 국민, 삼성)
- Field (card_company_name) — varchar — 카드사명 (예: 신한카드)
- Field (card_type) — enum — 카드 유형(CREDIT/DEBIT/null or 간편결제)
- Field (simple_pay_metadata) — json — 카카오페이/네이버페이 추가 정보
- Field (is_active) — boolean — 사용 가능 여부
- Field (is_primary) — boolean — 주 결제수단 여부
- Field (is_deleted) — boolean — 삭제 여부 (soft delete)
- Field (expires_at) — date — 만료일 (카드의 경우 YYMM)
- Field (pg_response_code) — varchar — PG 응답 코드
- Field (pg_response_message) — text — PG 응답 메시지
- Field (pg_metadata) — json — PG사 추가 응답 데이터 (JSON)
- Field (last_failed_at) — datetime — 마지막 결제 실패 일시
- Field (failure_count) — int — 연속 실패 횟수
- Field (deleted_at) — datetime — 삭제 일시
Untitled (review_tag)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Field (name) — varchar — 맞춤 상담, 전문 전략, 고수익 가능성 등
- Field (description) — text — 각 리뷰 태그에 대한 설명
Untitled (review_tag_mapping)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (review_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (review_tag_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
Untitled (review_attachment)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (review_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (file_url) — varchar — 파일 url
- Field (file_key) — varchar — 파일 key
Untitled (LectureAttchmentDownloadHistory)
- Key (id) — bigint — Primary key — NOT NULL — AutoIncrement
- Key (lecture_attachment_id) — bigint — Foreign key → Copy Of Untitled5.Key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
Untitled (customer)
- Key (id) — bigint — Foreign key → user_base.Key — NOT NULL — Auto Increment
- Key (trainer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (phone_number) — varchar — 핸드폰 번호
- Field (primary_investment_type) — enum — SWING, DAY, SCALPING
- Field (status) — enum — ACTIVE, INACTIVE
- Field (membership_level) — enum — BASIC, PREMIUM
- Field (membership_expired_at) — datetime — 멤버쉽 종료 일자
- Field (course_status) — boolean — BEFORE_COMPLETION, PENDING_COMPLETION, AFTER_COMPLETION
- Field (open_chapter_number) — int — 지금까지 열린 pro 강의 개수
- Field (token) — int — 토큰의 개수
- Field (feedhback_request_count) — int — 피드백 요청 개수
- Field (level_test_status) — enum — AVALIABLE, BEFORE_GRADING,PENDING_COMPLETE
- Field (terms_privacy_agreed) — boolean — 개인정보 동의 약관
- Field2 (terms_service_agreed) — boolean — 이용약관
- Field3 (terms_marketing_agreed) — boolean — 마케팅 수신 여부 동의 약관 여부
Untitled (feedback_request_attachment)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (feedback_request_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (file_url) — varchar — 파일 url
- Field (file_key) — varchar — 파일 key
Untitled (trainer)
- Key (id) — bigint — Foreign key → user_base.Key — NOT NULL — Auto Increment
- Field (one_line_introduction) — varchar — 한줄소개
- Field (phone_number) — varchar — 핸드폰 번호
Untitled (uid)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (uid) — varchar — UID
- Field (traiding_center_name) — varchar — 거래소명
Untitled (term)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (previous_version_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (term_type) — enum — PRIVACY, SERVICE, MARKETING
- Field (version) — varchar — 같은 타입의 약관도 v1.0, v1.1, v2.0 등으로 관리
- Field (title) — varchar — 약관 제목
- Field (content_url) — text — 약관 내용
- Field (summary) — text — 요약본
- Field (is_required) — boolean — 필수/선택 구분: is_required로 필수 약관 체크
- Field (needs_re_consent) — boolean — 재동의 필요: 중요 변경사항 있을 때 needs_re_consent 플래그
- Field (effective_date_time) — datetime — 시행일
- Field (expiry_date) — datetime — 만료일
Untitled (user_consent)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (term_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (is_agreed) — boolean — 동의 여부
- Field (agreed_at) — datetime — 동의 일시
- Field (withdrawn_at) — datetime — 동의 여부 철회 일시
- Field (consent_method) — enum — 어디서(web/app) 어떻게(signup/update) 동의했는지
- Field (ip_address) — varchar — 아이피
- Field (is_current) — boolean — is_current로 현재 유효한 동의 구분
Untitled (feedback_request)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (title) — varchar — 제목
- Field (investment_type) — enum — SCALPING, DAY, SWING
- Field (feedback_requested_at) — date — 피드백 요청 일자
- Field (course_status) — enum — BEFORE_COMPLETION,PENDING_COMPLETION, AFTER_COMPLETION
- Field (category) — varchar — 종목
- Field (risk_taking) — int — 리스크 테이킹
- Field (leverage) — int — 레버리지
- Field (position) — enum — SHORT, LONG
- Field (membership_level) — enum — BASIC, PREMIUM
- Field (pnl) — bigdecimal — P&L
- Field (total_asset_pnl) — bigdecimal — 전체 자산 비중 pnl
- Field (rnr) — double — R&R
- Field (feedback_year) — int — 피드백 연도
- Field (feedback_month) — int — 피드백 월
- Field (feedback_week) — int — 피드백 주차
- Field (status) — enum — FR("피드백 답변 완료, 피드백 읽음"), FN("피드백 답변 완료, 피드백 읽지 않음"), N("피드백 답변 미완료")
- Field (trading_review) — text — 매매 복기
- Field (is_read) — boolean — 읽음 여부
- Field2 (is_responded) — boolean — 답변 여부
- Field (is_best_feedback) — boolean — 베스트 피드백 유무
- Field (operating_funds_ratio) — int — 비중 (운용 자금 대비)
- Field (entry_price) — bigdecimal — 진입 자금
- Field (exit_price) — bigdecimal — 탈출 자금
- Field (setting_stop_loss) — bigdecimal — 설정 손절가
- Field (setting_take_profit) — bigdecimal — 설정 익절가
- Field (position_start_reason) — text — 포지션 진입 근거
- Field (position_end_reason) — text — 포지션 탈출 근거
- Field (is_token_used) — boolean — 토큰 사용 여부
- Field (token_amount) — int — 사용한 토큰 개수
- Field (is_trainer_written) — boolean — 트레이너 작성 여부
Untitled (feedback_response)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (feedback_request_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (content) — text — 피드백 내용
- Field (submitted_at) — datetime — 피드백 제공 시각
Untitled (investment_type_history)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (investment_type) — enum — SWING, DAY, SCALPING
- Field (started_at) — datetime — 시작 날짜
- Field (ended_at) — datetime — 종료 날짜
Untitled (monthly_trading_summary)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (trainer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (summary_year) — int — 요약 연도
- Field (summary_month) — int — 요약 월
- Field (investment_type) — enum — SWING, DAY
- Field (monthly_evaluation) — text — 한달 회원 매매 평가
- Field2 (next_month_goal) — text — 다음달 회원 목표
- Field (trainer_evaluation) — text — 트레이너 최종 평가
- Field (evaluated_at) — datetime — 트레이너 평가 시각
Untitled (weekly_trading_summary)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (trainer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (course_status) — enum — BEFORE_COMPLETION, AFTER_COMPLETION
- Field (summary_year) — int — 요약 연도
- Field (summary_month) — int — 요약 월
- Field (summary_week) — int — 요약 주차
- Field (weekly_evalutation) — text — 주간 회원 매매평가
- Field2 (weekly_profitable_trading_analysis) — text — 수익난 메메 분석
- Field (weekly_loss_trading_analysis) — text — 손실난 매매분석
- Field (evaluated_at) — datetime — 트레이너 평가 시각
- Field (memo) — text — 메모
Untitled (feedback_response_attachment)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (feedback_response_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (file_url) — varchar — 파일 url
- Field (file_key) — varchar — 파일 key
Untitled (column)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (column_category_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (trainer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (title) — varchar — 컬럼 제목
- Field (subtitle) — varchar — 칼럼 부제목
- Field (content) — text — 내용
- Field (like_count) — int — 좋아요 수
- Field (is_best) — boolean — 베스트 여부
Untitled (column_category)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Field (name) — varchar — 카테고리 이름
- Field (color) — varchar — 색상
Untitled (comment)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (column_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (user_id) — bigint — Foreign key → user_base.Key — NOT NULL — Auto Increment
- Field (content) — text — 내용
Untitled (consultation)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (consultation_date) — date — 상담 예약 날짜
- Field (consultation_time) — time — 상담 예약 시간
- Field (memo) — varchar — 상담 메모
- Field (is_processed) — boolean — 상담 수행 여부
Untitled (review)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (trainer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (content) — text — 후기 내용
- Field (reply_content) — text — 후기 답변 내용
- Field (submitted_at) — datetime — 후기 남긴 일자
- Field2 (replied_at) — datetime — 후기답변 일자
- Field (status) — enum — PUBLIC, PRIVATE
- Field (start_point) — int — 별점
Untitled (lecture)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (chapter_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (trainer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (title) — varchar — 강의 제목
- Field (subtitle) — varchar — 강의 부제목
- Field (content) — text — 강의 내용(줄글)
- Field (video_url) — varchar — 비디오 url
- Field (attachment_url) — varchar — 첨부파일 url
- Field (duration_seconds) — int — 재생 시간 (초단위)
- Field (lecture_order) — int — 강의 순서(n주차를 나타냄)
- Field (requiredTokens) — int — 강의 시청에 필요한 토큰 수(무료=0)
- Field2 (thumbnailUrl) — varchar — 썸네일 이미지
Untitled (chapter)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Field (title) — varchar — 챕터 제목
- Field (description) — text — 설명
- Field (membership_level) — enum — REGULAR,PRO
- Field (chapter_order) — int — 챕터 내 순서(정렬시 필요)
Untitled (lecture_progress)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Key (lecture_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Key (customer_id) — bigint — Foreign key → Untitled.Key — NOT NULL — Auto Increment
- Field (watched_seconds) — int — 누적 시청 시간
- Field (is_completed) — boolean — 완강 여부
- Field (last_watched_at) — datetime — 마지막 시청 시각
- Field (last_positioned_seconds) — 마지막 재생위치(재접속 시 이어보기)
user_base (user)
- Key (id) — bigint — Primary key — NOT NULL — Auto Increment
- Field (username) — varchar — 유저 id
- Field (email) — varchar — 이메일
- Field (password) — varchar — 비밀번호
- Field (name) — varchar — 유저의 이름
- Field (role) — enum — ROLE_ADMIN, ROLE_TRAINER, ROLE_CUSTOMER
- Field (version) — varchar — 낙관적 락을 위한 필드
- Field (nickname) — varchar — 닉네임
- Field2 (profileImage) — varchar — 프로파일 이미지
- Field3 (profileImageKey) — varchar — 프로파일 이미지 키
- Field (provider) — varchar — 프로파일
- Field2 (provider_id) — varchar — 프로파일 아이디