chore: update id order
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type AlertPolicy struct {
|
||||
ID int `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Status string `json:"status"`
|
||||
Message string `json:"message"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
ID int `json:"id" gorm:"primaryKey;autoIncrement"`
|
||||
Username string `json:"username" gorm:"column:username"`
|
||||
Status string `json:"status" gorm:"column:status"`
|
||||
Message string `json:"message" gorm:"column:message"`
|
||||
CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"`
|
||||
UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime"`
|
||||
}
|
||||
|
||||
func (AlertPolicy) TableName() string { return "alerte_policy" }
|
||||
|
||||
Reference in New Issue
Block a user