27 lines
391 B
Go
27 lines
391 B
Go
package model
|
|
|
|
import (
|
|
"admin/internal/db"
|
|
"gorm.io/gorm"
|
|
"time"
|
|
)
|
|
|
|
func init() {
|
|
db.RegisterTableModels(DevicePush{})
|
|
}
|
|
|
|
type DevicePush struct {
|
|
ID int `gorm:"primarykey"`
|
|
Account string
|
|
Title string
|
|
Content string
|
|
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
|
}
|
|
|
|
func (lm *DevicePush) TableName() string {
|
|
return "mock_devicepush"
|
|
}
|