add new models, change migration files, prepare to add all new tables from models

This commit is contained in:
lbenedar
2026-04-15 17:01:30 +03:00
parent 5bb592ea8a
commit 69d3d38ab7
95 changed files with 5371 additions and 12 deletions

View File

@@ -0,0 +1,76 @@
package db
type Token struct {
ID uint
Name string
ActorLink bool
AppendNumber bool
PrependAdjective bool
LockRotation bool
RandomImg bool
DisplayName int
DisplayBars int
Disposition int
Rotation int
Alpha int
Width float64
Height float64
Ring Ring
Sight TokenSight
Texture TokenTexture
Bar1 TokenBar
Bar2 TokenBar
Light Light
Occludable TokenOccludable
TurnMarker TokenTurnMarker
}
type TokenTexture struct {
ID uint
Src string
Fit string
Tint string
ScaleX float64
ScaleY float64
OffsetX float64
OffsetY float64
Rotation float64
AnchorX float64
AnchorY float64
AlphaThreshold float64
}
type TokenSight struct {
ID uint
Color string
VisionMode string
Range int
Angle int
Attenuation float64
Brightness float64
Enabled bool
}
type TokenBar struct {
ID uint
Attribute string
}
type TokenOccludable struct {
ID uint
Radius int
}
type TokenTurnMarker struct {
ID uint
Mode int
Animation string
Src string
Disposition bool
}