Added Contacts, Essence Point to Models package. Next step migrations for this objects into psql.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type Contact struct {
|
||||
Id uuid.UUID `json:"id" gorm:"type:uuid;primaryKey;unique;AutoIncrement:false"`
|
||||
Email string `json:"email" gorm:"type:string"`
|
||||
Phone string `json:"phone" gorm:"type:string"`
|
||||
Address string `json:"address" gorm:"type:string"`
|
||||
Point Point `json:"point" gorm:"type:struct"`
|
||||
}
|
||||
Reference in New Issue
Block a user