feat: add generator skip option for table columns
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
This commit is contained in:
parent
f9ed359785
commit
60ba05b6fb
5 changed files with 73 additions and 9 deletions
|
|
@ -159,6 +159,7 @@ type TableModelField struct {
|
|||
Name string
|
||||
Type Type
|
||||
Tags []string
|
||||
Skip bool
|
||||
}
|
||||
|
||||
// DefaultTableModelField returns default TableModelField implementation
|
||||
|
|
@ -173,6 +174,7 @@ func DefaultTableModelField(columnMetaData metadata.Column) TableModelField {
|
|||
Name: dbidentifier.ToGoIdentifier(columnMetaData.Name),
|
||||
Type: getType(columnMetaData),
|
||||
Tags: tags,
|
||||
Skip: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue