Create lists model & controllers
This commit is contained in:
parent
fd49b69799
commit
0159e8d528
4 changed files with 75 additions and 4 deletions
16
models/lists.go
Normal file
16
models/lists.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type List struct {
|
||||
gorm.Model
|
||||
Name string
|
||||
Multi bool
|
||||
}
|
||||
|
||||
type ListItem struct {
|
||||
gorm.Model
|
||||
Value string
|
||||
Default string
|
||||
List List
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue