Migrate to PostgreSQL and fix related issues

This commit is contained in:
William Bouzourène 2025-05-12 21:10:40 +02:00
parent 0b8fbea6c3
commit a89a9776c3
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
17 changed files with 176 additions and 174 deletions

View file

@ -11,8 +11,8 @@ type Field struct {
Name string
PersonType string
FieldType string
ListID uint
List List
ListID *uint
List *List
Position int
}
@ -25,8 +25,8 @@ type FieldValue struct {
ValueString sql.NullString
ValueInt sql.NullInt64
ValueDate sql.NullTime
ListItemID uint
ListItem ListItem
ListItemID *uint
ListItem *ListItem
}
var PersonTypes = map[string]string{

View file

@ -6,7 +6,7 @@ type Section struct {
gorm.Model
Name string
ShortName string
ParentSectionID uint
ParentSectionID *uint
ParentSection *Section
ContainsMembers bool
ContainsContacts bool