removed more strings
fixed issue with skill level display
This commit is contained in:
@@ -26,7 +26,7 @@ type Magisch struct {
|
||||
|
||||
type LookupList struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"` //`gorm:"default:uuid_generate_v3()"` // db func
|
||||
GameSystem string `gorm:"column:game_system;index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"column:game_system;index" json:"game_system"`
|
||||
Name string `gorm:"type:varchar(255);index" json:"name"`
|
||||
Beschreibung string `json:"beschreibung"`
|
||||
Quelle string `json:"quelle"` // Deprecated: Für Rückwärtskompatibilität
|
||||
@@ -35,7 +35,7 @@ type LookupList struct {
|
||||
}
|
||||
|
||||
type LearnCost struct {
|
||||
GameSystem string `gorm:"column:game_system;index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"column:game_system;index" json:"game_system"`
|
||||
GameSystemId uint `json:"game_system_id,omitempty"`
|
||||
Stufe int `json:"stufe"`
|
||||
LE int `json:"le"`
|
||||
@@ -47,7 +47,7 @@ type LearnCost struct {
|
||||
|
||||
type Skill struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
GameSystem string `gorm:"column:game_system;index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"column:game_system;index" json:"game_system"`
|
||||
GameSystemId uint `json:"game_system_id,omitempty"`
|
||||
Name string `gorm:"type:varchar(255);index" json:"name"`
|
||||
Beschreibung string `json:"beschreibung"`
|
||||
@@ -69,7 +69,7 @@ type WeaponSkill struct {
|
||||
|
||||
type Spell struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
GameSystem string `gorm:"column:game_system;index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"column:game_system;index" json:"game_system"`
|
||||
GameSystemId uint `json:"game_system_id,omitempty"`
|
||||
Name string `gorm:"type:varchar(255);index" json:"name"`
|
||||
Beschreibung string `json:"beschreibung"`
|
||||
@@ -92,7 +92,7 @@ type Spell struct {
|
||||
|
||||
type Equipment struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
GameSystem string `gorm:"column:game_system;index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"column:game_system;index" json:"game_system"`
|
||||
GameSystemId uint `json:"game_system_id,omitempty"`
|
||||
Name string `gorm:"type:varchar(255);index" json:"name"`
|
||||
Beschreibung string `json:"beschreibung"`
|
||||
@@ -125,7 +125,7 @@ type Transportation struct {
|
||||
|
||||
type Believe struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
GameSystem string `gorm:"column:game_system;index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"column:game_system;index" json:"game_system"`
|
||||
Name string `gorm:"type:varchar(255);index" json:"name"`
|
||||
Beschreibung string `json:"beschreibung"`
|
||||
Quelle string `json:"quelle"` // Deprecated: Für Rückwärtskompatibilität
|
||||
@@ -137,7 +137,7 @@ type Believe struct {
|
||||
// MiscLookup represents miscellaneous lookup values like gender, race, origin, etc.
|
||||
type MiscLookup struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
GameSystem string `gorm:"column:game_system;index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"column:game_system;index" json:"game_system"`
|
||||
GameSystemId uint `json:"game_system_id,omitempty"`
|
||||
Key string `gorm:"column:key;type:varchar(50);index;not null" json:"key"`
|
||||
Value string `gorm:"type:varchar(255);not null" json:"value"`
|
||||
|
||||
@@ -20,7 +20,7 @@ type Source struct {
|
||||
Description string `json:"description,omitempty"` // Beschreibung des Werks
|
||||
IsCore bool `json:"is_core"` // Ist es ein Grundregelwerk?
|
||||
IsActive bool `json:"is_active"` // Ist das Werk aktiv/verfügbar?
|
||||
GameSystem string `gorm:"index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"index" json:"game_system"`
|
||||
GameSystemId uint `json:"game_system_id,omitempty"`
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ type CharacterClass struct {
|
||||
Name string `gorm:"unique;not null" json:"name"` // z.B. "Hexer", "Magier", "Krieger"
|
||||
Description string `json:"description,omitempty"` // Optional: Beschreibung der Klasse
|
||||
SourceID uint `gorm:"not null;index" json:"source_id"` // Verweis auf das Quellenbuch
|
||||
GameSystem string `gorm:"index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"index" json:"game_system"`
|
||||
GameSystemId uint `json:"game_system_id,omitempty"`
|
||||
Source Source `gorm:"foreignKey:SourceID;constraint:OnUpdate:CASCADE,OnDelete:RESTRICT" json:"source"`
|
||||
Quelle string `gorm:"index;size:3;default:KOD" json:"quelle,omitempty"` // Optional: Quelle der Kategorie, falls abweichend
|
||||
@@ -42,7 +42,7 @@ type SkillCategory struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
Name string `gorm:"unique;not null" json:"name"` // z.B. "Alltag", "Kampf", "Waffen"
|
||||
SourceID uint `gorm:"not null;index" json:"source_id"` // Verweis auf das Quellenbuch
|
||||
GameSystem string `gorm:"index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"index" json:"game_system"`
|
||||
GameSystemId uint `json:"game_system_id,omitempty"`
|
||||
Source Source `gorm:"foreignKey:SourceID;constraint:OnUpdate:CASCADE,OnDelete:RESTRICT" json:"source"`
|
||||
Quelle string `gorm:"index;size:3;default:KOD" json:"quelle,omitempty"` // Optional: Quelle der Kategorie, falls abweichend
|
||||
@@ -53,7 +53,7 @@ type SkillDifficulty struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
Name string `gorm:"unique;not null" json:"name"` // z.B. "leicht", "normal", "schwer", "sehr schwer"
|
||||
Description string `json:"description,omitempty"` // Optional: Beschreibung
|
||||
GameSystem string `gorm:"index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"index" json:"game_system"`
|
||||
GameSystemId uint `json:"game_system_id,omitempty"`
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ type SpellSchool struct {
|
||||
Name string `gorm:"unique;not null" json:"name"` // z.B. "Beherrschen", "Bewegen", "Erkennen"
|
||||
Description string `json:"description,omitempty"` // Optional: Beschreibung
|
||||
SourceID uint `gorm:"not null;index" json:"source_id"` // Verweis auf das Quellenbuch
|
||||
GameSystem string `gorm:"index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"index" json:"game_system"`
|
||||
GameSystemId uint `json:"game_system_id,omitempty"`
|
||||
Source Source `gorm:"foreignKey:SourceID;constraint:OnUpdate:CASCADE,OnDelete:RESTRICT" json:"source"`
|
||||
Quelle string `gorm:"index;size:3;default:KOD" json:"quelle,omitempty"` // Optional: Quelle der Kategorie, falls abweichend
|
||||
@@ -98,7 +98,7 @@ type SpellLevelLECost struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
Level int `gorm:"uniqueIndex;not null" json:"level"` // Zauber-Stufe (1-12)
|
||||
LERequired int `gorm:"not null" json:"le_required"` // Benötigte Lerneinheiten
|
||||
GameSystem string `gorm:"index;default:midgard" json:"game_system"`
|
||||
GameSystem string `gorm:"index" json:"game_system"`
|
||||
GameSystemId uint `json:"game_system_id,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user