HDO ERD

Tables (79)

appsettings

  • id — int(10) — NOT NULL — 차량 id
  • auto_login_enabled — tinyint(1) — NOT NULL
  • notifications_enabled — tinyint(1) — NOT NULL
  • ads_enabled — tinyint(1) — NOT NULL
  • app_version — varchar(64) — NOT NULL
  • map_app — int(11) — NOT NULL — 0 is a disable
  • app_display — int(11) — NOT NULL
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • usersNewId — bigint(20)

bankcards

  • id — int(10) — NOT NULL — id
  • cardNo — varchar(20) — NOT NULL — card number
  • billingKey — varchar(64) — Billing key for card automatic payment approval
  • cardBrand — varchar(64) — Card brand differentiation, e.g., Visa, MasterCard
  • cardIssuer — varchar(64) — Card issuer, e.g., Shinhan, Kookmin
  • is_favorited — tinyint(1) — NOT NULL — use as main card
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • userId — bigint(20) — Foreign key → usersnews.id

bannermodels

  • id — char(36) — NOT NULL
  • title — varchar(255) — banner title
  • number — int(5)
  • image — varchar(255) — banner image
  • secondaryImage — longtext
  • view — int(5) — total viewed
  • bannerPosition — varchar(255) — banner position
  • banner_sliding_yn — tinyint(1) — enable slide for banner (true/false)
  • startdate — datetime — NOT NULL — start date show banner
  • enddate — datetime — NOT NULL — end date show banner
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • option — varchar(255)
  • url — varchar(255) — Image url

bookings

  • id — int(10) — Foreign key → sb_charge_connections.bookingId — NOT NULL — booking id
  • b_time_in — datetime — NOT NULL — start time of reservation
  • b_time_out — datetime — NOT NULL — end time of reservation
  • b_date — datetime — NOT NULL — reservation date
  • b_status — varchar(45) — NOT NULL — booking status
  • scanType — tinyint(4) — NOT NULL — scan type (1) QR code / (2) NFC
  • chargeType — tinyint(4) — NOT NULL — charge option (1) charge with percent / (2) charge with kWh / (3) charge with money default = 1
  • maxParkFee — decimal(9, 1) — maximum park fee
  • unitPrice — decimal(9, 1) — charge fee per 1 kwh
  • totalPrice — decimal(9, 1) — total charge fee
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • userId — bigint(20) — Foreign key → usersnews.id
  • vehicleId — int(10) — Foreign key → vehicles.id
  • chgs_id — int(10) — Foreign key → sb_charging_stations.chgs_id
  • chg_id — int(10) — Foreign key → sb_chargers.chg_id

carwashes

  • id — int(10) — NOT NULL — carwash id
  • car_number — int(11) — NOT NULL — car number
  • coupon_count — int(11) — NOT NULL — count of coupon
  • price — varchar(255) — price of the carwash service
  • purchase_date — datetime — date of purchase of the carwash service
  • address — varchar(255) — address of the carwash service
  • date_use — varchar(255) — date of use of the carwash service
  • member_name — varchar(255) — NOT NULL — member name
  • is_used_service — tinyint(1) — NOT NULL
  • assignment — varchar(255) — assignment details
  • use_where — varchar(255) — location or place where the carwash service is used
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • userId — bigint(20) — Foreign key → usersnews.id

carwashticketgroups

  • carWashGrpId — varchar(20) — NOT NULL — 세차권 그룹 번호
  • carWashNm — varchar(255) — 세차권명
  • carWashTy — varchar(30) — 세차유형
  • useYN — varchar(1) — 사용여부
  • deleteYN — varchar(1) — 삭제여부
  • deletedAt — timestamp — 삭제일시
  • createdAt — timestamp — 등록일시
  • updatedAt — timestamp — 수정일시
  • createdWho — bigint(20) — 등록자
  • updatedWho — bigint(20) — 수정자
  • deletedWho — bigint(20) — 삭제자

chargermodelfws

  • id — int(11) — NOT NULL — firmware ID
  • modelId — int(11) — NOT NULL — modelId
  • fwVer — varchar(255) — NOT NULL — firmware version
  • fwFileName — varchar(255) — NOT NULL — firmware 파일 명
  • fwFileUrl — varchar(255) — NOT NULL — firmware 저장 위치
  • isLast — tinyint(1) — NOT NULL — 최신 펌웨워 여부(true - 최신)
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

chargermodels

  • id — int(11) — NOT NULL — 충전기 모델 아이디 (charger model ID)
  • modelCode — varchar(255) — NOT NULL — 모델코드 (model code)
  • manufacturerId — varchar(255) — NOT NULL — 제조사 ID (manufacturer ID)
  • modelName — varchar(255) — NOT NULL — 모델이름 (model name)
  • maxKw — int(5) — NOT NULL — 충전기 정전용량(200kw, 150kw) (Charger maximum capacity (200kw, 150kw))
  • speedType — varchar(255) — NOT NULL — ultra-fast:초고속/fast:고속/medium:중속/slow:완속 - reference to code table
  • connectorType — varchar(255) — NOT NULL — 충전 커넥터 타입 ID - 코드테이블 참조 (charger connector type)
  • channelCount — int(1) — NOT NULL — 충전기 채널수 (number of charger channels)
  • lastFirmwareVer — varchar(255) — 최신 F/W 버전 (latest F/W version)
  • pncAvailable — tinyint(1) — PnC 가능 여부 (PnC availability, true/false)
  • useYN — tinyint(1) — 사용여부 (usage status, true/false)
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

chargingstationclusters

  • id — char(36) — NOT NULL — 고유 ID
  • bias — double(3, 1) — NOT NULL — 클러스터링 편향수치(낮을 수록 클러스터 갯수 증가)
  • zoomLevel — double(3, 1) — NOT NULL — 매핑될 줌 레벨(소수점 단위로 끊을 예정)
  • size — int(10) — 클러스터 리스트
  • point — longtext — 클러스터 리스트
  • center — point — 충전소 위치정보 GEOMETRY 값
  • createdAt — timestamp — NOT NULL

chargingstationsettlements

  • id — int(11) — NOT NULL
  • stationName — varchar(255) — 충전소의 이름
  • stationID — varchar(255) — 충전소의 고유 ID
  • chargerID — varchar(255) — 충전기의 고유 ID
  • totalPowerKW — float — 총 충전 전력 (kw)
  • totalFee — int(11) — 총 사용 요금
  • totalChargingTime — int(11) — 총 충전 시간
  • settlementStartTime — datetime — 정산 시작 시간
  • settlementEndTime — datetime — 정산 종료 시간
  • result — varchar(255) — 정산 결과
  • sapStartTime — datetime — SAP 연계 시작 시간
  • sapEndTime — datetime — SAP 연계 종료 시간
  • sapResult — varchar(255) — SAP 연계 결과
  • createdAt — datetime — NOT NULL

codelookups

  • id — int(11) — Primary key — NOT NULL — 코드 아이디
  • divCode — varchar(32) — Primary key — NOT NULL — 코드 타입 (code type)
  • divComment — varchar(140) — 코드 설명 (code description)
  • sequence — int(11) — 순서 시퀀스 (order sequence)
  • descVal — smallint(6) — code value (sequential increase within the same divCode category, does not change)
  • descInfo — varchar(255) — web에 표시되는 내용 (code content)
  • isSubCode — tinyint(1) — is sub code or not ? (true/false)
  • use — tinyint(1) — NOT NULL — 사용여부 (use or not , true/false)
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime

configs

  • id — int(11) — NOT NULL — 코드 아이디
  • divCode — varchar(32) — NOT NULL — 코드 타입 예) PARK_ALLOW_MIN
  • divComment — varchar(140) — 코드 설명 예) 충전완료 후, 주차면 점유 허용 시간 (분)
  • cfgVal — varchar(255) — NOT NULL — 파라메터 값 - 예)10
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime

consultations

  • id — bigint(20) — NOT NULL — cs ID
  • regNo — varchar(30) — NOT NULL — 접수 번호
  • messageId — bigint(20) — 문자 ID
  • ktApiId1 — varchar(36) — KT API ID 값 (KT 커스텀 프로 솔루션 KEY 값) -1
  • ktApiId2 — varchar(36) — KT API ID 값 (KT 커스텀 프로 솔루션 KEY 값) -2
  • incomingCd — ENUM — NOT NULL — 인입 분류 => 상담센터: CTP, APP신고: APP, 수동등록: MAN
  • callStartTime — datetime — 통화 인입 시간
  • callEndTime — datetime — 통화 종료 시간
  • csCls1 — varchar(100) — 상담 분류1(KT 제공 데이터)
  • csCls2 — varchar(100) — 상담 분류2(KT 제공 데이터)
  • csContent — text — 상담 내용
  • prsContent — text — 처리 내용
  • statusCd — varchar(10) — NOT NULL — 처리상태 => 보류: HOL, 완료: COM, 승인: APR, 환불: REF, 승인요청: ARR, 환불요청: RER, 반려: RET, 이관: TRA
  • completeDate — datetime — 완료 일시
  • approveWho — varchar(36) — 승인자
  • approveAt — datetime — 승인 일시
  • csClass — ENUM — NOT NULL — 상담분류 => 충전문제: CHG, 충전기 고장: BRK, 충전기 결제: PAY, 회원가입: REG, APP 결제: APP, 차량등록: CAR, 충전기 정보 오류: ERR, PNC등록문제: PNC, 기타: ETC
  • phoneNo — varchar(36) — (암호화된)인입 연락처
  • transId — bigint(20) — 이관 ID
  • createdAt — datetime — NOT NULL
  • updatedAt — datetime — NOT NULL
  • consultantId — bigint(20)
  • customerId — bigint(20)
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • orgId — int(10) — Foreign key → orgs.id
  • recordFile — varchar(50) — 녹취 파일

coupongroups

  • cpnGrpId — varchar(20) — NOT NULL — 충전쿠폰 그룹 번호
  • cpnNm — varchar(255) — 쿠폰명
  • cpnAmt — decimal(9, 0) — 쿠폰금액
  • cpnTy — varchar(30) — 쿠폰유형
  • useYN — varchar(1) — 사용여부
  • createdAt — timestamp — 등록일시
  • updatedAt — timestamp — 수정일시
  • deleteYN — varchar(1) — 삭제여부
  • deletedAt — timestamp — 삭제일시
  • createdWho — bigint(20) — 등록자
  • updatedWho — bigint(20) — 수정자
  • deletedWho — bigint(20) — 삭제자

couponmodels

  • id — char(36) — NOT NULL
  • number — varchar(255)
  • information — varchar(255)
  • member — varchar(255)
  • isUsed — tinyint(1) — NOT NULL
  • division — varchar(255)
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

cscalllogs

  • id — bigint(20) — NOT NULL — callLog ID
  • regNo — varchar(30) — 접수 번호
  • agentId — varchar(10) — 내선번호
  • csEvent — varchar(30) — call enent
  • callType — varchar(2) — 통화구분
  • cid — varchar(30) — 고객번호
  • uniqueId — varchar(30) — uniqueId
  • createdAt — datetime — NOT NULL

cslogs

  • csId — bigint(20) — cs ID
  • regNo — varchar(30) — NOT NULL — 접수 번호
  • messageId — bigint(20) — 문자 ID
  • ktApiId1 — varchar(36) — KT API ID 값 (KT 커스텀 프로 솔루션 KEY 값) -1
  • ktApiId2 — varchar(36) — KT API ID 값 (KT 커스텀 프로 솔루션 KEY 값) -2
  • incomingCd — ENUM — NOT NULL — 인입 분류 => 상담센터: CTP, APP신고: APP, 수동등록: MAN
  • callStartTime — datetime — 통화 인입 시간
  • callEndTime — datetime — 통화 종료 시간
  • csCls1 — varchar(10) — 상담 분류1(KT 제공 데이터)
  • csCls2 — varchar(10) — 상담 분류2(KT 제공 데이터)
  • csContent — text — 상담 내용
  • prsContent — text — 처리 내용
  • statusCd — varchar(10) — NOT NULL — 처리상태 => 보류: HOL, 완료: COM, 승인: APR, 환불: REF, 승인요청: ARR, 환불요청: RER, 반려: RET, 이관: TRA, 회수: RCT
  • completeDate — datetime — 완료 일시
  • approveWho — varchar(36) — 승인자
  • approveAt — datetime — 승인 일시
  • csClass — ENUM — NOT NULL — 상담분류 => 충전문제: CHG, 충전기 고장: BRK, 충전기 결제: PAY, 회원가입: REG, APP 결제: APP, 차량등록: CAR, 충전기 정보 오류: ERR, PNC등록문제: PNC, 기타: ETC
  • phoneNo — varchar(36) — (암호화된)인입 연락처
  • transId — bigint(20) — 이관 ID
  • hisCreatedAt — timestamp — NOT NULL — 이력생성 일시
  • createdAt — datetime — NOT NULL
  • updatedAt — datetime — NOT NULL
  • consultantId — bigint(20) — Foreign key → consultations.consultantId
  • customerId — bigint(20)
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • orgId — int(10) — Foreign key → orgs.id
  • recordFile — varchar(50) — 녹취 파일
  • id — bigint(20) — NOT NULL — cs log ID

csmessages

  • id — bigint(20) — NOT NULL — message ID
  • phoneNo — varchar(36) — (암호화된)사용자 연락처 (user phone number)
  • text_message — varchar(500) — 문자 메세지
  • regNo — varchar(30) — 접수 번호
  • createdAt — datetime — NOT NULL
  • csId — bigint(20) — Foreign key → cslogs.csId
  • createdWho — bigint(20)

csscripts

  • id — int(11) — NOT NULL
  • scrptContent — text — 스크립트 내용
  • createdAt — datetime — NOT NULL
  • updatedAt — datetime — NOT NULL
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • scriptName — varchar(100) — 스크립트 이름

csstates

  • csLogId — varchar(36) — NOT NULL
  • regNo — varchar(36) — 접수번호 consultation FK 키
  • seq — int(11) — 순번
  • statusCd — smallint(6) — 처리 상태코드
  • prsContent — text — 처리 내용
  • completeDate — datetime — 완료 일시
  • createdAt — datetime — NOT NULL
  • updatedAt — datetime — NOT NULL
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

cstransfers

  • id — bigint(20) — NOT NULL — 이관 ID
  • transPart — varchar(100) — 이관 부서
  • transAt — datetime — 이관 일시
  • createdAt — datetime — NOT NULL
  • updatedAt — datetime — NOT NULL
  • csId — bigint(20) — Foreign key → cslogs.csId
  • transWhom — varchar(50) — 이관자

data_results_tb

  • id — int(11) — NOT NULL
  • data_id — char(12) — Foreign key → data_transfer_results.data_id — NOT NULL
  • data_type — char(12) — NOT NULL
  • data_time — timestamp — NOT NULL
  • data_trial — int(10) — NOT NULL
  • data_results — char(2) — NOT NULL
  • record_count — int(11) — NOT NULL

data_transfer_results

  • data_id — char(12) — NOT NULL
  • working_date — char(8) — NOT NULL
  • kicc_time — datetime — NOT NULL
  • kicc_trial — int(10) — NOT NULL
  • kicc_results — char(1) — NOT NULL
  • kicc_size — int(11) — NOT NULL
  • kicc_ev_count — int(11)

erp_results_tb

  • id — int(11) — NOT NULL
  • data_id — char(12) — Foreign key → erp_transfer_results.data_id — NOT NULL
  • transfer_time — datetime — NOT NULL
  • ev_station_id — char(10) — NOT NULL
  • ev_trial_count — int(10) — NOT NULL
  • ev_send_result — int(10) — NOT NULL
  • ev_check_time — datetime — NOT NULL
  • ev_check_result — int(11) — NOT NULL

erp_transfer_results

  • data_id — char(12) — NOT NULL
  • transfer_time — datetime — NOT NULL
  • working_date — char(8) — NOT NULL
  • ev_id — char(10) — NOT NULL
  • ev_trial_count — int(10) — NOT NULL
  • ev_send_result — int(10) — NOT NULL
  • ev_check_time — datetime — NOT NULL
  • ev_check_result — int(11) — NOT NULL

errorcodes

  • errorCode — varchar(10) — NOT NULL — 에러코드
  • errorMsg — varchar(256) — NOT NULL — 에러메시지
  • solution — varchar(1024) — 솔루션
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime

faqs

  • id — int(11) — NOT NULL
  • title — varchar(255) — NOT NULL — FAQ title
  • content — text — NOT NULL — FAQ content
  • category — varchar(255) — NOT NULL — FAQ category
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

favoritechargerstations

  • id — char(36) — NOT NULL
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • userId — bigint(20) — Foreign key → usersnews.id
  • chargerId — int(10)
  • nickname — varchar(255) — nickname of the station

filetochargers

  • id — int(11) — NOT NULL — 고유 식별자
  • division — ENUM — NOT NULL — AD : 광고영상(zip), QR : QR이미지, TM : 약관텍스트 파일
  • version — varchar(32) — NOT NULL — 날짜 형식 23.06.16.15 시까지
  • fileURL — varchar(2048) — S3 url
  • newestVersion — tinyint(1) — NOT NULL
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

inquiries

  • id — int(11) — NOT NULL
  • content — text — NOT NULL — Content of the inquiry
  • title — text — NOT NULL — Title of the inquiry
  • status — tinyint(1) — NOT NULL — Status of the inquiry (true or false)
  • categoryName — text — NOT NULL — category name of inquiry
  • comment — text — comment or inquiry
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

kicc_total_records

  • id — int(11) — NOT NULL
  • sales_date — int(11) — NOT NULL
  • record_type — varchar(30) — NOT NULL
  • total_records — varchar(30) — NOT NULL
  • total_page — varchar(30) — NOT NULL
  • current_page — varchar(30) — NOT NULL
  • transaction_count — varchar(30) — NOT NULL
  • transaction_amount — varchar(30) — NOT NULL
  • cancel_count — varchar(30) — NOT NULL
  • cancel_amount — varchar(30) — NOT NULL
  • total_count — varchar(30) — NOT NULL
  • total_amount — varchar(30) — NOT NULL
  • pg_commission — varchar(30) — NOT NULL
  • extra_commission — varchar(30) — NOT NULL
  • total_commission — varchar(30) — NOT NULL
  • tax_amount — varchar(30) — NOT NULL
  • adjust_amount — varchar(30) — NOT NULL
  • total_kwh — varchar(30)

kicc_transaction_records

  • data_id — char(12) — NOT NULL
  • record_id — int(11) — Foreign key → kicc_total_records.id — NOT NULL
  • sales_date — char(10)
  • record_type — char(1) — 레코드 구분
  • payment_type — char(2) — NOT NULL — 결제수단
  • payment_place — char(8) — NOT NULL — 가맹점 ID
  • bill_date — char(8) — 정산예정일
  • deal_type — char(2) — 거래구분
  • deal_date — char(8) — NOT NULL — 거래일자
  • original_date — char(8) — NOT NULL — 원거래일자
  • deal_id — char(20) — 거래고유번호
  • transaction_id — char(40) — 가맹점거래번호
  • issue_org — varchar(10) — 발급사
  • buy_org — varchar(10) — 매입사
  • approval_id — char(8) — 승인번호
  • pay_amount — int(10) — NOT NULL — 거래금액
  • pg_commission — int(10) — NOT NULL — PG 수수료
  • extra_commission — int(10) — NOT NULL — 추가수수료
  • total_commission — int(10) — NOT NULL — 수수료
  • tax_amount — int(10) — NOT NULL — 부가세
  • adjust_amount — int(10) — NOT NULL — 정산금액
  • goods_name — varchar(100) — NOT NULL — 상품명
  • cancel_id — varchar(20) — NOT NULL — 취소거래번호

loggings

  • id — varchar(36) — NOT NULL — logging id
  • timestamp — varchar(255) — NOT NULL — logging timestamp
  • level — varchar(255) — NOT NULL — logging level
  • message — varchar(255) — NOT NULL — logging message
  • info — longtext — logging info
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime

messagelog

  • id — bigint(20) — NOT NULL — 메시지 ID
  • csId — bigint(20) — 상담사 userId
  • chargerId — int(10) — Foreign key → sb_chargers.chg_id — 충전기 아이디
  • textMessage — text — NOT NULL — 메시지 내용
  • phoneNo — varchar(36) — 수신자 핸드폰 번호
  • sendDt — datetime — NOT NULL — 발신 날짜 (알림톡은 altRcptDtm, LMS는 reqDtm', `returnType` varchar(2) NOT NULL COMMENT '발송 결과 값 - 전송 성공(S), 전송 실패(F)
  • createdAt — timestamp — NOT NULL

noticemodels

  • id — char(36) — NOT NULL — Notice ID
  • title — varchar(255) — NOT NULL — Title of the notice
  • content — varchar(255) — Content of the notice
  • regtime — varchar(255) — Registration time of the notice
  • count — int(5) — NOT NULL — Number of views/counts for the notice
  • detail — varchar(255) — Additional details of the notice
  • imageUrl — varchar(255) — Url image of the notice
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

orgs

  • id — int(10) — NOT NULL — organization code
  • category — ENUM — NOT NULL — 소속구분(일반이용자(DEF), 현대오일뱅크(HDO), 직영 충전소(STT_DIR), 자영 충전소(STT_FRN), CS, AS, 법인(BIZ), 협력사(ALLNC), 그룹(GRP), 파킹스루(RF_CARD), 비회…
  • fullname — varchar(64) — 전체 이름
  • name — varchar(36) — 소속명
  • bizRegNo — varchar(16) — 사업자번호
  • address — varchar(36) — 주소
  • contactName — varchar(18) — 당당자 이름
  • contactPhoneNo — varchar(36) — 담당자 연락처
  • contactEmail — varchar(320) — 담당자 이메일
  • deductType — ENUM — NOT NULL — 할인 혜택 (없음 : NONE / 정액할인 : DC_PRC / 고정단가 : FIXED)
  • discountPrice — smallint(6) — NOT NULL — 정액 할인 금액 1kWh당(원단위. default 0)
  • staticUnitPrice — smallint(6) — NOT NULL — 정액 할인 금액 1kWh당(원단위. default 0)
  • payMethodId — int(11) — 대표-결제수단id
  • isPayLater — tinyint(1) — NOT NULL — 후불여부(BIZ용, default false)
  • isLocked — tinyint(1) — NOT NULL — 후불 블럭되었는지 여부 (*결제가 안되는 경우 블럭)
  • billingDate — longtext — 결제일(객체)
  • closed — tinyint(1) — NOT NULL — 조직 상태 - ACTIVE-false/RETIRE-true
  • area — int(11) — 부문/지사 구분 중 부문
  • branch — int(11) — 부문/지사 구분 중 지사
  • haveCarWash — char(1) — NOT NULL — 세차장유무 defalut N
  • haveCVS — char(1) — NOT NULL — 편의점유무 defalut N
  • STN_STN_SEQ — varchar(36) — HDO_SEQ
  • STN_STN_ID — varchar(36) — 사업장 ID / 대리점 ID ?
  • STN_STN_GUBUN — varchar(36) — 사업장구분 / 작영(STT_DIR)/자영(STT_FRN) ?
  • STN_CUST_NO — varchar(36) — 사업장고객번호 - SAP코드
  • STN_ASSGN_AREA_GUBUN — varchar(36) — 소속지역구분
  • STN_COST_CT — varchar(36) — 코스트센터
  • STN_PAL_CT — varchar(36) — 손익센터
  • STN_STN_SHORT_NM — varchar(36) — 사업장약명 (*에이치디현대오일뱅크㈜ 직영 양화교셀프주 => 양화교셀프)
  • erp — varchar(255) — erp
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

paymentlogs

  • id — bigint(20) — NOT NULL — 결제내역 id
  • payStatus — ENUM — NOT NULL — 상태(결제 관련 상태 - ING진행중, UNPAID미결상태, PAID결제상태, REFUND환불 )
  • payType — ENUM — NOT NULL — 결제 종류 충전 : CHG 미출차 수수료 : WASH 개인구독 : SUB_P 법인상품 : SUB_C RF카드발급 : RF_ISSUE No-Show: NOSHOW
  • kicc_pgCno — varchar(36) — 결제승인 id
  • confirmPrice — int(10) — NOT NULL — 확정 결제금액
  • prepaidPrice — int(10) — NOT NULL — 최초 지불금액
  • cancelPrice — int(10) — NOT NULL — 부분취소금액
  • chargeFee — int(10) — NOT NULL — 충전 결제 금액
  • parkFee — int(10) — NOT NULL — 미출차 수수료 결제 금액
  • payMethodDetail — varchar(32) — 결제 카드 식별용 정보(ex. 카드 마지막 4자리 등) - 비회원 결제기록용
  • description — varchar(32) — 결제 관련 메모
  • kicc_return — longtext — 결제 트랜젝션 로그
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • payMethodId — int(10)
  • cl_id — bigint(20) — Foreign key → sb_charging_logs.cl_id
  • orgId — int(10) — Foreign key → orgs.id
  • userId — bigint(20) — Foreign key → usersnews.id
  • chgs_id — int(10) — Foreign key → sb_charging_stations.chgs_id
  • chg_id — int(11) — Foreign key → sb_chargers.chg_id
  • bookingId — int(10) — Foreign key → bookings.id

paymentnotifications

  • id — bigint(20) — NOT NULL
  • amount — int(10) — 총 결제금액
  • createdAt — datetime — NOT NULL
  • res_cd — char(4) — NOT NULL — PG거래번호
  • res_msg — varchar(100) — 응답메시지
  • cno — varchar(100) — NOT NULL — PG거래번호
  • order_no — varchar(40) — NOT NULL — 주문번호
  • auth_no — varchar(20) — 승인번호
  • tran_date — datetime — 승인/변경일시
  • card_no — varchar(40) — 카드번호
  • issuer_cd — char(3) — 발급사코드
  • issuer_nm — varchar(20) — 발급사명
  • acquirer_cd — char(3) — 매입사코드
  • acquirer_nm — varchar(20) — 매입사명
  • noint — char(2) — 무이자여부
  • install_period — tinyint(4) — 할부개월
  • used_pnt — int(11) — This value is not documented
  • escrow_yn — ENUM — 에스크로 사용유무
  • complex_yn — ENUM — This value is not documented
  • stat_cd — char(4) — 상태코드
  • stat_msg — varchar(50) — 상태메시지
  • van_tid — varchar(32) — This value is not documented
  • van_sno — char(12) — VAN 거래일련번호
  • pay_type — char(2) — 결제수단
  • memb_id — char(8) — 가맹점 ID
  • noti_type — char(2) — 노티구분
  • part_cancel_yn — ENUM — 부분취소 가능여부
  • memb_gubun — varchar(8) — This value is not documented
  • card_gubun — ENUM — 카드 종류; N : 신용, Y : 체크, G : 기프트
  • card_biz_gubun — ENUM — 발급 주체 구분; P : 개인, C : 법인, N : 기타
  • cpon_flag — ENUM — This value is not documented
  • cardno_hash — varchar(50) — This value is not documented
  • sub_card_cd — char(3) — 빌키발급 시 BC 제휴사 카드코드
  • bk_pay_yn — ENUM — This value is not documented
  • remain_pnt — int(10) — This value is not documented
  • accrue_pnt — int(10) — This value is not documented
  • canc_date — datetime — 취소일시
  • mgr_amt — int(10) — 취소(변경)금액
  • mgr_card_amt — int(10) — This value is not documented
  • mgr_cpon_amt — int(10) — This value is not documented
  • mgr_seqno — char(20) — This value is not documented
  • mgr_req_msg — varchar(100) — This value is not documented
  • day_rem_pnt — int(10) — This value is not documented
  • month_rem_pnt — int(10) — This value is not documented
  • day_rem_cnt — int(10) — This value is not documented

paymethods

  • id — int(10) — NOT NULL — payMethod id
  • seq — int(11) — NOT NULL — 순번, ASC(기본결제수단은 순번1이 기본)
  • alias — varchar(20) — NOT NULL — 결제수단별명
  • cardNo — varchar(20) — NOT NULL — 카드번호
  • billingKey — varchar(64) — 카드 자동결제 승인용 billingKey
  • cardBrand — varchar(64) — 카드 브랜드 구분 visa, 마스터 등
  • cardIssuer — varchar(64) — 카드 발급 사, 신한, 국민 등
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • userId — bigint(20) — Foreign key → usersnews.id
  • orgId — int(10) — Foreign key → orgs.id
  • usersNewId — bigint(20) — Foreign key → usersnews.usersNewId

points

  • id — int(11) — Foreign key → bookings.id — NOT NULL
  • pointType — ENUM — NOT NULL — Type of point transaction (earn or spend)
  • pointDate — datetime — NOT NULL — Date and time of the point transaction
  • point — int(11) — NOT NULL — Amount of points earned or spent
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • bookingId — int(10)
  • userId — bigint(20) — Foreign key → usersnews.id
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

requestrefunds

  • id — bigint(20) — NOT NULL
  • div_code — ENUM — NOT NULL — BROKEN: 고장, ETC: 기타
  • refund_reason — varchar(255) — 환불사유(reason,comment,비고)
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • noti_id — bigint(20)
  • oriPgCno — varchar(60) — 원주문 거래번호
  • cancelPgCno — varchar(60) — 취소주문 거래번호
  • statusCode — varchar(60) — 상태 코드
  • cancelAmount — int(10) — 취소금액

reviews

  • id — int(10) — NOT NULL — Review ID
  • content — text — NOT NULL — Review content
  • chgs_id — int(10) — Foreign key → sb_charging_stations.chgs_id — NOT NULL — Charging station ID
  • stars — int(11) — NOT NULL — Rating stars given in the review (1 to 5)
  • images — longtext — Images associated with the review
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

rfcardlists

  • id — bigint(20) — NOT NULL — 사전 할당된 RF카드 번호 리스트 ID
  • rfCardNo — varchar(19) — NOT NULL — 번호 16개
  • usedYN — char(1) — NOT NULL — 사용여부
  • usedAt — datetime — 사용일시
  • lostYN — char(1) — NOT NULL — 분실여부
  • lostAt — datetime — 분실신고 접수일시
  • expiredYN — char(1) — NOT NULL — 유효기간만료여부
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • usersNewId — bigint(20)

roles

  • id — varchar(36) — NOT NULL — role id
  • name — varchar(255) — NOT NULL — role name
  • listPermission — longtext — NOT NULL — permission to read data without private data
  • readPermission — longtext — NOT NULL — permission to read data with private data
  • writePermission — longtext — NOT NULL — permission to create and update data with private data
  • deletePermission — longtext — NOT NULL — permission to delete data with private data
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

sap_evstation_tb

  • KUNNR — varchar(10) — NOT NULL — 고객 번호
  • NAME1 — varchar(35) — NOT NULL — 이름 1
  • VKORG — varchar(4) — NOT NULL — 영업조직
  • VTWEG — varchar(2) — NOT NULL — 유통경로
  • SPART — varchar(2) — 제품군
  • VKBUR — varchar(4) — 사업장
  • VKGRP — varchar(3) — 영업 그룹
  • SORTL — varchar(10) — 정렬 필드
  • STRAS — varchar(35) — 주소
  • PSTLZ — varchar(10) — 우편번호
  • ORT01 — varchar(35) — 도시
  • REGIO — varchar(3) — 지역(시/도, 도, 군)
  • TELF1 — varchar(16) — 첫번째 전화번호
  • TELFX — varchar(31) — 팩스번호
  • STCD1 — varchar(16) — 법인(주민)번호
  • STCD2 — varchar(11) — 사업자번호
  • STCDT — varchar(2) — 계산서발행기준
  • J_1KFTBUS — varchar(30) — 사업유형
  • J_1KFTIND — varchar(30) — 업종
  • J_1KFREPRE — varchar(10) — 대표자명
  • KVGR1 — varchar(3) — 고객그룹 1
  • KVGR2 — varchar(3) — 고객그룹 2
  • KVGR3 — varchar(3) — 고객그룹 3
  • VWERK — varchar(4) — 납품 플랜트(자체 또는 외부)
  • PERNR — varchar(10) — 사원 번호

sap_people

  • PERNR — varchar(255) — NOT NULL — 사원 번호
  • ENAME — varchar(255) — 사원 또는 지원자의 포맷된 이름
  • PASSWORD — varchar(255) — 암호
  • EMAIL — varchar(255) — 간단한 인터넷 메일(SMTP) 주소
  • JKG — varchar(255) — 직급코드
  • JKG1 — varchar(255) — 직급명
  • JKW — varchar(255) — 직위코드
  • JKW1 — varchar(255) — 직위명
  • PHONE — varchar(255) — 전화번호
  • deletedAt — datetime
  • ORG — varchar(255)
  • ORG1 — varchar(255)
  • PHONE2 — varchar(255) — 전화번호

sb_charge_connections

  • id — int(10) — NOT NULL — sb_charge_connection id
  • chargeAmount — int(11) — NOT NULL — 총충전해야할량 (total charge by percent/kwh/money, devide by Bookings.chargeType (1:percent/2:kwh/3:money))
  • chargedAmount — int(11) — NOT NULL — 총충전된량 (total kwh charged)
  • estimateTime — datetime — 예상 소요시간 (estimate time when complete charge)
  • startTime — datetime — NOT NULL — 충전 시작시각 (start time to charging)
  • endTime — datetime — NOT NULL — 충전 종료시각 (end time to charging)
  • chargeAmountKwh — int(11) — 총충전량 (total kwh charge)
  • chargeAmountPercent — int(11) — 총충전량 % (total percentage charge = sb_charge_connection.chargeAmountKwh / Vehicles.batteryCap * 100)
  • chargeStatus — varchar(255) — 충전상태 (charge status)
  • selectedTime — datetime — 선택시점 (insert after user click confirm button to charge)
  • canceledTime — datetime — 취소시점 (update after user click cancel button before charge)
  • completedTime — datetime — 완료시점 (update after complete to charge and unplug)
  • remainTime — int(11) — 남은시간 (remain time when car do not move after complete to charge) (second)
  • regtime — datetime — 등록시간 (insert after user click confirm button to charge)
  • currentBatteryPercent — int(11) — 현재배터리량 (current battery percentage of vehicle) (%)
  • timeCharged — int(11) — 충전진행된시간 (total time charged) (second)
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • usersNewId — bigint(20)
  • chgs_id — int(10) — Foreign key → sb_charging_stations.chgs_id
  • chg_id — int(10) — Foreign key → sb_chargers.chg_id
  • bookingId — int(10)

sb_charge_local_ic_pay_phone_logs

  • id — bigint(20) — NOT NULL — sb_charge_local_ic_pay_phone_log id
  • chg_id — int(11) — Foreign key → sb_chargers.chg_id — 충전기인덱스
  • connector_id — int(11) — NOT NULL — 커넥터 ID(충전기채널)
  • phone — varchar(255) — NOT NULL — 휴대폰번호
  • createdAt — timestamp — NOT NULL

sb_charge_local_ic_pays

  • id — int(10) — NOT NULL — sb_charge_local_ic_pay id
  • chg_id — int(11) — Foreign key → sb_chargers.chg_id — 충전기인덱스
  • ordernumber — varchar(255) — NOT NULL — 현장결제 주문번호(= 샵 트랜잭션 ID = 현장결제 가맹점에서 부여한 트랜잭션 고유번호)
  • paid_fee — int(11) — NOT NULL — 결제요금
  • connector_id — int(11) — NOT NULL — 커넥터 ID(충전기채널)
  • cardkey — varchar(255) — 카드번호
  • pretransnumber — varchar(255) — 거래번호
  • approvalnumber — varchar(255) — 승인번호
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime

sb_charge_requests

  • cr_id — bigint(20) — NOT NULL — 충전 요청 pk, 인덱스 번호
  • chg_id — bigint(20) — Foreign key → sb_chargers.chg_id — 충전기 아이디
  • conn_id — smallint(5) — 커넥터 아이디
  • card_id — bigint(20) — 충전요청 카드id
  • request_kwh — int(11) — 충전 요청량
  • request_percent — int(11) — 충전 요청 퍼센트
  • request_amt — int(11) — 예상금액
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • userId — bigint(20)
  • actual_calculated_amt — int(11) — 계산된 결제 금액
  • dummy_pay_amt — int(11) — 예상치못한 금액오류로 결제된 보정된금액
  • paymentResponse — longtext — 실제 결제 응답 콜백 로그
  • request_type — ENUM — CANCEL: 부분취소, REFUND : 환불, PAYMENT : 후불결제
  • pgCno — varchar(36) — 결제승인 id
  • chargingLogId — bigint(20) — 해당 결제건과 연결된 차징로그건의 id
  • refund_amt — int(11) — 환불 금액

sb_charger_state_logs

  • csl_id — int(10) — NOT NULL — 상태 인덱스 번호
  • csl_station_charger_id — varchar(50) — NOT NULL — 충전기 고유번호
  • csl_channel — smallint(6) — NOT NULL — 충전기 채널
  • csl_charger_state — varchar(50) — 충전기상태
  • csl_charging_state — varchar(50) — 충전상태
  • csl_kwh — float — 사용 전력량
  • csl_kwh_cumulative — double — 누적 전력량
  • csl_direction — ENUM — 충전상태로그 디렉션
  • csl_json — text — 송수신 OCPP 메시지
  • cs_temperature — float — 충전기 온도
  • csl_vendor — varchar(100) — 공급업체
  • csl_model — varchar(200) — 충전기 모델
  • csl_firmware — varchar(50) — 충전기 펌웨어 이름
  • csl_created_datetime — datetime — NOT NULL — 등록일
  • csl_addinfo1 — varchar(255) — 추가 정보 1
  • csl_addinfo2 — varchar(255) — 추가 정보 2
  • csl_addinfo3 — varchar(255) — 추가 정보 3
  • csl_event_code — int(11)
  • csl_rssi — int(11) — 예약
  • csl_last_ins — char(255) — 예약
  • csl_mdn — varchar(255) — 예약
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • chg_id — int(10) — Foreign key → sb_chargers.chg_id
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • csl_se_code — varchar(50) — 상태 에러 코드(Status ErrorCode)
  • csl_sve_code — varchar(50) — 상태 벤더 에러 코드(Status VendorErrorCode)

sb_charger_states

  • cs_id — int(10) — NOT NULL — 상태 인덱스 번호
  • chg_id — int(10) — Foreign key → sb_chargers.chg_id
  • cs_station_charger_id — varchar(50) — NOT NULL — 충전기 고유번호
  • cs_channel — smallint(6) — NOT NULL — 충전기 채널(=connId, 1 or 2)
  • cs_charger_state — varchar(50) — 충전기상태
  • cs_charging_state — varchar(50) — 충전의 상태 ( ready, available, preparing, offline - 이걸로 커넥터연결 판단 , charging, finishing-이걸로 미출차판단 )
  • cs_kwh — float — 사용 전력량
  • cs_kwh_cumulative — double — 누적 전력량
  • cs_temperature — float — 충전기 온도
  • cs_vendor — varchar(100) — 공급업체
  • cs_model — varchar(200) — 충전기 모델
  • cs_firmware — varchar(50) — 충전기 펌웨어 이름
  • cs_created_datetime — datetime — NOT NULL — 등록일
  • cs_last_datetime — datetime — NOT NULL — 업데이트일자
  • cs_addinfo1 — varchar(255) — 추가 정보 1
  • cs_addinfo2 — varchar(255) — 추가 정보 2
  • cs_addinfo3 — varchar(255) — 추가 정보 3
  • cs_event_code — int(11)
  • cs_rssi — int(11) — 예약
  • cs_last_ins — char(255) — 예약
  • cs_mdn — varchar(255) — 예약
  • cs_cur_member — varchar(255)
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • cs_se_code — varchar(50) — 상태 에러 코드(Status ErrorCode)
  • cs_sve_code — varchar(50) — 상태 벤더 에러 코드(Status VendorErrorCode)

sb_chargers

  • chg_id — int(10) — Foreign key → favoritechargerstations.chargerId — NOT NULL — Charger index number (auto-assigned)
  • chgs_id — int(10) — Foreign key → sb_charging_stations.chgs_id — NOT NULL — Charging station ID (Parent)
  • chg_channel — smallint(5) — Charger channel
  • status — ENUM — NOT NULL — Current charger status (ACTIVE or INACTIVE)
  • isJam — char(1) — NOT NULL — Fault status (N: No fault, Y: Fault occurred)
  • chg_charger_id — varchar(50) — NOT NULL — Charger unique number (9~10 characters, 7 characters for station + 2 for charger)
  • chg_alias — varchar(20) — Charger ID alias (Charging equipment MAC address)
  • chg_sn — varchar(255) — Serial number
  • chg_fw_ver — varchar(255) — Firmware version
  • chg_cell_number — varchar(45) — Terminal phone number
  • usePreset — char(1) — NOT NULL — Use preset charging rates (requires upSetId when used, otherwise use chg_unit_price as fixed rate)
  • upSetId — int(10) — Unit price preset ID
  • chg_unit_price — int(10) — Fixed price (used when usePreset is false)
  • chg_use_yn — char(1) — NOT NULL — Charger usage status (Y: Yes, N: No)
  • qrTransDate — datetime — QR code image transmission date - If NULL, the charger needs to send a QR code image
  • adTransDate — datetime — AD code image transmission date - If NULL, the charger needs to send a QR code image
  • tmTransDate — datetime — TM code image transmission date - If NULL, the charger needs to send a QR code image
  • fwTransDate — datetime — FW code image transmission date - If NULL, the charger needs to send a QR code image
  • adVersion — varchar(32) — Transmitted advertisement version
  • termsVersion — varchar(32) — Transmitted terms and conditions version
  • reservable — char(1) — NOT NULL — Reservable functionality availability (Y: Yes, N: No)
  • resetAt — timestamp
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • qrcode — varchar(255) — QR code of charger , content as {"chg_id":1,"chgs_id":1}
  • deletedAt — datetime
  • chargerModelId — int(11) — Foreign key → chargermodels.id
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • deeplink — varchar(255)
  • mall_id — varchar(40) — 가맹점 아이디. 노티의 memb_id, mallId
  • charger_status — varchar(200)

sb_charging_logs

  • cl_id — bigint(20) — NOT NULL — 이용자 충전 로그 pk, 인덱스 번호
  • cl_channel — smallint(5) — NOT NULL — 충전기 충전 채널 번호
  • cl_order_user_no — varchar(100) — NOT NULL — 멤버십 카드 ID
  • cl_order_mac_addr — varchar(50) — 차량 MAC-Addr
  • cl_transaction_id — varchar(50) — 충전 transaction 아이디?
  • cl_start_datetime — datetime — 충전시작시간
  • cl_end_datetime — datetime — 충전종료시간
  • cl_unplug_datetime — datetime — 언플러그시간
  • cl_kwh — float — 실제 충전된 용량(실측에선 wh로 측정됨. 추후 데이터타입 바꿔야할수 있음)
  • soc — int(11) — 연결된 차량의 배터리잔량
  • remain — int(11) — 완충시까지 남은 분(minutes)
  • useType — ENUM — NOT NULL — 충전 유형 (CREDIT, RF, NFC, APP, PNC)
  • desired_kwh — float — 충전 지시 용량
  • desired_percent — int(11) — 충전 지시 비율
  • appliedUnitPrice — smallint(5) — 적용 단가
  • cl_start_meter — float — 충전기 충전 시작값
  • cl_stop_meter — float — 충전기 충전 종료값
  • cl_datetime — datetime — NOT NULL — 등록일
  • pg_cno — varchar(50) — PG거래번호(pgCno)
  • payMethodDetail — varchar(32) — 결제 카드 식별용 정보(ex. 카드 마지막 4자리 등) - 비회원 결제기록용
  • authAmtCharge — int(10) — 충전 선결제 금액
  • authAmtPark — int(10) — 미출차 선결제 금액
  • authDate — datetime — 결제일시
  • receivePhoneNo — varchar(20) — 문자 수신 번호
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • chg_id — int(10) — Foreign key → sb_chargers.chg_id
  • chgs_id — int(10) — Foreign key → sb_charging_stations.chgs_id
  • usersNewId — bigint(20)
  • order_no — varchar(50) — 결제 발생하는 주문번호(샵 트랜잭션 아이디로 사용되기도함.)
  • approval_number — varchar(50) — pg사에서 부여한 승인번호(취소등이 아닌 원본 결제에 해당하면 붙음)
  • reason — varchar(50) — 충전 종료 이유
  • chargeFee — int(11) — 실제로 결제된 금액(감산분 반영)
  • ignored_kwh — float — 완충후 최종 종료와의 시간차로 인해 결제금액에 계산되지 않고 무시된 전력량

sb_charging_stations

  • chgs_id — int(10) — NOT NULL — Charging station index value (auto-assigned)
  • chgs_station_id — varchar(50) — NOT NULL — Charging station ID
  • status — ENUM — NOT NULL — Current charging station status (ACTIVE or INACTIVE)
  • chgs_name — varchar(255) — NOT NULL — Charging station name
  • coordinate — point — Charging station location information in GEOMETRY format
  • chrgStartTime — time — Charging operation start time
  • chrgEndTime — time — Charging operation end time
  • washStartTime — time — Car wash operation start time
  • washEndTime — time — Car wash operation end time
  • chgs_kepco_meter_no — varchar(50) — Korea Electric Power Corporation (KEPCO) meter number
  • isUse — char(1) — NOT NULL — Availability status (Instead of deletion: Y for operational, N for suspended)
  • chgs_car_wash_yn — char(1) — NOT NULL — Car wash availability (Y or N) `chgs_aff_only` longtext DEFAULT NULL COMMENT 'Affiliate-only information', `chgs_field_…
  • area_code_id — varchar(255) — Area code
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • orgId — int(10) — Foreign key → orgs.id
  • chgs_operator_manager_id — bigint(20)
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

sb_daily_amount

  • id — bigint(20) — NOT NULL — 인덱스
  • mall_id — varchar(50) — NOT NULL — 몰아이디
  • calculate_date — varchar(50) — NOT NULL — 날짜문자열(YYYY-MM-DD)
  • amount — bigint(20) — NOT NULL — 총결제액

sequelizemeta

  • name — varchar(255) — NOT NULL

subcodelookups

  • id — int(11) — Primary key — NOT NULL — 코드 아이디
  • divCode — varchar(32) — Primary key — NOT NULL — 코드 타입
  • divComment — varchar(140) — 코드 설명
  • sequence — int(11) — 순서 시퀀스
  • descVal — smallint(6) — NOT NULL — 실 사용 코드(같은 divCode 범주에선 순차적 증가, 변하지 않음)
  • descInfo — varchar(32) — NOT NULL — web에 표시되는 내용
  • use — tinyint(1) — NOT NULL — 사용여부
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • codeLookUpId — int(11)
  • createdWho — varchar(36)
  • updatedWho — varchar(36)

sys_logs_defaults

  • id — bigint(20) — NOT NULL — id
  • level — varchar(20) — level
  • message — varchar(2048) — NOT NULL — message
  • meta — varchar(2048) — meta
  • timestamp — datetime — NOT NULL — logging timestamp
  • deletedAt — datetime

terms

  • id — int(11) — NOT NULL — Terms ID
  • title — varchar(255) — NOT NULL — Title of the term
  • content — text — NOT NULL — Content of the term
  • category — varchar(255) — Category of the term
  • useYN — tinyint(1) — Usage status (true/false)
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • parentId — int(11) — Id of parent term
  • version — varchar(255) — version of the term

termsagrees

  • id — int(11) — NOT NULL — TermsAgree ID
  • termId — int(11) — Foreign key → terms.id — NOT NULL — Terms ID
  • userId — int(11) — Foreign key → usersnews.id — NOT NULL — User ID
  • targetId — text — Target ID
  • target — text — Target
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime

transacthistoryrecords

  • id — int(11) — NOT NULL
  • recordType — varchar(1) — 레코드 구분 (T: 집계 레코드, D: 데이터 레코드)
  • paymentMethod — varchar(4) — 결제수단
  • merchantId — varchar(8) — KICC에서 부여한 가맹점ID
  • settlementDueDate — varchar(8) — 정산예정일(yyyymmdd)
  • transactionType — varchar(2) — 거래구분
  • transactionDate — int(11) — 승인일 OR 취소일 (yyyymmdd)
  • originalTransactionDate — int(11) — 원거래일자
  • uniqueTransactionId — int(11) — KICC에서 관리하는 거래 고유 번호
  • merchantTransactionId — int(11) — 결제 시 가맹점에서 보내주는 주문에 대한 유일한 번호
  • issuer — varchar(10) — 발급사
  • purchaser — varchar(10) — 매입사
  • approvalNumber — int(11) — 승인번호
  • transactionAmount — bigint(20) — 거래금액
  • pgFee — bigint(20) — PG수수료
  • additionalFee — bigint(20) — 추가수수료
  • totalFee — bigint(20) — 수수료
  • VAT — bigint(20) — 부가세
  • settlementAmount — bigint(20) — 정산금액
  • productName — varchar(100) — 상품명
  • cancellationTransactionNumber — varchar(20) — 취소거래번호
  • createdAt — datetime — NOT NULL

transacthistorysummaries

  • id — int(11) — NOT NULL
  • recordType — varchar(1) — 레코드 구분 (T : 집계 레코드, D : 데이터 레코드)
  • totalRecords — bigint(20) — 총 레코드 건수 (=Data 레코드 건수)
  • totalPages — bigint(20) — 50,000 건으로 나눈 총 페이지 수
  • currentPage — bigint(20) — 현재 조회 된 페이지 번호
  • totalApproved — bigint(20) — 승인건수 의 합
  • totalApprovedAmount — bigint(20) — 승인금액 의 합
  • totalCancellationCount — bigint(20) — 취소(부분취소포함) 건수
  • totalCancellationAmount — bigint(20)
  • totalPointUsageCount — bigint(20) — 포인트 사용건수의 합
  • totalPointUsageAmount — bigint(20) — 포인트 사용금액의 합
  • totalPointCancellationCount — bigint(20) — 포인트 사용취소건수의 합
  • totalPointCancellationAmount — bigint(20) — 포인트 사용취소금액의 합
  • totalPointAccumulationCount — bigint(20) — 포인트 적립건수의 합
  • totalPointAccumulationAmount — bigint(20) — 포인트 적립금액의 합
  • totalPointAccumulationCancellationCount — bigint(20) — 포인트 적립취소건수의 합
  • totalPointAccumulationCancellationAmount — bigint(20) — 포인트 적립취소금액의 합
  • totalVatApproved — bigint(20) — 승인 부가세의 합
  • totalVatCanceled — bigint(20) — 취소 부가세의 합
  • totalServiceFeeApproved — bigint(20) — 승인 봉사료의 합
  • totalServiceFeeCanceled — bigint(20) — 취소 봉사료의 합
  • reservedField1 — bigint(20) — 예비
  • reservedField2 — bigint(20) — 예비
  • createdAt — datetime — NOT NULL

transactsettlementrecords

  • id — int(11) — NOT NULL
  • recordType — varchar(1) — NOT NULL — 레코드 구분 (T: 집계 레코드, D: 데이터 레코드)
  • paymentMethod — varchar(4) — 결제수단, 01: 신용카드, 02: 가상계좌, 03: 계좌이체, 04: 휴대폰, 50: 선불, 60: 간편결제(계좌간편결제)
  • merchantId — varchar(8) — KICC에서 부여한 가맹점ID
  • settlementDueDate — varchar(8) — 정산예정일(yyyymmdd)
  • transactionType — varchar(2) — 거래구분, A: 승인, C: 취소, P: 부분취소, R: 환불
  • transactionDate — int(11) — 거래일자, 승인일 OR 취소일 (yyyymmdd)
  • originalTransactionDate — int(11) — 원거래일자, yyyymmdd (승인: ‘00000000’, 취소: ‘yyyymmdd’)
  • uniqueTransactionId — int(11) — KICC에서 관리하는 거래 고유 번호
  • merchantTransactionId — int(11) — 가맹점거래번호, 결제 시 가맹점에서 보내주는 주문에 대한 유일한 번호
  • issuer — varchar(10) — 발급사
  • purchaser — varchar(10) — 매입사
  • approvalNumber — int(11) — 승인번호
  • transactionAmount — bigint(20)
  • pgFee — bigint(20)
  • additionalFee — bigint(20)
  • totalFee — bigint(20)
  • VAT — bigint(20)
  • settlementAmount — bigint(20)
  • productName — varchar(100) — 상품명
  • cancellationTransactionNumber — varchar(20) — 취소거래번호
  • createdAt — datetime — NOT NULL

transactsettlementsummaries

  • id — int(11) — NOT NULL
  • recordType — varchar(1) — NOT NULL — 레코드 구분 (T: 집계 레코드, D: 데이터 레코드)
  • totalRecords — bigint(20) — 총 레코드 건수 (=Data 레코드 건수)
  • totalPages — bigint(20) — 총 페이징 수, 50,000 건으로 나눈 총 페이지 수
  • currentPage — bigint(20) — 현재 조회된 페이지 번호
  • totalSalesCount — bigint(20) — 매출 건수, 승인건수의 합
  • totalSalesAmount — bigint(20) — 매출 금액, 승인금액의 합
  • totalRefundCount — bigint(20) — 취소/환불(부분취소) 건수
  • totalRefundAmount — bigint(20) — 취소/환불(부분취소) 금액
  • totalCountSum — bigint(20) — 건수 합계, 매출건수 + 취소/환불건수
  • totalAmountSum — bigint(20) — 금액 합계, 매출금액 + 취소/환불금액
  • totalPGFees — bigint(20) — PG수수료 합계
  • totalAdditionalFees — bigint(20) — 추가수수료 합계
  • totalFeesSum — bigint(20) — 수수료 합계 (PG수수료합계 + 추가수수료합계)
  • totalVAT — bigint(20) — 부가세 합계
  • totalSettlementAmount — bigint(20) — 정산금액 합계
  • createdAt — datetime — NOT NULL

troublereports

  • id — int(10) — NOT NULL — Trouble report ID
  • troubleTitle — varchar(50) — NOT NULL — Trouble title
  • troubleDesc — varchar(255) — NOT NULL — Trouble description
  • mediaUrl — longtext — Links to trouble photos
  • reportStatus — ENUM — NOT NULL — Reported: REPORTED, Accepted: ACCEPTED, In Progress: INPROGRESS, Completed: COMPLETED
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • chg_id — int(10) — Foreign key → sb_chargers.chg_id
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • chgs_id — int(10) — Foreign key → sb_charging_stations.chgs_id

troubleshoots

  • id — int(10) — NOT NULL — 조치 내역 아이디 (자동 채번)
  • troubleType — ENUM — NOT NULL — 고장 범주- 소프트웨어:SOFTWARE, 하드웨어:HARDWARE, 케이블:CABLE, 기타:OTHER
  • actionTitle — varchar(50) — NOT NULL — 조치 내용 제목
  • actionDetails — varchar(255) — NOT NULL — 조치 내용
  • repairCost — varchar(50) — 수리 비용
  • mediaUrl — varchar(2048) — 해결된 사진 URL (URL 배열 또는 단일 URL)
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • troubleReportId — int(10)
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

unitprices

  • id — int(10) — NOT NULL — unit price id
  • title — varchar(255) — NOT NULL — Unit-Price title
  • applyDt — datetime — NOT NULL — apply date
  • useYN — tinyint(1) — NOT NULL — Use status
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • t0 — int(10) — NOT NULL — Unit Price from 0:00 to 1:00
  • t1 — int(10) — NOT NULL — Unit Price from 1:00 to 2:00
  • t2 — int(10) — NOT NULL — Unit Price from 2:00 to 3:00
  • t3 — int(10) — NOT NULL
  • t4 — int(10) — NOT NULL
  • t5 — int(10) — NOT NULL
  • t6 — int(10) — NOT NULL
  • t7 — int(10) — NOT NULL
  • t8 — int(10) — NOT NULL
  • t9 — int(10) — NOT NULL
  • t10 — int(10) — NOT NULL
  • t11 — int(10) — NOT NULL
  • t12 — int(10) — NOT NULL
  • t13 — int(10) — NOT NULL
  • t14 — int(10) — NOT NULL
  • t15 — int(10) — NOT NULL
  • t16 — int(10) — NOT NULL
  • t17 — int(10) — NOT NULL
  • t18 — int(10) — NOT NULL
  • t19 — int(10) — NOT NULL
  • t20 — int(10) — NOT NULL
  • t21 — int(10) — NOT NULL — Unit Price from 21:00 to 22:00
  • t22 — int(10) — NOT NULL — Unit Price from 22:00 to 23:00
  • t23 — int(10) — NOT NULL — Unit Price from 23:00 to 00:00
  • deletedAt — datetime

unitpricesets

  • id — int(11) — NOT NULL
  • unitPriceSetName — varchar(255) — NOT NULL
  • unitPrice1 — int(11) — NOT NULL — The price charge of time 0-1h
  • unitPrice2 — int(11) — NOT NULL — The price charge of time 1-2h
  • unitPrice3 — int(11) — NOT NULL — The price charge of time 2-3h
  • unitPrice4 — int(11) — NOT NULL — The price charge of time 3-4h
  • unitPrice5 — int(11) — NOT NULL — The price charge of time 4-5h
  • unitPrice6 — int(11) — NOT NULL — The price charge of time 5-6h
  • unitPrice7 — int(11) — NOT NULL — The price charge of time 6-7h
  • unitPrice8 — int(11) — NOT NULL — The price charge of time 7-8h
  • unitPrice9 — int(11) — NOT NULL — The price charge of time 8-9h
  • unitPrice10 — int(11) — NOT NULL — The price charge of time 9-10h
  • unitPrice11 — int(11) — NOT NULL — The price charge of time 10-11h
  • unitPrice12 — int(11) — NOT NULL — The price charge of time 11-12h
  • unitPrice13 — int(11) — NOT NULL — The price charge of time 12-13h
  • unitPrice14 — int(11) — NOT NULL — The price charge of time 13-14h
  • unitPrice15 — int(11) — NOT NULL — The price charge of time 14-15h
  • unitPrice16 — int(11) — NOT NULL — The price charge of time 15-16h
  • unitPrice17 — int(11) — NOT NULL — The price charge of time 16-17h
  • unitPrice18 — int(11) — NOT NULL — The price charge of time 17-18h
  • unitPrice19 — int(11) — NOT NULL — The price charge of time 18-19h
  • unitPrice20 — int(11) — NOT NULL — The price charge of time 19-20h
  • unitPrice21 — int(11) — NOT NULL — The price charge of time 20-21h
  • unitPrice22 — int(11) — NOT NULL — The price charge of time 21-22h
  • unitPrice23 — int(11) — NOT NULL — The price charge of time 22-23h
  • unitPrice24 — int(11) — NOT NULL — The price charge of time 23-24h
  • registerDate — datetime — NOT NULL
  • isUsed — tinyint(1) — NOT NULL
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

upsetdetails

  • id — int(11) — NOT NULL — 고유 식별자
  • fromDate — datetime — NOT NULL — 시작일
  • toDate — datetime — NOT NULL — 종료일
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • upSetId — int(11)
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • upTimeTableId — int(11)

upsets

  • id — int(11) — Foreign key → upsetdetails.upSetId — NOT NULL — 고유 식별자
  • title — varchar(255) — NOT NULL — 단가 preset 명칭
  • desc — varchar(512) — NOT NULL — 단가 preset 명칭
  • useYN — tinyint(1) — NOT NULL — 사용 여부
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

uptimetabledetails

  • id — int(11) — NOT NULL — 고유 식별자
  • baseTime — tinyint(4) — NOT NULL — 기준시간 ( 0시 부터 23시까지 ) 한개의 타임테이블에 시간은 1개만
  • price — smallint(5) — NOT NULL — 단가
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • upTimeTableId — int(11)
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • utId — int(11) — Foreign key → uptimetables.id

uptimetables

  • id — int(11) — NOT NULL — 고유 식별자
  • desc — varchar(512) — NOT NULL — 단가 타임 테이블 설명
  • useYN — tinyint(1) — NOT NULL — 사용 여부
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • createdWho — bigint(20)
  • updatedWho — bigint(20)

userlogs

  • id — int(11) — NOT NULL — UserLogs ID
  • status — ENUM — NOT NULL — UserLogs status
  • ipAddress — varchar(255) — NOT NULL — request ip address
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • userId — bigint(20)
  • failedLoginNumber — int(11) — NOT NULL — failed login number
  • note — varchar(255) — note user action

useroauths

  • id — char(36) — NOT NULL — user oauth primary key
  • oAuthId — varchar(256) — NOT NULL — 소셜 로그인시 받아오는 고유 식별값
  • provider — varchar(256) — NOT NULL — oAuth 타입
  • email — varchar(320) — 이메일
  • profileImage — varchar(2048) — 프로필 이미지
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • createdWho — bigint(20)
  • updatedWho — bigint(20)
  • usersNewId — bigint(20)

usersnews

  • id — bigint(20) — NOT NULL — UserNew id
  • id_old — varchar(36) — UserNew id old
  • accountId — varchar(200) — NOT NULL — 로그인용 계정 id(모바일 사용자) (account id)
  • dupinfo — varchar(240) — 개인중복식별고유값(Personal Unique Code)
  • status — ENUM — NOT NULL — 사용자 상태(활성, 휴면, 정지, 탈퇴) (account status, ACTIVE | SLEEP | BLOCK | RETIRED, default: ACTIVE)
  • type — ENUM — NOT NULL — 사용자 상태(활성, 휴면, 정지, 탈퇴) (account type, MOBILE | HDO | ORG, default: MOBILE)
  • role — ENUM — NOT NULL — 권한(ADMIN관리자, VIEWER조회만 가능한 사용자) (account role, ADMIN | HDO | ORG, default: MOBILE)
  • saltRounds — varchar(320) — salt
  • hashPassword — varchar(320) — password hashed
  • md5Password — varchar(320) — md5 password
  • isRequireResetPassword — tinyint(1) — true if org user have request to reset password
  • isRequireCreateAccount — tinyint(1) — true if org user have request to create account
  • refreshToken — varchar(320) — refreshToken to generate new token
  • dept — varchar(16) — 부서
  • nfcMembershipNo — varchar(32) — NFC 멤버쉽 번호 (membership number from NFC card / 안드로이드에서 NFC태깅을 했을때 idTag값으로 들어옴. / 회원가입시에 발급할꺼임 아마도.))
  • physicalCardNo — varchar(32) — 실물카드(RF) 번호 (안드로이드와 아이폰에서 실물카드를 이용한 태깅을 했을때 idTag값으로 들어옴. 티머니같은 교통카드 개념.)
  • isEmailVerified — tinyint(1) — NOT NULL — 본인실명인증여부 (email is verify or not, default: false)
  • pwdChgRequired — tinyint(1) — NOT NULL — 비밀번호 변경(법인회원용)
  • name — varchar(320) — NOT NULL — (암호화된) 사용자명 (user fullname)
  • phoneNo — varchar(36) — (암호화된)사용자 연락처 (user phone number)
  • email — varchar(320) — user email
  • subsDCPrice — smallint(5) — 구독할인 (구독, 해지, 변경에 따라 업데이트 필요)
  • deviceId — text — 푸시알림용 디바이스 id
  • userAgreements — longtext — 선택 약관 동의 여부(Array) - ex) fasle, false, false, false, false - 현재는 항목 5개
  • haveUnpaid — tinyint(1) — 미납 존재 여부
  • currentAccessDateTime — datetime — 사용자 최근 접속 날짜 및 시간
  • profileImage — varchar(2048) — 프로필 이미지 (user profile image)
  • verifyEmailSendedAt — datetime
  • resetPasswordToken — varchar(255) — 프로필 이미지 (user profile image)
  • createdAt — timestamp — NOT NULL
  • updatedAt — timestamp — NOT NULL
  • deletedAt — datetime
  • orgId — int(10) — Foreign key → orgs.id
  • roleId — varchar(36) — Foreign key → roles.id
  • usersNewId — int(10)
  • lastUsedMacAddr — varchar(255) — 해당 회원이 마지막으로 충전을 진행했던 차량 MAC 주소 (MAC address)
  • gender — varchar(2) — 유저 성별
  • birth — varchar(32) — 유저 생년월일
  • address — varchar(255)
  • detailAddress — varchar(255)
  • zipCode — varchar(32)