ThePick_20210422_v2
Tables (21)
Copy Of Copy Of Copy Of Untitled2 (sytem_app_category)
- Field (app_category_code) — varchar(10) — Primary key — NOT NULL — App 종류 코드
- Field (app_category_name) — varchar(50) — NOT NULL — App 종류 명칭
Copy Of Copy Of Untitled (module_payment_method)
- Key (seq) — smallint — Primary key — NOT NULL
- Field (payment_method_name) — jsonb — NOT NULL — 결제 방법 명칭 다국어, 영어 필수
Copy Of Copy Of Untitled2 (sytem_bank)
- Key (seq) — integer — Primary key — NOT NULL
- seq (system_country_seq) — integer — Foreign key → system_countries.seq — NOT NULL — 은행 소속 국가, ref::system_country.seq
- Field (bank_names) — jsonb — NOT NULL — 은행명 다국어, 영어 필수
- Field (bank_code) — varchar(20) — NOT NULL — 은행코드
Copy Of Untitled (module_order_status)
- Key (seq) — smallint — Primary key — NOT NULL
- Field (order_status_name) — jsonb — NOT NULL — 주문 상태 명칭 다국어, 영어 필수
Copy Of Untitled2 (module_restorant_qr)
- Key (seq) — bigint — Primary key — NOT NULL
- Key (module_restorant_seq) — bigint — Foreign key → Untitled.Key — NOT NULL — QR 요청 식당, ref:module_restorant.seq
- Field (restorant_qr_count) — integer — NOT NULL — QR 요청 시점의 수량
- Field (restorant_qr_date_request) — timestamp — NOT NULL — QR 요청일
- Field (restorant_qr_date_process) — timestamp — QR 처리일
Untitled (module_payment)
- Key (seq) — bigint — Primary key — NOT NULL
- Key (module_payment_method_seq) — smallint — Foreign key → Copy Of Copy Of Untitled.Key — NOT NULL — 결제 방법, ref::module_payment_method.seq
- Field (payment_date) — timestamp — NOT NULL — 결제 시간
- Field (payment_amount) — integer — NOT NULL — 결제 금액
- Field (payment_token) — varchar(200) — NOT NULL — 결제 토큰
Untitled (module_restorant_account)
- Key (seq) — bigint — Primary key — NOT NULL
- Key (module_restorant_seq) — bigint — Foreign key → Untitled.Key — NOT NULL — 식당, ref::module_restorant.seq
- Key (sytem_bank_seq) — integer — Foreign key → Copy Of Copy Of Untitled2.Key — NOT NULL — 정산 계좌 은행, ref::sytem_bank.seq
- Field (restorant_account_number) — varchar(100) — NOT NULL — 정산 계좌 번호
- Field (restorant_account_owner) — varchar(50) — NOT NULL — 정산 계좌 소유주
- Field (restorant_account_date) — timestamp — NOT NULL — 정산 계좌 등록일
Untitled (system_user_administrator)
- seq (system_user_seq) — bigint — Foreign key → system_user.seq — NOT NULL — ref::system_user.seq
- Field (user_administrator_password) — varchar(100) — NOT NULL — 관리자 로그인 password
- Field (user_administrator_authority) — jsonb — NOT NULL — 관리자 권한 JSON
Untitled (system_app_device)
- Key (seq) — bigint — Primary key — NOT NULL
- seq (system_user_seq) — bigint — Foreign key → system_user.seq — 로그인 유저, ref::system_useq.seq
- Field (app_category_code) — varchar(10) — Foreign key → Copy Of Copy Of Copy Of Untitled2.Field — NOT NULL — App 종류 코드 ref::sytem_app_category.app_category_code
- Field (device_type) — varchar(10) — NOT NULL — 기기 APNS, FCM
- Field (device_uuid) — varchar(200) — NOT NULL — 기기 고유 값
- Field (device_date) — timestamp — NOT NULL — 기기 등록 및 수정일
Untitled (module_restorant_adjustment)
- Key (seq) — bigint — Primary key — NOT NULL
- Key (module_restorant_seq) — bigint — Foreign key → Untitled.Key — NOT NULL — 정산 식당, ref::module_restorant.seq
- Key (module_restorant_account_seq) — bigint — Foreign key → Untitled.Key — NOT NULL — 정산 입금 계좌
- Field (restorant_adjustment_amount) — integer — NOT NULL — 정산 금액
- Field (restorant_adjustment_date) — timestamp — NOT NULL — 정산일
Untitled (module_survey)
- Key (seq) — bigint — Primary key — NOT NULL
- seq (system_user_seq) — bigint — Foreign key → system_user.seq — NOT NULL — 평가 등록자, ref::system_user.seq
- Key (module_order_seq) — bigint — Foreign key → Untitled.Key — NOT NULL — 평가 대상 주문 건, ref::module_order.seq
- seq (system_language_seq) — integer — Foreign key → system_languages.seq — NOT NULL — 평가 등록 언어, ref::system_language.seq
- Field (survey_point) — smallint — NOT NULL — 평가 1점이 최저 인 10 점 만점 평가 값
- Field (survey_comment) — text — NOT NULL — 평가 내용
- Field (survey_date) — timestamp — NOT NULL — 평가 등록 및 수정일
Untitled (module_order)
- Key (seq) — bigint — Primary key — NOT NULL
- seq (system_user_seq) — bigint — Foreign key → system_user.seq — NOT NULL — 주문자, ref::system_user.seq
- Key (module_restorant_seats_seq) — bigint — Foreign key → Untitled.Key — NOT NULL — 식당 테이블, ref::module_restorant_seats.seq
- Key (module_order_status_seq) — smallint — Foreign key → Copy Of Untitled.Key — NOT NULL — 마지막 주문 상태, ref::module_order_status.seq
- Key (module_payment_seq) — bigint — Foreign key → Untitled.Key — 주문 결제 이력, ref::module_payment.seq
- seq (system_language_seq) — integer — Foreign key → system_languages.seq — NOT NULL — 주문 시점 사용 언어, ref::system_language.seq
- Field (order_dishes) — jsonb — NOT NULL — 주문 시점의 module_dish 의 row 를 JSON 화 하여 Array 로 저장
- Field (order_process_minute) — bigint — NOT NULL — 주문 완료 까지 예상 분
- Field (order_date_request) — timestamp — NOT NULL — 주문 시간
- Field (order_date_cancel) — timestamp — 취소 시간
- Field (order_date_complet) — timestamp — 완료 시간
Untitled (module_dish_category)
- Key (seq) — smallint — Primary key — NOT NULL
- Field (dish_category_name) — jsonb — NOT NULL — 음식 종류 명칭 다국어, 영어 필수
Untitled (module_restorant_seats)
- Key (seq) — bigint — Primary key — NOT NULL
- Key (module_restorant_seq) — bigint — Foreign key → Untitled.Key — NOT NULL — 식당, ref::module_restorant.seq
- Field (restorant_seats_id) — char(32) — NOT NULL — QR에 삽입할 값, UUID 로 생성
- Field (restorant_seats_name) — varchar(200) — NOT NULL — 테이블 이름
- Field (restorant_seats_enabled) — smallint — NOT NULL — 0:미사용, 1:사용
- Field (restorant_seats_date) — timestramp — NOT NULL — 테이블 등록 일자
Untitled (module_restorant)
- Key (seq) — bigint — Primary key — NOT NULL
- seq (system_user_seq) — bigint — Foreign key → system_user.seq — NOT NULL — 식당 관리자, ref::system_user.seq
- seq (module_file_seq) — bigint — Foreign key → module_file_data.seq — NOT NULL — 식당 이미지, ref::module_file.seq
- seq (system_country_seq) — integer — Foreign key → system_countries.seq — NOT NULL — 식당 전화번호 국가, ref::system_country.seq
- Field (restorant_id) — char(32) — NOT NULL — QR에 삽입할 값, UUID 로 생성
- Field (restorant_name) — jsonb — NOT NULL — 식당 명칭 다국어, 영어 필수
- Field (restorant_discretion) — jsonb — NOT NULL — 식당 간단 설명 다국어, 영어 필수
- Field (restorant_images) — jsonb — NOT NULL — module_file.seq 를 Number Array 로 저장
- Field (restorant_date) — timestamp — NOT NULL — 식당 등록 및 수정일
- Field (restorant_owner) — varchar(50) — NOT NULL — 점주 성명
- Field (restorant_telephone) — varchar(50) — NOT NULL — 식당 전화번호
- Field (restorant_address1) — varchar(200) — NOT NULL — 식당 주소
- Field (restorant_address2) — varchar(200) — NOT NULL — 식당 상세 주소
- Field (restorant_zipcode) — char(5) — NOT NULL — 식당 우편번호
- Field (restorant_languages) — jsonb — NOT NULL — 식당 에서 사용 가능한 언어, system_language.seq 를 Number Array 로 저장
- Field (restorant_license_number) — varchar(50) — NOT NULL — 식당 사업자 번호
Untitled (module_dish)
- Key (seq) — bigint — Primary key — NOT NULL
- Key (module_restorant_seq) — bigint — Foreign key → Untitled.Key — NOT NULL — 식당, ref::module_restorant.seq
- Key (module_dish_category_seq) — smallint — Foreign key → Untitled.Key — NOT NULL — 음식 종류, ref::module_dish_category.seq
- Field (dish_ordering) — integer — 음식 목록 표시 순서
- Field (dish_name) — jsonb — NOT NULL — 음식 명칭 다국어, 영어 필수
- Field (dish_discretion) — jsonb — NOT NULL — 음식 간단 설명 다국어, 영어 필수
- Field (dish_images) — jsonb — NOT NULL — module_file.seq 를 Array 로 저장
- Field (dish_amount) — integer — NOT NULL — 음식 가격
- Field (dish_count_per_day) — smallint — NOT NULL — 1일 제공 가능한 수량
- Field (dish_hide) — smallint — NOT NULL — 0:표시함, 1;표시하지 않음
- Field (dish_date) — timestamp — NOT NULL — 음식 등록 및 수정일
module_file_data (module_file)
- seq — bigint — Primary key — NOT NULL
- seq (system_user_seq) — bigint — Foreign key → system_user.seq — NOT NULL — 파일 등록자, ref::system_user.seq
- file_uuid — char(32) — NOT NULL — 관리용, UUID 로 생성
- file_filename — varchar(200) — NOT NULL — 오리지널 파일명
- file_ext (file_mine) — varchar(200) — 파일타입
- file_contains — jsonb — 연결되는 {"테이블명":"seq"} 형태 값 배열 저장, 연결이 없으면 NULL
- file_realpath — text — NOT NULL — 서버에서 접근할 파일 경로
- file_filelink — text — NOT NULL — URL 로 접근할 경로
- file_created (file_date_create) — timestamp — NOT NULL — 파일 생성 시간
system_countries (system_country)
- seq — integer — Primary key — NOT NULL
- Field (country_ordering) — integer — 국가 목록 표시 순서
- code1 (country_code2) — char(2) — NOT NULL — ISO 3166-1 alpha-2
- code2 (country_code3) — char(3) — NOT NULL — ISO 3166-1 alpha-3
- name (country_name_english) — varchar(100) — NOT NULL — ISO country name
- name_local (country_name_local) — varchar(100) — 국가 로컬 명칭
- phone_code (country_phone_code) — char(4) — NOT NULL — E.164 IDD
- Field (country_timezone) — smallint — NOT NULL — UTC 기준 증감 초
system_history_sms
- seq — bigint — Primary key — NOT NULL
- Field (app_category_code) — varchar(10) — Foreign key → Copy Of Copy Of Copy Of Untitled2.Field — NOT NULL — App 종류 코드 ref::sytem_app_category.app_category_code
- seq (system_country_seq) — integer — Foreign key → system_countries.seq — NOT NULL — 발송대상 국가, ref::system_country.seq
- Field (history_sms_target) — varchar(50) — NOT NULL — 발송대상
- Field (history_sms_text) — text — NOT NULL — 발송내용
- Field (history_sms_authentication_code) — char(6) — 인증용 코드, 필요한 경우
- Field (history_sms_authentication_count) — smallint — 인증용 코드 비교 남은 횟수, 필요한 경우
- Field (history_sms_date_send) — timestamp — NOT NULL — 발송시간
- Field (history_sms_result) — varchar(200) — 발송결과 (비정상인경우)
system_languages (system_language)
- seq — integer — Primary key — NOT NULL
- Field (language_ordering) — integer — 언어 목록 표시 순서
- code1 (language_code2) — char(2) — NOT NULL — ISO 639-1
- code2 (language_code3) — char(3) — NOT NULL — ISO 639-3
- name_eng (language_name_english) — varchar(100) — NOT NULL — ISO language name
- name_local (language_name_local) — varchar(100) — 언어 로컬 명칭
system_user
- seq — bigint — Primary key — NOT NULL
- seq (system_country_seq) — integer — Foreign key → system_countries.seq — NOT NULL — 회원 전화번호 국가, ref::system_country.seq
- seq (system_language_seq) — integer — Foreign key → system_languages.seq — NOT NULL — 회원 사용 언어, ref::system_language.seq
- Field (app_category_code) — varchar(10) — Foreign key → Copy Of Copy Of Copy Of Untitled2.Field — NOT NULL — App 종류 코드 ref::sytem_app_category.app_category_code
- user_id — char(32) — NOT NULL — 회원ID, 관리용, UUID 로 생성
- user_name — varchar(200) — NOT NULL — 회원이름
- user_telephone — varchar(50) — NOT NULL — 회원전화번호
- Field (user_email) — varchar(200) — 회원 email
- Field (user_date_birth) — date — NOT NULL — 회원생년월일
- user_date_join — timestamp — NOT NULL — 회원가입일
- Field (user_push_agreements) — jsonb — NOT NULL — 회원 Push 허용 날자 및 값 {"commom":{"date":"yyyy-MM-DD HH:mm:ss", "enabled":true}}
- user_date_signin — timestamp — 회원마지막로그인시간