26 lines
554 B
Go
26 lines
554 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Region struct {
|
|
ID uuid.UUID `db:"id" json:"id"`
|
|
Code string `db:"code" json:"code"`
|
|
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
|
}
|
|
|
|
type RegionTranslation struct {
|
|
RegionID uuid.UUID `db:"region_id" json:"region_id"`
|
|
Locale string `db:"locale" json:"locale"`
|
|
Name string `db:"name" json:"name"`
|
|
}
|
|
|
|
type RegionLocalized struct {
|
|
ID uuid.UUID `json:"id"`
|
|
Code string `json:"code"`
|
|
Name string `json:"name"`
|
|
}
|