Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Dec 6, 2022
1 parent 794082e commit 6788925
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type Index struct {
Def string `json:"def"`
Table *string `json:"table"`
Columns []string `json:"columns"`
Comment string `json:ColumnComment`
Comment string `json:"comment"`
}

// Constraint is the struct for database constraint
Expand All @@ -61,14 +61,14 @@ type Constraint struct {
ReferencedTable *string `json:"referenced_table" yaml:"referencedTable"`
Columns []string `json:"columns"`
ReferencedColumns []string `json:"referenced_columns" yaml:"referencedColumns"`
Comment string `json:ColumnComment`
Comment string `json:"comment"`
}

// Trigger is the struct for database trigger
type Trigger struct {
Name string `json:"name"`
Def string `json:"def"`
Comment string `json:ColumnComment`
Comment string `json:"comment"`
}

// Column is the struct for table column
Expand All @@ -77,7 +77,7 @@ type Column struct {
Type string `json:"type"`
Nullable bool `json:"nullable"`
Default sql.NullString `json:"default"`
Comment string `json:ColumnComment`
Comment string `json:"comment"`
ExtraDef string `json:"extra_def,omitempty" yaml:"extraDef,omitempty"`
Occurrences sql.NullInt32 `json:"occurrences,omitempty" yaml:"occurrences,omitempty"`
Percents sql.NullFloat64 `json:"percents,omitempty" yaml:"percents,omitempty"`
Expand All @@ -90,7 +90,7 @@ type Column struct {
type Table struct {
Name string `json:"name"`
Type string `json:"type"`
Comment string `json:ColumnComment`
Comment string `json:"comment"`
Columns []*Column `json:"columns"`
Indexes []*Index `json:"indexes"`
Constraints []*Constraint `json:"constraints"`
Expand Down

0 comments on commit 6788925

Please sign in to comment.