demo.go 329 Bytes
Newer Older
kzkzzzz's avatar
kzkzzzz committed
1 2 3 4 5 6 7 8 9 10 11 12 13
package model

type Demo struct {
	Id        int    `json:"id"`         // Id
	Name      string `json:"name"`       // Name
	Value     string `json:"value"`      // Value
	CreatedAt int    `json:"created_at"` // CreatedAt
	UpdatedAt int    `json:"updated_at"` // UpdatedAt
}

func (d *Demo) TableName() string {
	return "demo"
}