block-accounting/backend/internal/pkg/models/organization.go

28 lines
549 B
Go
Raw Permalink Normal View History

2024-05-24 17:44:24 +00:00
package models
import (
"encoding/json"
"time"
"github.com/google/uuid"
)
type Organizations []*Organization
func (i *Organizations) MarshalBinary() ([]byte, error) {
return json.Marshal(i)
}
type Organization struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Address string `json:"addess"`
WalletSeed []byte `json:"wallet_seed"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
func (i *Organization) MarshalBinary() ([]byte, error) {
return json.Marshal(i)
}