potato/internal/model/model.go

17 lines
381 B
Go
Raw Normal View History

2021-06-11 15:46:30 +08:00
/*
* @Date: 2021-03-22 17:50:15
* @LastEditors: viletyy
2021-06-14 23:35:38 +08:00
* @LastEditTime: 2021-06-14 22:51:58
2021-06-11 15:46:30 +08:00
* @FilePath: /potato/internal/model/model.go
*/
2021-06-10 15:37:36 +08:00
package model
2021-03-23 00:55:26 +08:00
import "time"
type Model struct {
2021-06-14 23:35:38 +08:00
ID int64 `gorm:"primary_key" json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt *time.Time `gorm:"index" json:"-"`
2021-03-23 00:55:26 +08:00
}