mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
14 lines
366 B
Go
14 lines
366 B
Go
//go:generate reform
|
|
package models
|
|
|
|
import "time"
|
|
|
|
//reform:people
|
|
type Person struct {
|
|
ID int32 `reform:"id,pk" json:"id"`
|
|
Name string `reform:"name" json:"name"`
|
|
Email *string `reform:"email" json:"email"`
|
|
CreatedAt time.Time `reform:"created_at" json:"created_at"`
|
|
UpdatedAt *time.Time `reform:"updated_at" json:"updated_at"`
|
|
}
|