Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contact ¶
type Contact struct { Model `storm:"inline"` OrganizationID bson.ObjectId `storm:"index"` DisplayName string FirstName string LastName string CompanyName string Addresses []ContactAddress `json:",omitempty"` Email string PhoneNumber string VATNumber string }
Contact organization contact
type ContactAddress ¶
type ContactAddress struct { Model `storm:"inline"` ContactID bson.ObjectId `storm:"index"` Address }
ContactAddress address of a Customer
type Invoice ¶
type Invoice struct { Model `storm:"inline"` OrganizationID bson.ObjectId `storm:"index"` Number string ContactID bson.ObjectId `storm:"index"` Contact *Contact Address VATNumber string Amount int64 CreatedAt time.Time UpdatedAt time.Time InvoiceDate time.Time `storm:"index"` DueDate time.Time `storm:"index"` PaidDate time.Time Details []InvoiceDetail Status string // contains filtered or unexported fields }
Invoice Invoice model
type InvoiceDetail ¶
InvoiceDetail detail line of an Invoice
type Organization ¶
type Organization struct { Model `storm:"inline"` Name string `storm:"unique"` Users []User `json:",omitempty"` }
Organization is the overarching entity over all the data
Click to show internal directories.
Click to hide internal directories.