Migrate to PostgreSQL and fix related issues
This commit is contained in:
parent
0b8fbea6c3
commit
a89a9776c3
17 changed files with 176 additions and 174 deletions
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ type Section struct {
|
|||
gorm.Model
|
||||
Name string
|
||||
ShortName string
|
||||
ParentSectionID uint
|
||||
ParentSectionID *uint
|
||||
ParentSection *Section
|
||||
ContainsMembers bool
|
||||
ContainsContacts bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue