feat(tenant): 增加双站共享货架与跨站下单

This commit is contained in:
yml
2026-11-15 15:45:00 +08:00
parent abf0fce89b
commit 4eb2bc253b
20 changed files with 767 additions and 31 deletions
+2
View File
@@ -8,6 +8,7 @@ import (
type GameAccount struct {
ID uint64 `gorm:"primaryKey" json:"id"`
SourceTenantID uint64 `gorm:"not null;default:0;index:idx_game_accounts_source_tenant" json:"source_tenant_id"`
OwnerID uint64 `gorm:"not null;index" json:"owner_id"`
GameName string `gorm:"size:64;not null;default:'delta_force'" json:"game_name"`
ServerRegion string `gorm:"size:64;not null" json:"server_region"`
@@ -30,6 +31,7 @@ func (GameAccount) TableName() string {
type RentalListing struct {
ID uint64 `gorm:"primaryKey" json:"id"`
SourceTenantID uint64 `gorm:"not null;default:0;index:idx_rental_listings_source_tenant" json:"source_tenant_id"`
ListingNo string `gorm:"column:listing_no;size:20;not null;uniqueIndex" json:"listing_no"`
AccountID uint64 `gorm:"not null;index" json:"account_id"`
OwnerID uint64 `gorm:"not null;index" json:"owner_id"`