Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attribute ¶
type Attribute struct { Name inflect.Name OriginalType string GoType string FizzType string Primary bool Nullable bool }
func (Attribute) IsValidable ¶
type Model ¶
type Model struct { Package string Imports []string Name inflect.Name Attributes []Attribute ValidatableAttributes []Attribute HasNulls bool HasUUID bool HasSlices bool HasID bool }
func (*Model) ParseAttributes ¶
type Options ¶
type Options struct { App meta.App `json:"app"` Name inflect.Name `json:"name"` ModelName inflect.Name `json:"model_name"` Model Model `json:"model"` Char string `json:"char"` // SkipMigration bool `json:"skip_migration"` // SkipModel bool `json:"skip_model"` // SkipTemplates bool `json:"skip_templates"` // UseModel bool `json:"use_model"` FilesPath string `json:"files_path"` ActionsPath string `json:"actions_path"` Props []Prop `json:"props"` NamedAttrs attrs.NamedAttrs `json:"named_attrs"` Actions []string `json:"actions"` Args []string `json:"args"` Init bool `json:"init"` }
Click to show internal directories.
Click to hide internal directories.