File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 99var _ astral.Object = & Service {}
1010
1111type Service struct {
12- Name astral.String8 // mod.nat
13- Identity * astral.Identity // if its module of node then idenity = NodeId, if it's service accessible beacuase of app then identity = AppId
12+ Name astral.String8
13+ Identity * astral.Identity // if its module of node then identity = NodeId, if it's of app service then identity = AppId
1414 Composition * astral.Bundle
1515}
1616
Original file line number Diff line number Diff line change 66
77// dbService represents discovered service of a specific identity cached in the database
88type dbService struct {
9- Name astral.String8 `gorm:"index "`
10- Identity * astral.Identity `gorm:"index "`
9+ Name astral.String8 `gorm:"uniqueIndex:idx_db_service_name_identity "`
10+ Identity * astral.Identity `gorm:"uniqueIndex:idx_db_service_name_identity "`
1111 Composition * astral.Bundle `gorm:"serializer:json"`
1212 CreatedAt astral.Time `gorm:"autoCreateTime"`
1313}
You can’t perform that action at this time.
0 commit comments