23 lines
581 B
Go
23 lines
581 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
// Customer represents a full customer record.
|
|
type Customer struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Email string `json:"email"`
|
|
Phone string `json:"phone"`
|
|
Company string `json:"company"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// CustomerListItem is a lighter representation for list views.
|
|
type CustomerListItem struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Email string `json:"email"`
|
|
Company string `json:"company"`
|
|
}
|