chore: update id order
This commit is contained in:
@@ -3,9 +3,11 @@ package models
|
||||
import "time"
|
||||
|
||||
type Address struct {
|
||||
ID int64 `db:"id"`
|
||||
InvalidAddress string `db:"invalid_address"`
|
||||
CorrectAddress string `db:"correct_address"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
UpdatedAt time.Time `db:"updated_at"`
|
||||
ID int64 `db:"id" gorm:"primaryKey;autoIncrement"`
|
||||
InvalidAddress string `db:"invalid_address" gorm:"column:invalid_address"`
|
||||
CorrectAddress string `db:"correct_address" gorm:"column:correct_address"`
|
||||
CreatedAt time.Time `db:"created_at" gorm:"autoCreateTime"`
|
||||
UpdatedAt time.Time `db:"updated_at" gorm:"autoUpdateTime"`
|
||||
}
|
||||
|
||||
func (Address) TableName() string { return "adresse_correction" }
|
||||
|
||||
Reference in New Issue
Block a user