Create lists model & controllers

This commit is contained in:
William Bouzourène 2024-12-30 14:46:42 +01:00
parent fd49b69799
commit 0159e8d528
4 changed files with 75 additions and 4 deletions

16
models/lists.go Normal file
View 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
}