15 lines
513 B
Go
15 lines
513 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type AlertPolicy struct {
|
|
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" }
|