ddddd
Tables (22)
branch
- branch_no — int(11) — Primary key — NOT NULL — 지점 번호 PK
- branch_name — varchar(50) — NOT NULL — 지점 명
- branch_tel — varchar(50) — NOT NULL — 지점 전화번호
- branch_address — varchar(50) — NOT NULL — 지점 주소
- createdate — date — NOT NULL — 생성 일자
consumable
- consumable_no — int(11) — Primary key — NOT NULL — 소모품 번호 PK
- consumable_name — varchar(50) — NOT NULL — 소모품 명
- consumable_amount — int(11) — NOT NULL — 소모품 수량
- createdate — datetime — NOT NULL — 생성일자
customer
- customer_no — int(11) — Primary key — NOT NULL — 고객 번호 PK
- customer_id — varchar(50) — NOT NULL — 고객 아이디
- customer_pw — varchar(50) — NOT NULL — 고객 비밀번호
- customer_name — varchar(50) — NOT NULL — 고객 이름
- customer_phone — varchar(50) — NOT NULL — 고객 전화번호
- customer_address — varchar(50) — NOT NULL — 고객 주소
- customer_email — varchar(50) — NOT NULL — 고객 이메일
- createdate — date — NOT NULL — 생성일자
customer_membership_sale
- sale_no — int(11) — Primary key — NOT NULL
- customer_no — int(11) — Foreign key → customer.customer_no — NOT NULL — 고객no, 외래키
- program_no — int(11) — Foreign key → program.program_no — NOT NULL — 프로그램no, 외래키
- createdate — date — NOT NULL
customerimg
- customerimg_no — int(11) — Primary key — NOT NULL — 고객 이미지 번호 PK
- file_name — varchar(50) — NOT NULL — 저장된 이미지 이름
- origin_name — varchar(50) — NOT NULL — 본래 이미지 이름
- file_size — varchar(50) — NOT NULL — 이미지 파일 사이즈
- file_type — varchar(50) — NOT NULL — 이미지 파일 타입
- customer_no — int(11) — Foreign key → customer.customer_no — NOT NULL — 고객 번호 FK(customer)
- createdate — date — NOT NULL — 생성일자
employee
- employee_no — int(11) — Primary key — NOT NULL — 직원 번호 PK
- employee_id — varchar(50) — NOT NULL — 직원 아이디
- employee_pw — varchar(50) — NOT NULL — 직원 비밀번호
- employee_phone — varchar(50) — NOT NULL — 직원 전화번호
- employee_email — varchar(50) — NOT NULL — 직원 이메일
- branch_no — int(11) — Foreign key → branch.branch_no — NOT NULL — 지점 번호 FK(branch)
- createdate — date — NOT NULL — 생성일자
employeeimg
- employeeimg_no — int(11) — Primary key — NOT NULL — 직원 이미지 번호 PK
- origin_name — varchar(50) — NOT NULL — 본래 이미지 이름
- file_name — varchar(50) — NOT NULL — 저장된 이미지 이름
- file_size — varchar(50) — NOT NULL — 이미지 파일 사이즈
- file_type — varchar(50) — NOT NULL — 이미지 파일 타입
- employee_no — int(11) — Foreign key → employee.employee_no — NOT NULL — 직원 번호 FK(employee)
- createdate — date — NOT NULL — 생성일자
membership
- membership_no — int(11) — Primary key — NOT NULL — 이용권 번호
- customer_id — varchar(50) — Foreign key → customer.customer_id — NOT NULL — 고객 아이디 FK(customer)
- program_no — int(11) — Foreign key → program.program_no — NOT NULL — 프로그램 번호 FK(program)
- membership_name — varchar(50) — NOT NULL — 이용권 이름
- membership_month — varchar(50) — NOT NULL — 이용권 기간
- membership_price — varchar(50) — NOT NULL — 이용권 가격
- createdate — date — NOT NULL — 생성일자
notice
- notice_no — int(11) — Primary key — NOT NULL — 공지 번호 PK
- branch_no — int(11) — Foreign key → branch.branch_no — NOT NULL — 지점 번호 FK(branch)
- notice_title — varchar(255) — NOT NULL — 공지 제목
- notice_content — text — NOT NULL — 공지 내용
- createdate — date — NOT NULL — 생성일자
paymenthistory
- paymenthistory_no — int(11) — Primary key — NOT NULL — 결제 내역 번호 PK
- customer_id — varchar(50) — Foreign key → customer.customer_id — NOT NULL — 고객 아이디 FK(customer)
- paymenthistory_status — varchar(50) — NOT NULL — 결제 내역 상태 (당월결제전/결제완/기타...)
- createdate — date — NOT NULL — 생성일자
payments
- payment_id — int(11) — Primary key — NOT NULL — 결제 번호 PK
- customer_id — varchar(50) — Foreign key → customer.customer_id — NOT NULL — 고객 아이디 FK(customer)
- payment_date — date — NOT NULL — 결제일
- payment_amount — int(11) — NOT NULL — 결제수량
- payment_type — varchar(50) — NOT NULL — 결제수단
- createdate — date — NOT NULL — 생성일자
program
- program_no — int(11) — Primary key — NOT NULL — 프로그램 번호 PK
- employee_id — varchar(50) — Foreign key → employee.employee_id — NOT NULL — 직원 아이디 FK(customer)
- program_name — varchar(50) — NOT NULL — 프로그램 이름
- program_begin_time — datetime — NOT NULL — 프로그램 시작 시간
- program_end_time — datetime — NOT NULL — 프로그램 종료 시간
- program_max_customer — int(11) — NOT NULL — 최대수용인원
- createdate — date — NOT NULL — 생성일자
programapplication
- programapplication_no — int(11) — Primary key — NOT NULL — 결재 번호 PK
- programapplication_status — varchar(50) — NOT NULL — 결재 상태 (결재대기/결재완/미승인)
- program_name — varchar(50) — NOT NULL — 결재 프로그램 이름
- employee_id — varchar(50) — Foreign key → employee.employee_id — NOT NULL — 결제 요청 직원 아이디 FK(employee)
- branch_no — int(11) — Foreign key → branch.branch_no — NOT NULL — 지점 번호 FK(branch)
- createdate — datetime — NOT NULL — 생성일자
programreservation
- programreservation_no — int(11) — Primary key — NOT NULL — 프로그램 예약 번호 PK
- customer_id — varchar(50) — Foreign key → customer.customer_id — NOT NULL — 고객 아이디 FK(customer)
- program_no — int(11) — Foreign key → program.program_no — NOT NULL — 프로그램 번호 FK(program)
- programreservation_date — datetime — NOT NULL — 프로그램 예약 일자
- programreservation_current_no — int(11) — NOT NULL — 실시간 예약인원
- createdate — date — NOT NULL — 생성일자
question
- question_no — int(11) — Primary key — NOT NULL — 문의 번호 PK
- question_title — varchar(50) — NOT NULL — 문의 제목
- question_content — text — NOT NULL — 문의 내용
- customer_id — varchar(50) — Foreign key → customer.customer_id — NOT NULL — 고객 아이디 FK(customer)
- createdate — date — NOT NULL — 생성일자
questionreply
- questionreply_no — int(11) — Primary key — NOT NULL — 문의 답변 번호 PK
- question_no — int(11) — Foreign key → question.question_no — NOT NULL — 문의 번호 FK(question)
- questionreply_content — varchar(50) — NOT NULL — 문의 답변 내용
- employee_id — varchar(50) — Foreign key → employee.employee_id — NOT NULL — 답변 직원 아이디(employee)
- createdate — date — NOT NULL — 생성일자
review
- review_no — int(11) — Primary key — NOT NULL — 리뷰 번호 PK
- review_title — varchar(50) — NOT NULL — 리뷰 제목
- review_content — varchar(50) — NOT NULL — 리뷰 내용
- customer_id — varchar(50) — Foreign key → customer.customer_id — NOT NULL — 고객 아이디 FK(customer)
- createdate — date — NOT NULL — 생성일자
reviewreply
- reviewreply_no — int(11) — Primary key — NOT NULL — 리뷰 답변 번호 PK
- reviewreply_content — text — NOT NULL — 리뷰 답변 내용
- employee_id — varchar(50) — Foreign key → employee.employee_id — NOT NULL — 답변 직원 아이디 FK(employee)
- createdate — date — NOT NULL — 생성일자
- review_no — int(11) — Foreign key → review.review_no — NOT NULL
sales
- sales_no — int(11) — Primary key — NOT NULL — 판매 번호 PK
- branch_no — int(11) — Foreign key → branch.branch_no — NOT NULL — 지점 번호 FK(branch)
- sales_date — date — NOT NULL — 판매 일자
- createdate — date — NOT NULL — 생성일자
schedule
- schedule_no — int(11) — Primary key — NOT NULL — 일정 번호 PK
- branch_no — int(11) — Foreign key → branch.branch_no — NOT NULL — 지점 번호 FK(branch)
- schdule_title — varchar(50) — NOT NULL — 일정 제목
- schedule_memo — varchar(50) — NOT NULL — 일정 내용
- schedule_date — date — NOT NULL — 일정일자
- createdate — datetime — NOT NULL — 생성일자
sports_equipment_order
- order_no — int(11) — Primary key — NOT NULL — 발주 번호 PK
- branch_no — int(11) — Foreign key → branch.branch_no — NOT NULL — 지점 번호 FK(branch)
- consumable_no — int(11) — Foreign key → consumable.consumable_no — NOT NULL — 소모품 번호 FK(consumable)
- quantity — int(11) — NOT NULL — 발주 수량
- total_price — int(11) — NOT NULL — 총 가격
- createdate — date — NOT NULL — 생성일자
traininghistory
- traininghistory_no — int(11) — Primary key — NOT NULL — 운동 내역 번호 PK
- customer_id — varchar(50) — Foreign key → customer.customer_id — NOT NULL — 고객 아이디 FK(customer)
- training_date — datetime — NOT NULL — 운동일자
- max_capacity — int(11) — NOT NULL — 최대치운동량
- createdate — date — NOT NULL — 생성일자