Fix player deletion. Add PersonaID + NucleusID fetching upon Add-Player action.

This commit is contained in:
MaxJa4
2024-01-22 22:10:29 +01:00
parent 37f9396428
commit 973ca5bb78
5 changed files with 94 additions and 18 deletions

View File

@@ -1,8 +1,10 @@
package models
type Player struct {
ID uint `json:"id" gorm:"primary_key"`
Name string `json:"name"`
ClanID uint `json:"clan_id"`
Clan Clan `gorm:"references:ID"`
ID uint `json:"id" gorm:"primary_key"`
Name string `json:"name" gorm:"not null"`
PersonaID uint `json:"persona_id" gorm:"not null"`
NucleusID uint `json:"nucleus_id" gorm:"not null"`
ClanID uint `json:"clan_id" gorm:"not null"`
Clan Clan `gorm:"references:ID"`
}