add new models, change migration files, prepare to add all new tables from models
This commit is contained in:
76
internal/foundry/temp_models/db/token.go
Normal file
76
internal/foundry/temp_models/db/token.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user