Create lists model & controllers

This commit is contained in:
William Bouzourène 2024-12-30 14:46:42 +01:00
parent 52951753a1
commit fe71c07e17
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
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
}