Beispiel #1
0
// Copyright 2015 The recom Authors. All rights reserved.
// Use of this source code is governed by a GNU-style
// license that can be found in the LICENSE file.

package mod

import (
	"github.com/zhgo/db"
	"recom/backend/ent"
)

var pimBrand = db.NewTable("pim_brand", new(ent.PimBrand))

var pimColor = db.NewTable("pim_color", new(ent.PimColor))

var pimProduct = db.NewTable("pim_product", new(ent.PimProduct))

var pimSeries = db.NewTable("pim_series", new(ent.PimSeries))

var pimSize = db.NewTable("pim_size", new(ent.PimSize))

var pimSku = db.NewTable("pim_sku", new(ent.PimSku))

var pimTaxonomy = db.NewTable("pim_taxonomy", new(ent.PimTaxonomy))

type PimBrand struct {
	db.Model
}

type PimColor struct {
	db.Model
Beispiel #2
0
// Copyright 2015 The recom Authors. All rights reserved.
// Use of this source code is governed by a GNU-style
// license that can be found in the LICENSE file.

package mod

import (
	"github.com/zhgo/db"
	"recom/backend/ent"
)

var retCustomer = db.NewTable("ret_customer", new(ent.RetCustomer))

var retOrder = db.NewTable("ret_order", new(ent.RetOrder))

var retOrderSku = db.NewTable("ret_order_sku", new(ent.RetOrderSku))

type RetCustomer struct {
	db.Model
}

type RetOrder struct {
	db.Model
}

type RetOrderSku struct {
	db.Model
}

func NewRetCustomer() *RetCustomer {
	return &RetCustomer{Model: db.NewModel("Ret", retCustomer)}
Beispiel #3
0
// Copyright 2015 The recom Authors. All rights reserved.
// Use of this source code is governed by a GNU-style
// license that can be found in the LICENSE file.

package mod

import (
	"github.com/zhgo/db"
	"recom/backend/ent"
)

var invLog = db.NewTable("inv_log", new(ent.InvLog))

var invSku = db.NewTable("inv_sku", new(ent.InvSku))

var invWarehouse = db.NewTable("inv_warehouse", new(ent.InvWarehouse))

type InvLog struct {
	db.Model
}

type InvSku struct {
	db.Model
}

type InvWarehouse struct {
	db.Model
}

func NewInvLog() *InvLog {
	return &InvLog{Model: db.NewModel("Inv", invLog)}
Beispiel #4
0
// Copyright 2015 The recom Authors. All rights reserved.
// Use of this source code is governed by a GNU-style
// license that can be found in the LICENSE file.

package mod

import (
	"github.com/zhgo/db"
	"recom/backend/ent"
)

var srmOrder = db.NewTable("srm_order", new(ent.SrmOrder))

var srmOrderSku = db.NewTable("srm_order_sku", new(ent.SrmOrderSku))

var srmSupplier = db.NewTable("srm_supplier", new(ent.SrmSupplier))

type SrmOrder struct {
	db.Model
}

type SrmOrderSku struct {
	db.Model
}

type SrmSupplier struct {
	db.Model
}

func NewSrmOrder() *SrmOrder {
	return &SrmOrder{Model: db.NewModel("Srm", srmOrder)}
Beispiel #5
0
// Copyright 2015 The recom Authors. All rights reserved.
// Use of this source code is governed by a GNU-style
// license that can be found in the LICENSE file.

package mod

import (
	"github.com/zhgo/db"
	"recom/backend/ent"
)

var whlOrder = db.NewTable("whl_order", new(ent.WhlOrder))

var whlOrderSku = db.NewTable("whl_order_sku", new(ent.WhlOrderSku))

type WhlOrder struct {
	db.Model
}

type WhlOrderSku struct {
	db.Model
}

func NewWhlOrder() *WhlOrder {
	return &WhlOrder{Model: db.NewModel("Whl", whlOrder)}
}

func NewWhlOrderSku() *WhlOrderSku {
	return &WhlOrderSku{Model: db.NewModel("Whl", whlOrderSku)}
}
Beispiel #6
0
// Copyright 2015 The recom Authors. All rights reserved.
// Use of this source code is governed by a GNU-style
// license that can be found in the LICENSE file.

package mod

import (
    "github.com/zhgo/db"
    "recom/backend/ent"
)

var mrkChannel = db.NewTable("mrk_channel", new(ent.MrkChannel))

var mrkPrice = db.NewTable("mrk_price", new(ent.MrkPrice))

var mrkPromotion = db.NewTable("mrk_promotion", new(ent.MrkPromotion))

type MrkChannel struct {
    db.Model
}

type MrkPrice struct {
    db.Model
}

type MrkPromotion struct {
    db.Model
}

func NewMrkChannel() *MrkChannel {
    return &MrkChannel{Model: db.NewModel("Mrk", mrkChannel)}
Beispiel #7
0
// Copyright 2015 The recom Authors. All rights reserved.
// Use of this source code is governed by a GNU-style
// license that can be found in the LICENSE file.

package mod

import (
	"github.com/zhgo/db"
	"recom/backend/ent"
)

var idmAction = db.NewTable("idm_action", new(ent.IdmAction))

var idmLogin = db.NewTable("idm_login", new(ent.IdmLogin))

var idmRole = db.NewTable("idm_role", new(ent.IdmRole))

var idmRoleAction = db.NewTable("idm_role_action", new(ent.IdmRoleAction))

var idmUser = db.NewTable("idm_user", new(ent.IdmUser))

var idmUserRole = db.NewTable("idm_user_role", new(ent.IdmUserRole))

type IdmAction struct {
	db.Model
}

type IdmLogin struct {
	db.Model
}