Documentation ¶ Index ¶ func Preset1(db *gorm.DB) (r *presets.Builder) type Company type CreditCard type Customer func (c *Customer) PageTitle() string type Event type Language func (l *Language) PrimaryColumnValuesBySlug(slug string) map[string]string func (l *Language) PrimarySlug() string type Note type Payment type Product type Thumb Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Preset1 ¶ func Preset1(db *gorm.DB) (r *presets.Builder) Types ¶ type Company ¶ type Company struct { ID int Name string } type CreditCard ¶ type CreditCard struct { ID int CustomerID int Number string ExpireYearMonth string Name string Type string Phone string Email string } type Customer ¶ type Customer struct { ID int Name string Email string Description string Thumb1 *Thumb `gorm:"-"` CompanyID int CreatedAt time.Time UpdatedAt time.Time ApprovedAt *time.Time TermAgreedAt *time.Time ApprovalComment string LanguageCode string Events []*Event `gorm:"-"` } func (*Customer) PageTitle ¶ func (c *Customer) PageTitle() string type Event ¶ type Event struct { ID int SourceType string // Payment, Customer SourceID int CreatedAt time.Time Type string Description string } type Language ¶ type Language struct { Code string `gorm:"unique;not null"` Name string } func (*Language) PrimaryColumnValuesBySlug ¶ func (l *Language) PrimaryColumnValuesBySlug(slug string) map[string]string func (*Language) PrimarySlug ¶ func (l *Language) PrimarySlug() string type Note ¶ type Note struct { ID int SourceType string SourceID int Content string CreatedAt time.Time UpdatedAt time.Time } type Payment ¶ type Payment struct { ID int CustomerID int CurrencyCode string Amount int PaymentMethodID int StatementDescription string Description string AuthorizeOnly bool CreatedAt time.Time } type Product ¶ type Product struct { ID int Name string OwnerName string } type Thumb ¶ type Thumb struct { Name string } Source Files ¶ View all Source files setup.go Directories ¶ Show internal Expand all Path Synopsis presets-example-main Click to show internal directories. Click to hide internal directories.