potato/internal/model/model.go

17 lines
381 B
Go

/*
* @Date: 2021-03-22 17:50:15
* @LastEditors: viletyy
* @LastEditTime: 2021-06-14 22:51:58
* @FilePath: /potato/internal/model/model.go
*/
package model
import "time"
type Model struct {
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:"-"`
}