14 lines
377 B
Go
14 lines
377 B
Go
package models
|
|
|
|
// Contact represents a contact entity
|
|
type Contact struct {
|
|
// ID is the unique identifier for the contact
|
|
ID int `json:"id" db:"id"`
|
|
// Name of the contact
|
|
Name string `json:"name" db:"name"`
|
|
// Company the contact works for
|
|
Company string `json:"company" db:"company"`
|
|
// Phone number in international format
|
|
Phone string `json:"phone" db:"phone"`
|
|
}
|