Skip to content

Commit

Permalink
possible fix to fk constraint problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Zagarazhi committed Aug 14, 2024
1 parent 56b3d4f commit 2adbc97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/research.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ type Exchange struct {
FuturesPairs uint64 `gorm:"default:0"`
DeliveryPairs uint64 `gorm:"default:0"`
IsHidden bool `gorm:"default:false"`
ParentExchangeID uint64
ParentExchangeID *uint64
InstrumentID uint64 `gorm:"default:1"`
DescriptionRu string `gorm:"default:''"`
DescriptionEn string `gorm:"default:''"`
Expand All @@ -334,7 +334,7 @@ type Exchange struct {
ReferalLink string `gorm:"default:''"`
AuditTags []AuditTag `gorm:"foreignKey:EntityID;references:ID"`
SocialMediaTags []SocialMediaTag `gorm:"foreignKey:EntityID;references:ID"`
AssetID uint64
AssetID *uint64
CountryTags []CountryTag `gorm:"foreignKey:EntityID;references:ID"`
CreatedAt uint64 `gorm:"deault:0"`
Technology string `gorm:"default:'CeFi'"`
Expand Down

0 comments on commit 2adbc97

Please sign in to comment.