adsa-cms: github.com/mmanjoura/adsa-cms/qor-example/db/seeds Index | Files

package seeds

import "github.com/mmanjoura/adsa-cms/qor-example/db/seeds"

Index

Package Files

seeds.go

Variables

var Fake *faker.Faker
var Seeds = struct {
    Categories []struct {
        Name string
    }
    Collections []struct {
        Name string
    }
    Colors []struct {
        Name string
        Code string
    }
    Sizes []struct {
        Name string
        Code string
    }
    Products []struct {
        CategoryName string
        Collections  []struct {
            Name string
        }
        Name          string
        ZhName        string
        NameWithSlug  string
        Code          string
        Price         float32
        Description   string
        ZhDescription string
        MadeCountry   string
        ZhMadeCountry string

        ColorVariations []struct {
            ColorName string
            ColorCode string
            Images    []struct {
                URL string
            }
        }
        SizeVariations []struct {
            SizeName string
        }
    }
    Stores []struct {
        Name      string
        Phone     string
        Email     string
        Country   string
        Zip       string
        City      string
        Region    string
        Address   string
        Latitude  float64
        Longitude float64
    }
    Setting struct {
        ShippingFee     uint
        GiftWrappingFee uint
        CODFee          uint `gorm:"column:cod_fee"`
        TaxRate         int
        Address         string
        City            string
        Region          string
        Country         string
        Zip             string
        Latitude        float64
        Longitude       float64
    }
    Seo struct {
        SiteName    string
        DefaultPage struct {
            Title       string
            Description string
            Keywords    string
        }
        HomePage struct {
            Title       string
            Description string
            Keywords    string
        }
        ProductPage struct {
            Title       string
            Description string
            Keywords    string
        }
    }
    Enterprises []struct {
        Name           string
        Begins         string
        Expires        string
        RequiresCoupon bool
        Unique         bool

        Coupons []struct {
            Code string
        }
        Rules []struct {
            Kind  string
            Value string
        }
        Benefits []struct {
            Kind  string
            Value string
        }
    }
}{}

func TruncateTables Uses

func TruncateTables(tables ...interface{})

Package seeds imports 7 packages (graph). Updated 2017-06-20. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).