import "github.com/mmanjoura/adsa-cms/qor-example/app/models"
address.go category.go chart.go collection.go color.go order.go product.go seo.go setting.go size.go store.go user.go
var ( OrderState = transition.New(&Order{}) ItemState = transition.New(&OrderItem{}) )
date format 2015-01-23
func SizeVariations() []SizeVariation
type Address struct { gorm.Model UserID uint ContactName string Phone string City string Address1 string Address2 string }
type Color struct { gorm.Model l10n.Locale publish.Status sorting.Sorting Name string Code string `l10n:"sync"` }
type ColorVariation struct { gorm.Model ProductID uint Product Product ColorID uint Color Color ColorCode string Images []ColorVariationImage SizeVariations []SizeVariation }
func (colorVariation ColorVariation) MainImageUrl() string
type ColorVariationImage struct { gorm.Model ColorVariationID uint Image ColorVariationImageStorage `sql:"type:varchar(4096)"` }
type ColorVariationImageStorage struct{ media_library.FileSystem }
func (ColorVariationImageStorage) GetSizes() map[string]media_library.Size
type FeeSetting struct { ShippingFee uint GiftWrappingFee uint CODFee uint `gorm:"column:cod_fee"` TaxRate int }
type Order struct { gorm.Model UserID uint User User PaymentAmount float32 AbandonedReason string DiscountValue uint TrackingNumber *string ShippedAt *time.Time CancelledAt *time.Time ShippingAddressID uint ShippingAddress Address BillingAddressID uint BillingAddress Address OrderItems []OrderItem transition.Transition }
type OrderItem struct { gorm.Model OrderID uint SizeVariationID uint SizeVariation SizeVariation Quantity uint Price float32 DiscountRate uint transition.Transition }
type Product struct { gorm.Model l10n.Locale publish.Status sorting.SortingDESC Name string NameWithSlug slug.Slug `l10n:"sync"` Code string `l10n:"sync"` CategoryID uint `l10n:"sync"` Category Category `l10n:"sync"` Collections []Collection `l10n:"sync" gorm:"many2many:product_collections;ForeignKey:id;AssociationForeignKey:id"` CollectionsSorter sorting.SortableCollection MadeCountry string `l10n:"sync"` Price float32 `l10n:"sync"` Description string `sql:"size:2000"` ColorVariations []ColorVariation `l10n:"sync"` ColorVariationsSorter sorting.SortableCollection Enabled bool }
type SEOSetting struct { gorm.Model l10n.Locale SiteName string DefaultPage seo.Setting HomePage seo.Setting ProductPage seo.Setting `seo:"Name,Code"` }
type Setting struct { gorm.Model FeeSetting location.Location `location:"name:Company Address"` l10n.Locale }
type Size struct { gorm.Model l10n.Locale publish.Status sorting.Sorting Name string Code string `l10n:"sync"` }
type SizeVariation struct { gorm.Model ColorVariationID uint ColorVariation ColorVariation SizeID uint Size Size AvailableQuantity uint }
func (sizeVariation SizeVariation) Stringify() string
type Store struct { gorm.Model Name string Phone string Email string location.Location sorting.Sorting }
type User struct { gorm.Model Email string Password string Name string Gender string Role string Addresses []Address // Confirm ConfirmToken string Confirmed bool // Recover RecoverToken string RecoverTokenExpiry *time.Time }
Package models imports 16 packages (graph) and is imported by 5 packages. Updated 2017-06-20. Refresh now. Tools for package owners.