...
|
...
|
@@ -45,7 +45,7 @@ func (ptr *AddTableStructService) AddTableStruct(ctx *domain.Context, parentTabl |
|
|
fields = MappingFieldsV2(mainTable, fields)
|
|
|
dataFields := (domain.Fields)(fields).Select(map[string]interface{}{"flag": domain.MainTableField})
|
|
|
manualFields := (domain.Fields)(fields).Select(map[string]interface{}{"flag": domain.ManualField})
|
|
|
table := NewTable(domain.SubTable, name, fields, mainTable.RowCount).WithContext(ctx).WithPrefix(string(domain.SubTable))
|
|
|
table := NewTable(domain.SubTable, name, fields, mainTable.RowCount).WithContext(ctx).WithPrefix(string(domain.SubTable)).WithTableInfo(mainTable)
|
|
|
table.DataFieldIndex = mainTable.DataFieldIndex
|
|
|
table.DataFields = dataFields
|
|
|
table.ManualFields = manualFields
|
...
|
...
|
|