28 lines
504 B
Go
28 lines
504 B
Go
package user
|
|
|
|
// AUTO GENERATED
|
|
// DO NOT EDIT
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
type User struct {
|
|
Id int `db:"id"`
|
|
Email string `db:"email"`
|
|
Password string `db:"password"`
|
|
CreatedAt time.Time `db:"created_at"`
|
|
UpdatedAt time.Time `db:"updated_at"`
|
|
}
|
|
|
|
func (s *User) String() string {
|
|
return fmt.Sprint("User{ ",
|
|
"Id: ", s.Id, ", ",
|
|
"Email: ", s.Email, ", ",
|
|
"Password: ", s.Password, ", ",
|
|
"CreatedAt: ", s.CreatedAt, ", ",
|
|
"UpdatedAt: ", s.UpdatedAt, ", ",
|
|
"}")
|
|
}
|