add new models, change migration files, prepare to add all new tables from models
This commit is contained in:
21
internal/foundry/temp_models/json/compatibility.go
Normal file
21
internal/foundry/temp_models/json/compatibility.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package json
|
||||
|
||||
import "gitea.local.lab/Lbenedar/foundry_helper_service/internal/foundry/temp_models/db"
|
||||
|
||||
type Compatibility struct {
|
||||
Minimum string `json:"minimum,omitempty"`
|
||||
Verified string `json:"verified,omitempty"`
|
||||
Maximum string `json:"maximum,omitempty"`
|
||||
}
|
||||
|
||||
func (c *Compatibility) ToDB(dest *db.Compatibility) bool {
|
||||
if dest == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
dest.Minimum = c.Minimum
|
||||
dest.Verified = c.Verified
|
||||
dest.Maximum = c.Maximum
|
||||
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user