More indexing
This commit is contained in:
parent
4ce93be2c5
commit
6c02bfd014
|
@ -32,7 +32,7 @@ func (DB_Relationship) TableName() string {
|
||||||
|
|
||||||
type DB_Profile struct {
|
type DB_Profile struct {
|
||||||
ID string `gorm:"primary_key"`
|
ID string `gorm:"primary_key"`
|
||||||
PersonID string
|
PersonID string `gorm:"index"`
|
||||||
Items []DB_Item `gorm:"foreignkey:ProfileID"`
|
Items []DB_Item `gorm:"foreignkey:ProfileID"`
|
||||||
Gifts []DB_Gift `gorm:"foreignkey:ProfileID"`
|
Gifts []DB_Gift `gorm:"foreignkey:ProfileID"`
|
||||||
Quests []DB_Quest `gorm:"foreignkey:ProfileID"`
|
Quests []DB_Quest `gorm:"foreignkey:ProfileID"`
|
||||||
|
@ -60,7 +60,7 @@ func (DB_PAttribute) TableName() string {
|
||||||
|
|
||||||
type DB_Loadout struct {
|
type DB_Loadout struct {
|
||||||
ID string `gorm:"primary_key"`
|
ID string `gorm:"primary_key"`
|
||||||
ProfileID string
|
ProfileID string `gorm:"index"`
|
||||||
TemplateID string
|
TemplateID string
|
||||||
LockerName string
|
LockerName string
|
||||||
BannerID string
|
BannerID string
|
||||||
|
@ -96,7 +96,7 @@ func (DB_Item) TableName() string {
|
||||||
|
|
||||||
type DB_VariantChannel struct {
|
type DB_VariantChannel struct {
|
||||||
ID string `gorm:"primary_key"`
|
ID string `gorm:"primary_key"`
|
||||||
ItemID string
|
ItemID string `gorm:"index"`
|
||||||
Channel string
|
Channel string
|
||||||
Owned pq.StringArray `gorm:"type:text[]"`
|
Owned pq.StringArray `gorm:"type:text[]"`
|
||||||
Active string
|
Active string
|
||||||
|
@ -108,7 +108,7 @@ func (DB_VariantChannel) TableName() string {
|
||||||
|
|
||||||
type DB_Quest struct {
|
type DB_Quest struct {
|
||||||
ID string `gorm:"primary_key"`
|
ID string `gorm:"primary_key"`
|
||||||
ProfileID string
|
ProfileID string `gorm:"index"`
|
||||||
TemplateID string
|
TemplateID string
|
||||||
State string
|
State string
|
||||||
Objectives pq.StringArray `gorm:"type:text[]"`
|
Objectives pq.StringArray `gorm:"type:text[]"`
|
||||||
|
@ -123,7 +123,7 @@ func (DB_Quest) TableName() string {
|
||||||
|
|
||||||
type DB_Gift struct {
|
type DB_Gift struct {
|
||||||
ID string `gorm:"primary_key"`
|
ID string `gorm:"primary_key"`
|
||||||
ProfileID string
|
ProfileID string `gorm:"index"`
|
||||||
TemplateID string
|
TemplateID string
|
||||||
Quantity int
|
Quantity int
|
||||||
FromID string
|
FromID string
|
||||||
|
@ -138,7 +138,7 @@ func (DB_Gift) TableName() string {
|
||||||
|
|
||||||
type DB_Loot struct {
|
type DB_Loot struct {
|
||||||
ID string `gorm:"primary_key"`
|
ID string `gorm:"primary_key"`
|
||||||
GiftID string
|
GiftID string `gorm:"index"`
|
||||||
TemplateID string
|
TemplateID string
|
||||||
Quantity int
|
Quantity int
|
||||||
ProfileType string
|
ProfileType string
|
||||||
|
|
Loading…
Reference in New Issue
Block a user