Skip to main content

Database Overview

แต่ละ backend service มี ApplicationDbContext ของตัวเอง ทำให้ ownership ของข้อมูลชัดเจน

Booking Service

DbSetความหมาย
Bookings, BookingInfosHeader และ version/detail ของ booking
BookingInfoCars, BookingInfoContactPersons, BookingInfoDriversSnapshot ของรถ ผู้ติดต่อ และผู้ขับ
BookingInfoAddons, BookingInfoFuelServicesAdd-on และ fuel service ที่เลือกใน booking
BookingPaymentTransactions, BookingPaymentInfosข้อมูล payment ที่เกี่ยวข้องกับ booking
Refunds, RefundInfos, RefundAllocations, RefundTransactionsRefund lifecycle
Cars, Branches, Customers, AddOns, UsersSnapshot/replicated data ที่ booking ต้องอ้างอิง
EmailQueues, CancellationReasons, BookingPolicies, RunningNumbersSupporting tables

Catalog Service

DbSetความหมาย
Cars, CarImages, CarCarProSyncs, CarProSyncLogsCar catalog และ sync log
Branches, BranchCarProSyncs, BranchCarProSchedulesBranch catalog และ sync schedule
AddOns, AddOnCarProSyncsInsurance/extra services
FuelsFuel service price
Promotions, CarouselImages, PageBannerImagesMarketing content
OneWayRentals, OneWayReturns, OneWayReturnRangesOne-way rental pricing/rules
UsersAudit/update ownership

User Service

DbSetความหมาย
Users, Roles, RolePermissionsBackoffice RBAC
Customers, Groups, Tiers, SocialLoginsCustomer profile และ segmentation
CustomerActivationLogsประวัติการเปิด/ปิดสถานะ customer
TitlesMaster data คำนำหน้า
BookingPolicies, RegisterPolicies, CustomerPolicyAcceptancesTerm/policy และ consent

Payment Service

DbSetความหมาย
PaymentTransactionsTransaction หลักของ payment
SavedPaymentMethodsวิธีชำระเงินที่บันทึกไว้
Customers, Bookings, BookingInfosSnapshot ที่ payment ใช้อ้างอิง
BankMasterdatasMaster data ธนาคาร