block-accounting/backend/internal/pkg/models/organization.go
2024-05-29 01:57:31 +03:00

28 lines
549 B
Go

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)
}