'routing, searching, fixes'
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"openapi": "3.0.3",
|
||||
"info": {
|
||||
"title": "b2b API",
|
||||
"description": "Authentication, user management, and repository time tracking API\n\n## Filter Operators\nAll filter parameters support the following operators by adding a suffix to the parameter name:\n\n| Suffix | Operator | Example |\n|--------|----------|---------|\n| `_eq` | equals | `product_id_eq=12` |\n| `_neq` | not equals | `active_neq=0` |\n| `_gt` | greater than | `price_gt=100` |\n| `_gte` | greater than or equal | `price_gte=10` |\n| `_lt` | less than | `price_lt=500` |\n| `_lte` | less than or equal | `price_lte=500` |\n| `_in` | IN (comma-separated) | `product_id_in=1,2,3,4` |\n\n## Special Filters\n\n| Parameter | Example | Description |\n|-----------|---------|-------------|\n| `name=~text` | `name=~gold` | LIKE search (case-insensitive partial match) |\n| `price=[min,max]` | `price=[100,500]` | BETWEEN range (inclusive) |\n| `sort=field,direction` | `sort=price,desc` | ORDER BY clause (direction: asc/desc, default: desc) |\n| `p` | `p=1` | Page number (1-based, default: 1) |\n| `elems` | `elems=30` | Elements per page (max: 100, default: 30) |",
|
||||
"description": "Authentication, user management, and repository time tracking API\n\n## Filtering\nAll filter parameters support the following operators by adding a suffix to the parameter name:\n\n### Comparison Operators\n\n| Suffix | Operator | Example | Description |\n|--------|----------|---------|-------------|\n| `_eq` | = | `product_id_eq=12` | Equals |\n| `_neq` | != | `active_neq=0` | Not equals |\n| `_gt` | > | `price_gt=100` | Greater than |\n| `_gte` | >= | `price_gte=10` | Greater than or equal |\n| `_lt` | < | `price_lt=500` | Less than |\n| `_lte` | <= | `price_lte=500` | Less than or equal |\n| `_in` | IN | `product_id_in=1,2,3,4` | IN clause (comma-separated values) |\n\n### Special Filters\n\n| Filter | Example | Description |\n|--------|---------|-------------|\n| `~` prefix | `name=~gold` | LIKE search - case-insensitive partial match on string values |\n| `[min,max]` | `price=[100,500]` | BETWEEN range - filters values between min and max (inclusive) |\n| `sort` | `sort=price,desc` | ORDER BY clause - field name and direction (asc/desc, default: desc) |\n| `p` | `p=1` | Page number - 1-based pagination (default: 1) |\n| `elems` | `elems=30` | Elements per page - results per page (max: 100, default: 30) |\n\n### Available Fields for Filtering\n\n**Products (`/api/v1/restricted/list-products/get-listing`):**\n\n| Field | Type | Example |\n|-------|------|---------|\n| `product_id` | integer | `product_id_eq=12`, `product_id_in=1,2,3` |\n| `name` | string | `name=~gold` (LIKE search) |\n| `reference` | string | `reference=ABC123` |\n| `category_name` | string | `category_name=~electronics` |\n| `id_category` | integer | `id_category_eq=5`, `id_category_in=1,2,3` |\n| `quantity` | integer | `quantity_gt=0` |\n| `variants_number` | integer | `variants_number_gte=1` |",
|
||||
"version": "1.0.0",
|
||||
"contact": {
|
||||
"name": "API Support",
|
||||
@@ -42,7 +42,7 @@
|
||||
},
|
||||
{
|
||||
"name": "Search",
|
||||
"description": "MeiliSearch endpoints (under /api/v1/restricted/meili-search, requires authentication)"
|
||||
"description": "MeiliSearch endpoints (under /api/v1/restricted/search, requires authentication)"
|
||||
},
|
||||
{
|
||||
"name": "Locale",
|
||||
@@ -585,6 +585,35 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/restricted/search/settings": {
|
||||
"post": {
|
||||
"tags": ["Search"],
|
||||
"summary": "Get MeiliSearch settings",
|
||||
"description": "Returns MeiliSearch index configuration and settings. Requires authentication.",
|
||||
"operationId": "getMeiliSearchSettings",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Settings retrieved successfully"
|
||||
},
|
||||
"401": {
|
||||
"description": "Not authenticated",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/public/auth/me": {
|
||||
"get": {
|
||||
"tags": ["Auth"],
|
||||
@@ -593,7 +622,8 @@
|
||||
"operationId": "getMe",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -633,7 +663,8 @@
|
||||
"operationId": "updateChoice",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -788,18 +819,19 @@
|
||||
"get": {
|
||||
"tags": ["Products"],
|
||||
"summary": "Get product listing",
|
||||
"description": "Returns a paginated list of products with their basic information. Supports filtering via query parameters with operators (e.g., product_id_eq=12, name=~wałek). Use sort parameter for ordering. Requires authentication.",
|
||||
"description": "Returns a paginated list of products with their basic information. Supports filtering via query parameters with operators (e.g., product_id_eq=12, name=~wałek, quantity_gt=0). Use sort parameter for ordering. Requires authentication.\n\n### Filterable Fields\n- `product_id` - Product ID (integer)\n- `name` - Product name (string, supports LIKE with ~ prefix)\n- `reference` - Product reference (string)\n- `category_name` - Category name (string, supports LIKE with ~ prefix)\n- `id_category` - Category ID (integer)\n- `quantity` - Stock quantity (integer)\n- `variants_number` - Number of variants (integer)\n\n### Example Requests\n```\nGET /api/v1/restricted/list-products/get-listing?product_id_eq=12\nGET /api/v1/restricted/list-products/get-listing?name=~wałek&sort=price,asc\nGET /api/v1/restricted/list-products/get-listing?quantity_gt=0&elems=50&p=2\n```",
|
||||
"operationId": "getProductListing",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "p",
|
||||
"in": "query",
|
||||
"description": "Page number (1-based)",
|
||||
"description": "Page number (1-based, default: 1)",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
@@ -819,66 +851,12 @@
|
||||
{
|
||||
"name": "sort",
|
||||
"in": "query",
|
||||
"description": "Sort field and direction. Format: field,direction (e.g., 'product_id,desc' or 'name,asc')",
|
||||
"description": "Sort order: field,direction (direction: asc/desc, default: desc). Sortable fields: product_id, name, reference, category_name, id_category, quantity, variants_number",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"example": "product_id,desc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "product_id",
|
||||
"in": "query",
|
||||
"description": "Filter by product ID. Use suffix _eq, _gt, _gte, _lt, _lte, _neq, _in for operators.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"in": "query",
|
||||
"description": "Filter by product name using LIKE (case-insensitive). Use ~ prefix for partial match (e.g., '~wałek')",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "reference",
|
||||
"in": "query",
|
||||
"description": "Filter by product reference using LIKE (case-insensitive)",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "id_category",
|
||||
"in": "query",
|
||||
"description": "Filter by category ID. Use suffix _eq, _gt, _gte, _lt, _lte, _neq, _in for operators.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "category_name",
|
||||
"in": "query",
|
||||
"description": "Filter by category name using LIKE (case-insensitive)",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "quantity",
|
||||
"in": "query",
|
||||
"description": "Filter by quantity. Use suffix _eq, _gt, _gte, _lt, _lte for operators.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -923,7 +901,8 @@
|
||||
"operationId": "getProductDescription",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -990,7 +969,8 @@
|
||||
"operationId": "saveProductDescription",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -1067,7 +1047,8 @@
|
||||
"operationId": "translateProductDescription",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -1154,7 +1135,8 @@
|
||||
"operationId": "getMenu",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -1191,17 +1173,12 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/restricted/menu/get-routes": {
|
||||
"/api/v1/public/menu/get-routes": {
|
||||
"get": {
|
||||
"tags": ["Menu"],
|
||||
"summary": "Get routes",
|
||||
"description": "Returns the routing structure for the current language. Requires authentication.",
|
||||
"description": "Returns the routing structure for the current language.",
|
||||
"operationId": "getRoutes",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Routes retrieved successfully",
|
||||
@@ -1222,130 +1199,25 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Not authenticated",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/restricted/meili-search/search": {
|
||||
"/api/v1/restricted/menu/get-top-menu": {
|
||||
"get": {
|
||||
"tags": ["Search"],
|
||||
"summary": "Search products",
|
||||
"description": "Searches products using MeiliSearch. Requires authentication.",
|
||||
"operationId": "searchProducts",
|
||||
"tags": ["Menu"],
|
||||
"summary": "Get top menu",
|
||||
"description": "Returns the top-level menu items for the current language. Requires authentication.",
|
||||
"operationId": "getTopMenu",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "query",
|
||||
"in": "query",
|
||||
"description": "Search query string",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "limit",
|
||||
"in": "query",
|
||||
"description": "Maximum number of results",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "uint"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "id_category",
|
||||
"in": "query",
|
||||
"description": "Filter by category ID",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "uint"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "price_lower_bound",
|
||||
"in": "query",
|
||||
"description": "Lower price bound",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "price_upper_bound",
|
||||
"in": "query",
|
||||
"description": "Upper price bound",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
}
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Search results retrieved successfully",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ApiResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Invalid request parameters",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Not authenticated",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/restricted/meili-search/create-index": {
|
||||
"get": {
|
||||
"tags": ["Search"],
|
||||
"summary": "Create search index",
|
||||
"description": "Creates a MeiliSearch index for products. Must be removed before proper release.",
|
||||
"operationId": "createSearchIndex",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Index created successfully",
|
||||
"description": "Top menu retrieved successfully",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
@@ -1377,20 +1249,71 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/restricted/meili-search/test": {
|
||||
"get": {
|
||||
"/api/v1/restricted/search/search": {
|
||||
"post": {
|
||||
"tags": ["Search"],
|
||||
"summary": "Test MeiliSearch",
|
||||
"description": "Tests the MeiliSearch search. Must be removed before proper release.",
|
||||
"operationId": "testMeiliSearch",
|
||||
"summary": "Search products",
|
||||
"description": "Searches products using MeiliSearch. Requires authentication. Request body should contain MeiliSearch search parameters.",
|
||||
"operationId": "searchProducts",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"description": "MeiliSearch search parameters (query, limit, filter, etc.)"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Search results retrieved successfully"
|
||||
},
|
||||
"400": {
|
||||
"description": "Invalid request body",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Not authenticated",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v1/restricted/search/create-index": {
|
||||
"get": {
|
||||
"tags": ["Search"],
|
||||
"summary": "Create search index",
|
||||
"description": "Creates a MeiliSearch index for products. Must be removed before proper release.",
|
||||
"operationId": "createSearchIndex",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "MeiliSearch test successful",
|
||||
"description": "Index created successfully",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
@@ -1430,7 +1353,8 @@
|
||||
"operationId": "getAvailableLanguages",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -1475,7 +1399,8 @@
|
||||
"operationId": "getCountriesAndCurrencies",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -1520,7 +1445,8 @@
|
||||
"operationId": "addNewCart",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -1555,7 +1481,8 @@
|
||||
"operationId": "changeCartName",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -1620,7 +1547,8 @@
|
||||
"operationId": "retrieveCartsInfo",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -1655,7 +1583,8 @@
|
||||
"operationId": "retrieveCart",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -1711,7 +1640,8 @@
|
||||
"operationId": "addProductToCart",
|
||||
"security": [
|
||||
{
|
||||
"CookieAuth": []
|
||||
"CookieAuth": [],
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
|
||||
@@ -24,6 +24,7 @@ type Config struct {
|
||||
GoogleTranslate GoogleTranslateConfig
|
||||
Image ImageConfig
|
||||
Cors CorsConfig
|
||||
MailiSearch MeiliSearchConfig
|
||||
}
|
||||
|
||||
type I18n struct {
|
||||
@@ -38,6 +39,11 @@ type CorsConfig struct {
|
||||
Origins []string `env:"CORS_ORGIN"`
|
||||
}
|
||||
|
||||
type MeiliSearchConfig struct {
|
||||
ServerURL string `env:"MEILISEARCH_URL"`
|
||||
ApiKey string `env:"MEILISEARCH_API_KEY"`
|
||||
}
|
||||
|
||||
type ImageConfig struct {
|
||||
ImagePrefix string `env:"IMAGE_PREFIX"`
|
||||
}
|
||||
@@ -186,6 +192,12 @@ func load() *Config {
|
||||
if err != nil {
|
||||
slog.Error("not possible to load env variables for google translate : ", err.Error(), "")
|
||||
}
|
||||
|
||||
err = loadEnv(&cfg.MailiSearch)
|
||||
if err != nil {
|
||||
slog.Error("not possible to load env variables for google translate : ", err.Error(), "")
|
||||
}
|
||||
|
||||
return cfg
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
|
||||
"git.ma-al.com/goc_daniel/b2b/app/config"
|
||||
|
||||
extraClausePlugin "github.com/WinterYukky/gorm-extra-clause-plugin"
|
||||
"gorm.io/driver/mysql"
|
||||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/logger"
|
||||
@@ -52,7 +53,10 @@ func newMySQLDB(cfg *config.DatabaseConfig) (*gorm.DB, error) {
|
||||
sqlDB.SetConnMaxLifetime(cfg.ConnMaxLifetime)
|
||||
|
||||
log.Println("✓ Database connection established successfully")
|
||||
|
||||
err = db.Use(extraClausePlugin.New())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return db, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
"git.ma-al.com/goc_daniel/b2b/app/config"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/model"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/service/authService"
|
||||
constdata "git.ma-al.com/goc_daniel/b2b/app/utils/const_data"
|
||||
|
||||
"github.com/gofiber/fiber/v3"
|
||||
)
|
||||
@@ -60,8 +61,8 @@ func AuthMiddleware() fiber.Handler {
|
||||
}
|
||||
|
||||
// Set user in context
|
||||
c.Locals("user", user.ToSession())
|
||||
c.Locals("userID", user.ID)
|
||||
c.Locals(constdata.USER_LOCALES_NAME, user.ToSession())
|
||||
c.Locals(constdata.USER_LOCALES_ID, user.ID)
|
||||
|
||||
return c.Next()
|
||||
}
|
||||
|
||||
45
app/delivery/web/api/public/routing.go
Normal file
45
app/delivery/web/api/public/routing.go
Normal file
@@ -0,0 +1,45 @@
|
||||
package public
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_daniel/b2b/app/service/menuService"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/utils/i18n"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/utils/nullable"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/utils/response"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/utils/responseErrors"
|
||||
"github.com/gofiber/fiber/v3"
|
||||
)
|
||||
|
||||
type RoutingHandler struct {
|
||||
menuService *menuService.MenuService
|
||||
}
|
||||
|
||||
func NewRoutingHandler() *RoutingHandler {
|
||||
menuService := menuService.New()
|
||||
return &RoutingHandler{
|
||||
menuService: menuService,
|
||||
}
|
||||
}
|
||||
|
||||
// AuthHandlerRoutes registers all auth routes
|
||||
func RoutingHandlerRoutes(r fiber.Router) fiber.Router {
|
||||
handler := NewRoutingHandler()
|
||||
|
||||
r.Get("/get-routes", handler.GetRouting)
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
func (h *RoutingHandler) GetRouting(c fiber.Ctx) error {
|
||||
lang_id, ok := c.Locals("langID").(uint)
|
||||
if !ok {
|
||||
return c.Status(responseErrors.GetErrorStatus(responseErrors.ErrBadAttribute)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, responseErrors.ErrBadAttribute)))
|
||||
}
|
||||
menu, err := h.menuService.GetRoutes(lang_id)
|
||||
if err != nil {
|
||||
return c.Status(responseErrors.GetErrorStatus(err)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, err)))
|
||||
}
|
||||
|
||||
return c.JSON(response.Make(&menu, 0, i18n.T_(c, response.Message_OK)))
|
||||
}
|
||||
@@ -60,8 +60,8 @@ func (h *ListProductsHandler) GetListing(c fiber.Ctx) error {
|
||||
var columnMappingGetListing map[string]string = map[string]string{
|
||||
"product_id": "ps.id_product",
|
||||
"name": "pl.name",
|
||||
"reference": "ps.reference",
|
||||
"reference": "p.reference",
|
||||
"category_name": "cl.name",
|
||||
"id_category": "cp.id_category",
|
||||
"category_id": "cp.id_category",
|
||||
"quantity": "sa.quantity",
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ func MenuHandlerRoutes(r fiber.Router) fiber.Router {
|
||||
handler := NewMenuHandler()
|
||||
|
||||
r.Get("/get-menu", handler.GetMenu)
|
||||
r.Get("/get-routes", handler.GetRouting)
|
||||
r.Get("/get-top-menu", handler.GetTopMenu)
|
||||
|
||||
return r
|
||||
}
|
||||
@@ -44,17 +44,17 @@ func (h *MenuHandler) GetMenu(c fiber.Ctx) error {
|
||||
return c.JSON(response.Make(&menu, 0, i18n.T_(c, response.Message_OK)))
|
||||
}
|
||||
|
||||
func (h *MenuHandler) GetRouting(c fiber.Ctx) error {
|
||||
func (h *MenuHandler) GetTopMenu(c fiber.Ctx) error {
|
||||
lang_id, ok := c.Locals("langID").(uint)
|
||||
if !ok {
|
||||
return c.Status(responseErrors.GetErrorStatus(responseErrors.ErrBadAttribute)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, responseErrors.ErrBadAttribute)))
|
||||
}
|
||||
menu, err := h.menuService.GetRoutes(lang_id)
|
||||
menu, err := h.menuService.GetTopMenu(lang_id)
|
||||
if err != nil {
|
||||
return c.Status(responseErrors.GetErrorStatus(err)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, err)))
|
||||
}
|
||||
|
||||
return c.JSON(response.Make(&menu, 0, i18n.T_(c, response.Message_OK)))
|
||||
return c.JSON(response.Make(&menu, len(menu), i18n.T_(c, response.Message_OK)))
|
||||
}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package restricted
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"git.ma-al.com/goc_daniel/b2b/app/service/meiliService"
|
||||
searchservice "git.ma-al.com/goc_daniel/b2b/app/service/searchService"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/utils/i18n"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/utils/nullable"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/utils/response"
|
||||
@@ -12,25 +14,23 @@ import (
|
||||
)
|
||||
|
||||
type MeiliSearchHandler struct {
|
||||
meiliService *meiliService.MeiliService
|
||||
meiliService *meiliService.MeiliService
|
||||
searchService *searchservice.SearchService
|
||||
}
|
||||
|
||||
func NewMeiliSearchHandler() *MeiliSearchHandler {
|
||||
meiliService := meiliService.New()
|
||||
return &MeiliSearchHandler{
|
||||
meiliService: meiliService,
|
||||
meiliService: meiliService.New(),
|
||||
searchService: searchservice.New(),
|
||||
}
|
||||
}
|
||||
|
||||
func MeiliSearchHandlerRoutes(r fiber.Router) fiber.Router {
|
||||
handler := NewMeiliSearchHandler()
|
||||
|
||||
// for testing purposes only. Must be removed before proper release.
|
||||
r.Get("/create-index", handler.CreateIndex)
|
||||
r.Get("/test", handler.Test)
|
||||
|
||||
// for all users
|
||||
r.Get("/search", handler.Search)
|
||||
r.Post("/search", handler.Search)
|
||||
r.Post("/settings", handler.GetSettings)
|
||||
|
||||
return r
|
||||
}
|
||||
@@ -44,6 +44,7 @@ func (h *MeiliSearchHandler) CreateIndex(c fiber.Ctx) error {
|
||||
|
||||
err := h.meiliService.CreateIndex(id_lang)
|
||||
if err != nil {
|
||||
fmt.Printf("CreateIndex error: %v\n", err)
|
||||
return c.Status(responseErrors.GetErrorStatus(err)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, err)))
|
||||
}
|
||||
@@ -52,22 +53,6 @@ func (h *MeiliSearchHandler) CreateIndex(c fiber.Ctx) error {
|
||||
return c.JSON(response.Make(¬hing, 0, i18n.T_(c, response.Message_OK)))
|
||||
}
|
||||
|
||||
func (h *MeiliSearchHandler) Test(c fiber.Ctx) error {
|
||||
id_lang, ok := c.Locals("langID").(uint)
|
||||
if !ok {
|
||||
return c.Status(responseErrors.GetErrorStatus(responseErrors.ErrBadAttribute)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, responseErrors.ErrBadAttribute)))
|
||||
}
|
||||
|
||||
test, err := h.meiliService.Test(id_lang)
|
||||
if err != nil {
|
||||
return c.Status(responseErrors.GetErrorStatus(err)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, err)))
|
||||
}
|
||||
|
||||
return c.JSON(response.Make(&test, 0, i18n.T_(c, response.Message_OK)))
|
||||
}
|
||||
|
||||
func (h *MeiliSearchHandler) Search(c fiber.Ctx) error {
|
||||
id_lang, ok := c.Locals("langID").(uint)
|
||||
if !ok {
|
||||
@@ -75,41 +60,47 @@ func (h *MeiliSearchHandler) Search(c fiber.Ctx) error {
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, responseErrors.ErrBadAttribute)))
|
||||
}
|
||||
|
||||
query := c.Query("query")
|
||||
index := meiliService.GetIndexName(id_lang)
|
||||
|
||||
limit_attribute := c.Query("limit")
|
||||
limit, err := strconv.Atoi(limit_attribute)
|
||||
if err != nil {
|
||||
return c.Status(responseErrors.GetErrorStatus(responseErrors.ErrBadAttribute)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, responseErrors.ErrBadAttribute)))
|
||||
var body map[string]interface{}
|
||||
if err := json.Unmarshal(c.Body(), &body); err != nil {
|
||||
return c.Status(responseErrors.GetErrorStatus(responseErrors.ErrInvalidBody)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, responseErrors.ErrInvalidBody)))
|
||||
}
|
||||
|
||||
id_category_attribute := c.Query("id_category", "0")
|
||||
id_category, err := strconv.Atoi(id_category_attribute)
|
||||
if err != nil {
|
||||
return c.Status(responseErrors.GetErrorStatus(responseErrors.ErrBadAttribute)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, responseErrors.ErrBadAttribute)))
|
||||
}
|
||||
|
||||
price_lower_bound_attribute := c.Query("price_lower_bound", "-1.0")
|
||||
price_lower_bound, err := strconv.ParseFloat(price_lower_bound_attribute, 64)
|
||||
if err != nil {
|
||||
return c.Status(responseErrors.GetErrorStatus(responseErrors.ErrBadAttribute)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, responseErrors.ErrBadAttribute)))
|
||||
}
|
||||
|
||||
price_upper_bound_attribute := c.Query("price_upper_bound", "-1.0")
|
||||
price_upper_bound, err := strconv.ParseFloat(price_upper_bound_attribute, 64)
|
||||
if err != nil {
|
||||
return c.Status(responseErrors.GetErrorStatus(responseErrors.ErrBadAttribute)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, responseErrors.ErrBadAttribute)))
|
||||
}
|
||||
|
||||
meili_response, err := h.meiliService.Search(id_lang, query, uint(limit), uint(id_category), price_lower_bound, price_upper_bound)
|
||||
result, err := h.searchService.Search(index, c.Body(), id_lang)
|
||||
if err != nil {
|
||||
return c.Status(responseErrors.GetErrorStatus(err)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, err)))
|
||||
}
|
||||
|
||||
return c.JSON(response.Make(&meili_response, 0, i18n.T_(c, response.Message_OK)))
|
||||
if h.searchService.IsIndexNotFound(result.Body) {
|
||||
if createErr := h.meiliService.CreateIndex(id_lang); createErr == nil {
|
||||
result, err = h.searchService.Search(index, c.Body(), id_lang)
|
||||
if err != nil {
|
||||
return c.Status(responseErrors.GetErrorStatus(err)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, err)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return c.Status(result.StatusCode).Send(result.Body)
|
||||
}
|
||||
|
||||
func (h *MeiliSearchHandler) GetSettings(c fiber.Ctx) error {
|
||||
id_lang, ok := c.Locals("langID").(uint)
|
||||
if !ok {
|
||||
return c.Status(responseErrors.GetErrorStatus(responseErrors.ErrBadAttribute)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, responseErrors.ErrBadAttribute)))
|
||||
}
|
||||
|
||||
index := meiliService.GetIndexName(id_lang)
|
||||
|
||||
result, err := h.searchService.GetIndexSettings(index)
|
||||
if err != nil {
|
||||
return c.Status(responseErrors.GetErrorStatus(err)).
|
||||
JSON(response.Make(nullable.GetNil(""), 0, responseErrors.GetErrorCode(c, err)))
|
||||
}
|
||||
|
||||
return c.Status(result.StatusCode).Send(result.Body)
|
||||
}
|
||||
@@ -16,9 +16,7 @@ import (
|
||||
"git.ma-al.com/goc_daniel/b2b/app/delivery/web/api/restricted"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/delivery/web/general"
|
||||
|
||||
// "github.com/gofiber/fiber/v2/middleware/filesystem"
|
||||
"github.com/gofiber/fiber/v3"
|
||||
// "github.com/gofiber/fiber/v3/middleware/filesystem"
|
||||
"github.com/gofiber/fiber/v3/middleware/logger"
|
||||
"github.com/gofiber/fiber/v3/middleware/recover"
|
||||
)
|
||||
@@ -89,6 +87,9 @@ func (s *Server) Setup() error {
|
||||
auth := s.public.Group("/auth")
|
||||
public.AuthHandlerRoutes(auth)
|
||||
|
||||
menuRouting := s.public.Group("/menu")
|
||||
public.RoutingHandlerRoutes(menuRouting)
|
||||
|
||||
// product translation routes (restricted)
|
||||
productTranslation := s.restricted.Group("/product-translation")
|
||||
restricted.ProductTranslationHandlerRoutes(productTranslation)
|
||||
@@ -107,7 +108,7 @@ func (s *Server) Setup() error {
|
||||
restricted.MenuHandlerRoutes(menu)
|
||||
|
||||
// meili search (restricted)
|
||||
meiliSearch := s.restricted.Group("/meili-search")
|
||||
meiliSearch := s.restricted.Group("/search")
|
||||
restricted.MeiliSearchHandlerRoutes(meiliSearch)
|
||||
|
||||
// carts (restricted)
|
||||
|
||||
@@ -79,6 +79,7 @@ type UserSession struct {
|
||||
Role CustomerRole `json:"role"`
|
||||
LangID uint `json:"lang_id"`
|
||||
CountryID uint `json:"country_id"`
|
||||
IsActive bool `json:"is_active"`
|
||||
}
|
||||
|
||||
// ToSession converts User to UserSession
|
||||
@@ -89,6 +90,7 @@ func (u *Customer) ToSession() *UserSession {
|
||||
Role: u.Role,
|
||||
LangID: u.LangID,
|
||||
CountryID: u.CountryID,
|
||||
IsActive: u.IsActive,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAccess = "ps_access"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsAccess struct {
|
||||
func (*PsAccess) TableName() string {
|
||||
return TableNamePsAccess
|
||||
}
|
||||
|
||||
var PsAccessCols = struct {
|
||||
IDProfile gormcol.Field
|
||||
IDAuthorizationRole gormcol.Field
|
||||
}{
|
||||
IDProfile: gormcol.Field{}.Set((&PsAccess{}).TableName(), "id_profile"),
|
||||
IDAuthorizationRole: gormcol.Field{}.Set((&PsAccess{}).TableName(), "id_authorization_role"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAccessory = "ps_accessory"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsAccessory struct {
|
||||
func (*PsAccessory) TableName() string {
|
||||
return TableNamePsAccessory
|
||||
}
|
||||
|
||||
var PsAccessoryCols = struct {
|
||||
IDProduct1 gormcol.Field
|
||||
IDProduct2 gormcol.Field
|
||||
}{
|
||||
IDProduct1: gormcol.Field{}.Set((&PsAccessory{}).TableName(), "id_product_1"),
|
||||
IDProduct2: gormcol.Field{}.Set((&PsAccessory{}).TableName(), "id_product_2"),
|
||||
}
|
||||
98
app/model/dbmodel/ps_address.go
Normal file
98
app/model/dbmodel/ps_address.go
Normal file
@@ -0,0 +1,98 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsAddress = "ps_address"
|
||||
|
||||
// PsAddress mapped from table <ps_address>
|
||||
type PsAddress struct {
|
||||
IDAddress int32 `gorm:"column:id_address;primaryKey;autoIncrement:true" json:"id_address"`
|
||||
IDCountry int32 `gorm:"column:id_country;not null;index:id_country,priority:1" json:"id_country"`
|
||||
IDState *int32 `gorm:"column:id_state;index:id_state,priority:1" json:"id_state"`
|
||||
IDCustomer int32 `gorm:"column:id_customer;not null;index:address_customer,priority:1" json:"id_customer"`
|
||||
IDManufacturer int32 `gorm:"column:id_manufacturer;not null;index:id_manufacturer,priority:1" json:"id_manufacturer"`
|
||||
IDSupplier int32 `gorm:"column:id_supplier;not null;index:id_supplier,priority:1" json:"id_supplier"`
|
||||
IDWarehouse int32 `gorm:"column:id_warehouse;not null;index:id_warehouse,priority:1" json:"id_warehouse"`
|
||||
Alias string `gorm:"column:alias;not null" json:"alias"`
|
||||
Company *string `gorm:"column:company" json:"company"`
|
||||
Lastname string `gorm:"column:lastname;not null" json:"lastname"`
|
||||
Firstname string `gorm:"column:firstname;not null" json:"firstname"`
|
||||
Address1 string `gorm:"column:address1;not null" json:"address1"`
|
||||
Address2 *string `gorm:"column:address2" json:"address2"`
|
||||
Postcode *string `gorm:"column:postcode" json:"postcode"`
|
||||
City string `gorm:"column:city;not null" json:"city"`
|
||||
Other *string `gorm:"column:other" json:"other"`
|
||||
Phone *string `gorm:"column:phone" json:"phone"`
|
||||
PhoneMobile *string `gorm:"column:phone_mobile" json:"phone_mobile"`
|
||||
VatNumber *string `gorm:"column:vat_number" json:"vat_number"`
|
||||
Dni *string `gorm:"column:dni" json:"dni"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
Active bool `gorm:"column:active;not null;default:1" json:"active"`
|
||||
Deleted bool `gorm:"column:deleted;not null" json:"deleted"`
|
||||
IsNovat int32 `gorm:"column:is_novat;not null" json:"is_novat"`
|
||||
}
|
||||
|
||||
// TableName PsAddress's table name
|
||||
func (*PsAddress) TableName() string {
|
||||
return TableNamePsAddress
|
||||
}
|
||||
|
||||
var PsAddressCols = struct {
|
||||
IDAddress gormcol.Field
|
||||
IDCountry gormcol.Field
|
||||
IDState gormcol.Field
|
||||
IDCustomer gormcol.Field
|
||||
IDManufacturer gormcol.Field
|
||||
IDSupplier gormcol.Field
|
||||
IDWarehouse gormcol.Field
|
||||
Alias gormcol.Field
|
||||
Company gormcol.Field
|
||||
Lastname gormcol.Field
|
||||
Firstname gormcol.Field
|
||||
Address1 gormcol.Field
|
||||
Address2 gormcol.Field
|
||||
Postcode gormcol.Field
|
||||
City gormcol.Field
|
||||
Other gormcol.Field
|
||||
Phone gormcol.Field
|
||||
PhoneMobile gormcol.Field
|
||||
VatNumber gormcol.Field
|
||||
Dni gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
Active gormcol.Field
|
||||
Deleted gormcol.Field
|
||||
IsNovat gormcol.Field
|
||||
}{
|
||||
IDAddress: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_address"),
|
||||
IDCountry: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_country"),
|
||||
IDState: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_state"),
|
||||
IDCustomer: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_customer"),
|
||||
IDManufacturer: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_manufacturer"),
|
||||
IDSupplier: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_supplier"),
|
||||
IDWarehouse: gormcol.Field{}.Set((&PsAddress{}).TableName(), "id_warehouse"),
|
||||
Alias: gormcol.Field{}.Set((&PsAddress{}).TableName(), "alias"),
|
||||
Company: gormcol.Field{}.Set((&PsAddress{}).TableName(), "company"),
|
||||
Lastname: gormcol.Field{}.Set((&PsAddress{}).TableName(), "lastname"),
|
||||
Firstname: gormcol.Field{}.Set((&PsAddress{}).TableName(), "firstname"),
|
||||
Address1: gormcol.Field{}.Set((&PsAddress{}).TableName(), "address1"),
|
||||
Address2: gormcol.Field{}.Set((&PsAddress{}).TableName(), "address2"),
|
||||
Postcode: gormcol.Field{}.Set((&PsAddress{}).TableName(), "postcode"),
|
||||
City: gormcol.Field{}.Set((&PsAddress{}).TableName(), "city"),
|
||||
Other: gormcol.Field{}.Set((&PsAddress{}).TableName(), "other"),
|
||||
Phone: gormcol.Field{}.Set((&PsAddress{}).TableName(), "phone"),
|
||||
PhoneMobile: gormcol.Field{}.Set((&PsAddress{}).TableName(), "phone_mobile"),
|
||||
VatNumber: gormcol.Field{}.Set((&PsAddress{}).TableName(), "vat_number"),
|
||||
Dni: gormcol.Field{}.Set((&PsAddress{}).TableName(), "dni"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsAddress{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsAddress{}).TableName(), "date_upd"),
|
||||
Active: gormcol.Field{}.Set((&PsAddress{}).TableName(), "active"),
|
||||
Deleted: gormcol.Field{}.Set((&PsAddress{}).TableName(), "deleted"),
|
||||
IsNovat: gormcol.Field{}.Set((&PsAddress{}).TableName(), "is_novat"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAddressFormat = "ps_address_format"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsAddressFormat struct {
|
||||
func (*PsAddressFormat) TableName() string {
|
||||
return TableNamePsAddressFormat
|
||||
}
|
||||
|
||||
var PsAddressFormatCols = struct {
|
||||
IDCountry gormcol.Field
|
||||
Format gormcol.Field
|
||||
}{
|
||||
IDCountry: gormcol.Field{}.Set((&PsAddressFormat{}).TableName(), "id_country"),
|
||||
Format: gormcol.Field{}.Set((&PsAddressFormat{}).TableName(), "format"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAdminFilter = "ps_admin_filter"
|
||||
|
||||
@@ -21,3 +21,21 @@ type PsAdminFilter struct {
|
||||
func (*PsAdminFilter) TableName() string {
|
||||
return TableNamePsAdminFilter
|
||||
}
|
||||
|
||||
var PsAdminFilterCols = struct {
|
||||
ID gormcol.Field
|
||||
Employee gormcol.Field
|
||||
Shop gormcol.Field
|
||||
Controller gormcol.Field
|
||||
Action gormcol.Field
|
||||
Filter gormcol.Field
|
||||
FilterID gormcol.Field
|
||||
}{
|
||||
ID: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "id"),
|
||||
Employee: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "employee"),
|
||||
Shop: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "shop"),
|
||||
Controller: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "controller"),
|
||||
Action: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "action"),
|
||||
Filter: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "filter"),
|
||||
FilterID: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "filter_id"),
|
||||
}
|
||||
53
app/model/dbmodel/ps_advice.go
Normal file
53
app/model/dbmodel/ps_advice.go
Normal file
@@ -0,0 +1,53 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAdvice = "ps_advice"
|
||||
|
||||
// PsAdvice mapped from table <ps_advice>
|
||||
type PsAdvice struct {
|
||||
IDAdvice int32 `gorm:"column:id_advice;primaryKey;autoIncrement:true" json:"id_advice"`
|
||||
IDPsAdvice int32 `gorm:"column:id_ps_advice;not null" json:"id_ps_advice"`
|
||||
IDTab int32 `gorm:"column:id_tab;not null" json:"id_tab"`
|
||||
IdsTab *string `gorm:"column:ids_tab" json:"ids_tab"`
|
||||
Validated bool `gorm:"column:validated;not null" json:"validated"`
|
||||
Hide bool `gorm:"column:hide;not null" json:"hide"`
|
||||
Location string `gorm:"column:location;not null" json:"location"`
|
||||
Selector *string `gorm:"column:selector" json:"selector"`
|
||||
StartDay int32 `gorm:"column:start_day;not null" json:"start_day"`
|
||||
StopDay int32 `gorm:"column:stop_day;not null" json:"stop_day"`
|
||||
Weight *int32 `gorm:"column:weight;default:1" json:"weight"`
|
||||
}
|
||||
|
||||
// TableName PsAdvice's table name
|
||||
func (*PsAdvice) TableName() string {
|
||||
return TableNamePsAdvice
|
||||
}
|
||||
|
||||
var PsAdviceCols = struct {
|
||||
IDAdvice gormcol.Field
|
||||
IDPsAdvice gormcol.Field
|
||||
IDTab gormcol.Field
|
||||
IdsTab gormcol.Field
|
||||
Validated gormcol.Field
|
||||
Hide gormcol.Field
|
||||
Location gormcol.Field
|
||||
Selector gormcol.Field
|
||||
StartDay gormcol.Field
|
||||
StopDay gormcol.Field
|
||||
Weight gormcol.Field
|
||||
}{
|
||||
IDAdvice: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "id_advice"),
|
||||
IDPsAdvice: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "id_ps_advice"),
|
||||
IDTab: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "id_tab"),
|
||||
IdsTab: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "ids_tab"),
|
||||
Validated: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "validated"),
|
||||
Hide: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "hide"),
|
||||
Location: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "location"),
|
||||
Selector: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "selector"),
|
||||
StartDay: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "start_day"),
|
||||
StopDay: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "stop_day"),
|
||||
Weight: gormcol.Field{}.Set((&PsAdvice{}).TableName(), "weight"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAdviceLang = "ps_advice_lang"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsAdviceLang struct {
|
||||
func (*PsAdviceLang) TableName() string {
|
||||
return TableNamePsAdviceLang
|
||||
}
|
||||
|
||||
var PsAdviceLangCols = struct {
|
||||
IDAdvice gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
HTML gormcol.Field
|
||||
}{
|
||||
IDAdvice: gormcol.Field{}.Set((&PsAdviceLang{}).TableName(), "id_advice"),
|
||||
IDLang: gormcol.Field{}.Set((&PsAdviceLang{}).TableName(), "id_lang"),
|
||||
HTML: gormcol.Field{}.Set((&PsAdviceLang{}).TableName(), "html"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAlias = "ps_alias"
|
||||
|
||||
@@ -18,3 +18,15 @@ type PsAlias struct {
|
||||
func (*PsAlias) TableName() string {
|
||||
return TableNamePsAlias
|
||||
}
|
||||
|
||||
var PsAliasCols = struct {
|
||||
IDAlias gormcol.Field
|
||||
Alias gormcol.Field
|
||||
Search gormcol.Field
|
||||
Active gormcol.Field
|
||||
}{
|
||||
IDAlias: gormcol.Field{}.Set((&PsAlias{}).TableName(), "id_alias"),
|
||||
Alias: gormcol.Field{}.Set((&PsAlias{}).TableName(), "alias"),
|
||||
Search: gormcol.Field{}.Set((&PsAlias{}).TableName(), "search"),
|
||||
Active: gormcol.Field{}.Set((&PsAlias{}).TableName(), "active"),
|
||||
}
|
||||
35
app/model/dbmodel/ps_attachment.go
Normal file
35
app/model/dbmodel/ps_attachment.go
Normal file
@@ -0,0 +1,35 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttachment = "ps_attachment"
|
||||
|
||||
// PsAttachment mapped from table <ps_attachment>
|
||||
type PsAttachment struct {
|
||||
IDAttachment int32 `gorm:"column:id_attachment;primaryKey;autoIncrement:true" json:"id_attachment"`
|
||||
File string `gorm:"column:file;not null" json:"file"`
|
||||
FileName string `gorm:"column:file_name;not null" json:"file_name"`
|
||||
FileSize int64 `gorm:"column:file_size;not null" json:"file_size"`
|
||||
Mime string `gorm:"column:mime;not null" json:"mime"`
|
||||
}
|
||||
|
||||
// TableName PsAttachment's table name
|
||||
func (*PsAttachment) TableName() string {
|
||||
return TableNamePsAttachment
|
||||
}
|
||||
|
||||
var PsAttachmentCols = struct {
|
||||
IDAttachment gormcol.Field
|
||||
File gormcol.Field
|
||||
FileName gormcol.Field
|
||||
FileSize gormcol.Field
|
||||
Mime gormcol.Field
|
||||
}{
|
||||
IDAttachment: gormcol.Field{}.Set((&PsAttachment{}).TableName(), "id_attachment"),
|
||||
File: gormcol.Field{}.Set((&PsAttachment{}).TableName(), "file"),
|
||||
FileName: gormcol.Field{}.Set((&PsAttachment{}).TableName(), "file_name"),
|
||||
FileSize: gormcol.Field{}.Set((&PsAttachment{}).TableName(), "file_size"),
|
||||
Mime: gormcol.Field{}.Set((&PsAttachment{}).TableName(), "mime"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttachmentLang = "ps_attachment_lang"
|
||||
|
||||
@@ -18,3 +18,15 @@ type PsAttachmentLang struct {
|
||||
func (*PsAttachmentLang) TableName() string {
|
||||
return TableNamePsAttachmentLang
|
||||
}
|
||||
|
||||
var PsAttachmentLangCols = struct {
|
||||
IDAttachment gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
Description gormcol.Field
|
||||
}{
|
||||
IDAttachment: gormcol.Field{}.Set((&PsAttachmentLang{}).TableName(), "id_attachment"),
|
||||
IDLang: gormcol.Field{}.Set((&PsAttachmentLang{}).TableName(), "id_lang"),
|
||||
Name: gormcol.Field{}.Set((&PsAttachmentLang{}).TableName(), "name"),
|
||||
Description: gormcol.Field{}.Set((&PsAttachmentLang{}).TableName(), "description"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttribute = "ps_attribute"
|
||||
|
||||
@@ -18,3 +18,15 @@ type PsAttribute struct {
|
||||
func (*PsAttribute) TableName() string {
|
||||
return TableNamePsAttribute
|
||||
}
|
||||
|
||||
var PsAttributeCols = struct {
|
||||
IDAttribute gormcol.Field
|
||||
IDAttributeGroup gormcol.Field
|
||||
Color gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDAttribute: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "id_attribute"),
|
||||
IDAttributeGroup: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "id_attribute_group"),
|
||||
Color: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "color"),
|
||||
Position: gormcol.Field{}.Set((&PsAttribute{}).TableName(), "position"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeGroup = "ps_attribute_group"
|
||||
|
||||
@@ -18,3 +18,15 @@ type PsAttributeGroup struct {
|
||||
func (*PsAttributeGroup) TableName() string {
|
||||
return TableNamePsAttributeGroup
|
||||
}
|
||||
|
||||
var PsAttributeGroupCols = struct {
|
||||
IDAttributeGroup gormcol.Field
|
||||
IsColorGroup gormcol.Field
|
||||
GroupType gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDAttributeGroup: gormcol.Field{}.Set((&PsAttributeGroup{}).TableName(), "id_attribute_group"),
|
||||
IsColorGroup: gormcol.Field{}.Set((&PsAttributeGroup{}).TableName(), "is_color_group"),
|
||||
GroupType: gormcol.Field{}.Set((&PsAttributeGroup{}).TableName(), "group_type"),
|
||||
Position: gormcol.Field{}.Set((&PsAttributeGroup{}).TableName(), "position"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeGroupLang = "ps_attribute_group_lang"
|
||||
|
||||
@@ -18,3 +18,15 @@ type PsAttributeGroupLang struct {
|
||||
func (*PsAttributeGroupLang) TableName() string {
|
||||
return TableNamePsAttributeGroupLang
|
||||
}
|
||||
|
||||
var PsAttributeGroupLangCols = struct {
|
||||
IDAttributeGroup gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
PublicName gormcol.Field
|
||||
}{
|
||||
IDAttributeGroup: gormcol.Field{}.Set((&PsAttributeGroupLang{}).TableName(), "id_attribute_group"),
|
||||
IDLang: gormcol.Field{}.Set((&PsAttributeGroupLang{}).TableName(), "id_lang"),
|
||||
Name: gormcol.Field{}.Set((&PsAttributeGroupLang{}).TableName(), "name"),
|
||||
PublicName: gormcol.Field{}.Set((&PsAttributeGroupLang{}).TableName(), "public_name"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeGroupShop = "ps_attribute_group_shop"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsAttributeGroupShop struct {
|
||||
func (*PsAttributeGroupShop) TableName() string {
|
||||
return TableNamePsAttributeGroupShop
|
||||
}
|
||||
|
||||
var PsAttributeGroupShopCols = struct {
|
||||
IDAttributeGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDAttributeGroup: gormcol.Field{}.Set((&PsAttributeGroupShop{}).TableName(), "id_attribute_group"),
|
||||
IDShop: gormcol.Field{}.Set((&PsAttributeGroupShop{}).TableName(), "id_shop"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeImpact = "ps_attribute_impact"
|
||||
|
||||
@@ -19,3 +19,17 @@ type PsAttributeImpact struct {
|
||||
func (*PsAttributeImpact) TableName() string {
|
||||
return TableNamePsAttributeImpact
|
||||
}
|
||||
|
||||
var PsAttributeImpactCols = struct {
|
||||
IDAttributeImpact gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
IDAttribute gormcol.Field
|
||||
Weight gormcol.Field
|
||||
Price gormcol.Field
|
||||
}{
|
||||
IDAttributeImpact: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "id_attribute_impact"),
|
||||
IDProduct: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "id_product"),
|
||||
IDAttribute: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "id_attribute"),
|
||||
Weight: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "weight"),
|
||||
Price: gormcol.Field{}.Set((&PsAttributeImpact{}).TableName(), "price"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeLang = "ps_attribute_lang"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsAttributeLang struct {
|
||||
func (*PsAttributeLang) TableName() string {
|
||||
return TableNamePsAttributeLang
|
||||
}
|
||||
|
||||
var PsAttributeLangCols = struct {
|
||||
IDAttribute gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
}{
|
||||
IDAttribute: gormcol.Field{}.Set((&PsAttributeLang{}).TableName(), "id_attribute"),
|
||||
IDLang: gormcol.Field{}.Set((&PsAttributeLang{}).TableName(), "id_lang"),
|
||||
Name: gormcol.Field{}.Set((&PsAttributeLang{}).TableName(), "name"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAttributeShop = "ps_attribute_shop"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsAttributeShop struct {
|
||||
func (*PsAttributeShop) TableName() string {
|
||||
return TableNamePsAttributeShop
|
||||
}
|
||||
|
||||
var PsAttributeShopCols = struct {
|
||||
IDAttribute gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDAttribute: gormcol.Field{}.Set((&PsAttributeShop{}).TableName(), "id_attribute"),
|
||||
IDShop: gormcol.Field{}.Set((&PsAttributeShop{}).TableName(), "id_shop"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsAuthorizationRole = "ps_authorization_role"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsAuthorizationRole struct {
|
||||
func (*PsAuthorizationRole) TableName() string {
|
||||
return TableNamePsAuthorizationRole
|
||||
}
|
||||
|
||||
var PsAuthorizationRoleCols = struct {
|
||||
IDAuthorizationRole gormcol.Field
|
||||
Slug gormcol.Field
|
||||
}{
|
||||
IDAuthorizationRole: gormcol.Field{}.Set((&PsAuthorizationRole{}).TableName(), "id_authorization_role"),
|
||||
Slug: gormcol.Field{}.Set((&PsAuthorizationRole{}).TableName(), "slug"),
|
||||
}
|
||||
44
app/model/dbmodel/ps_badge.go
Normal file
44
app/model/dbmodel/ps_badge.go
Normal file
@@ -0,0 +1,44 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsBadge = "ps_badge"
|
||||
|
||||
// PsBadge mapped from table <ps_badge>
|
||||
type PsBadge struct {
|
||||
IDBadge int32 `gorm:"column:id_badge;primaryKey;autoIncrement:true" json:"id_badge"`
|
||||
IDPsBadge int32 `gorm:"column:id_ps_badge;not null" json:"id_ps_badge"`
|
||||
Type string `gorm:"column:type;not null" json:"type"`
|
||||
IDGroup int32 `gorm:"column:id_group;not null" json:"id_group"`
|
||||
GroupPosition int32 `gorm:"column:group_position;not null" json:"group_position"`
|
||||
Scoring int32 `gorm:"column:scoring;not null" json:"scoring"`
|
||||
Awb *int32 `gorm:"column:awb" json:"awb"`
|
||||
Validated bool `gorm:"column:validated;not null" json:"validated"`
|
||||
}
|
||||
|
||||
// TableName PsBadge's table name
|
||||
func (*PsBadge) TableName() string {
|
||||
return TableNamePsBadge
|
||||
}
|
||||
|
||||
var PsBadgeCols = struct {
|
||||
IDBadge gormcol.Field
|
||||
IDPsBadge gormcol.Field
|
||||
Type gormcol.Field
|
||||
IDGroup gormcol.Field
|
||||
GroupPosition gormcol.Field
|
||||
Scoring gormcol.Field
|
||||
Awb gormcol.Field
|
||||
Validated gormcol.Field
|
||||
}{
|
||||
IDBadge: gormcol.Field{}.Set((&PsBadge{}).TableName(), "id_badge"),
|
||||
IDPsBadge: gormcol.Field{}.Set((&PsBadge{}).TableName(), "id_ps_badge"),
|
||||
Type: gormcol.Field{}.Set((&PsBadge{}).TableName(), "type"),
|
||||
IDGroup: gormcol.Field{}.Set((&PsBadge{}).TableName(), "id_group"),
|
||||
GroupPosition: gormcol.Field{}.Set((&PsBadge{}).TableName(), "group_position"),
|
||||
Scoring: gormcol.Field{}.Set((&PsBadge{}).TableName(), "scoring"),
|
||||
Awb: gormcol.Field{}.Set((&PsBadge{}).TableName(), "awb"),
|
||||
Validated: gormcol.Field{}.Set((&PsBadge{}).TableName(), "validated"),
|
||||
}
|
||||
35
app/model/dbmodel/ps_badge_lang.go
Normal file
35
app/model/dbmodel/ps_badge_lang.go
Normal file
@@ -0,0 +1,35 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsBadgeLang = "ps_badge_lang"
|
||||
|
||||
// PsBadgeLang mapped from table <ps_badge_lang>
|
||||
type PsBadgeLang struct {
|
||||
IDBadge int32 `gorm:"column:id_badge;primaryKey" json:"id_badge"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Name *string `gorm:"column:name" json:"name"`
|
||||
Description *string `gorm:"column:description" json:"description"`
|
||||
GroupName *string `gorm:"column:group_name" json:"group_name"`
|
||||
}
|
||||
|
||||
// TableName PsBadgeLang's table name
|
||||
func (*PsBadgeLang) TableName() string {
|
||||
return TableNamePsBadgeLang
|
||||
}
|
||||
|
||||
var PsBadgeLangCols = struct {
|
||||
IDBadge gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
Description gormcol.Field
|
||||
GroupName gormcol.Field
|
||||
}{
|
||||
IDBadge: gormcol.Field{}.Set((&PsBadgeLang{}).TableName(), "id_badge"),
|
||||
IDLang: gormcol.Field{}.Set((&PsBadgeLang{}).TableName(), "id_lang"),
|
||||
Name: gormcol.Field{}.Set((&PsBadgeLang{}).TableName(), "name"),
|
||||
Description: gormcol.Field{}.Set((&PsBadgeLang{}).TableName(), "description"),
|
||||
GroupName: gormcol.Field{}.Set((&PsBadgeLang{}).TableName(), "group_name"),
|
||||
}
|
||||
83
app/model/dbmodel/ps_carrier.go
Normal file
83
app/model/dbmodel/ps_carrier.go
Normal file
@@ -0,0 +1,83 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrier = "ps_carrier"
|
||||
|
||||
// PsCarrier mapped from table <ps_carrier>
|
||||
type PsCarrier struct {
|
||||
IDCarrier int32 `gorm:"column:id_carrier;primaryKey;autoIncrement:true" json:"id_carrier"`
|
||||
IDReference int32 `gorm:"column:id_reference;not null;index:reference,priority:1" json:"id_reference"`
|
||||
IDTaxRulesGroup *int32 `gorm:"column:id_tax_rules_group;index:id_tax_rules_group,priority:1" json:"id_tax_rules_group"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
URL *string `gorm:"column:url" json:"url"`
|
||||
Active bool `gorm:"column:active;not null;index:deleted,priority:2;index:reference,priority:3" json:"active"`
|
||||
Deleted bool `gorm:"column:deleted;not null;index:deleted,priority:1;index:reference,priority:2" json:"deleted"`
|
||||
ShippingHandling bool `gorm:"column:shipping_handling;not null;default:1" json:"shipping_handling"`
|
||||
RangeBehavior bool `gorm:"column:range_behavior;not null" json:"range_behavior"`
|
||||
IsModule bool `gorm:"column:is_module;not null" json:"is_module"`
|
||||
IsFree bool `gorm:"column:is_free;not null" json:"is_free"`
|
||||
ShippingExternal bool `gorm:"column:shipping_external;not null" json:"shipping_external"`
|
||||
NeedRange bool `gorm:"column:need_range;not null" json:"need_range"`
|
||||
ExternalModuleName *string `gorm:"column:external_module_name" json:"external_module_name"`
|
||||
ShippingMethod int32 `gorm:"column:shipping_method;not null" json:"shipping_method"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
MaxWidth *int32 `gorm:"column:max_width" json:"max_width"`
|
||||
MaxHeight *int32 `gorm:"column:max_height" json:"max_height"`
|
||||
MaxDepth *int32 `gorm:"column:max_depth" json:"max_depth"`
|
||||
MaxWeight *float64 `gorm:"column:max_weight;default:0.000000" json:"max_weight"`
|
||||
Grade *int32 `gorm:"column:grade" json:"grade"`
|
||||
}
|
||||
|
||||
// TableName PsCarrier's table name
|
||||
func (*PsCarrier) TableName() string {
|
||||
return TableNamePsCarrier
|
||||
}
|
||||
|
||||
var PsCarrierCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDReference gormcol.Field
|
||||
IDTaxRulesGroup gormcol.Field
|
||||
Name gormcol.Field
|
||||
URL gormcol.Field
|
||||
Active gormcol.Field
|
||||
Deleted gormcol.Field
|
||||
ShippingHandling gormcol.Field
|
||||
RangeBehavior gormcol.Field
|
||||
IsModule gormcol.Field
|
||||
IsFree gormcol.Field
|
||||
ShippingExternal gormcol.Field
|
||||
NeedRange gormcol.Field
|
||||
ExternalModuleName gormcol.Field
|
||||
ShippingMethod gormcol.Field
|
||||
Position gormcol.Field
|
||||
MaxWidth gormcol.Field
|
||||
MaxHeight gormcol.Field
|
||||
MaxDepth gormcol.Field
|
||||
MaxWeight gormcol.Field
|
||||
Grade gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "id_carrier"),
|
||||
IDReference: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "id_reference"),
|
||||
IDTaxRulesGroup: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "id_tax_rules_group"),
|
||||
Name: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "name"),
|
||||
URL: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "url"),
|
||||
Active: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "active"),
|
||||
Deleted: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "deleted"),
|
||||
ShippingHandling: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "shipping_handling"),
|
||||
RangeBehavior: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "range_behavior"),
|
||||
IsModule: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "is_module"),
|
||||
IsFree: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "is_free"),
|
||||
ShippingExternal: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "shipping_external"),
|
||||
NeedRange: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "need_range"),
|
||||
ExternalModuleName: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "external_module_name"),
|
||||
ShippingMethod: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "shipping_method"),
|
||||
Position: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "position"),
|
||||
MaxWidth: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_width"),
|
||||
MaxHeight: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_height"),
|
||||
MaxDepth: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_depth"),
|
||||
MaxWeight: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_weight"),
|
||||
Grade: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "grade"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrierGroup = "ps_carrier_group"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCarrierGroup struct {
|
||||
func (*PsCarrierGroup) TableName() string {
|
||||
return TableNamePsCarrierGroup
|
||||
}
|
||||
|
||||
var PsCarrierGroupCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDGroup gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{}.Set((&PsCarrierGroup{}).TableName(), "id_carrier"),
|
||||
IDGroup: gormcol.Field{}.Set((&PsCarrierGroup{}).TableName(), "id_group"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrierLang = "ps_carrier_lang"
|
||||
|
||||
@@ -18,3 +18,15 @@ type PsCarrierLang struct {
|
||||
func (*PsCarrierLang) TableName() string {
|
||||
return TableNamePsCarrierLang
|
||||
}
|
||||
|
||||
var PsCarrierLangCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Delay gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{}.Set((&PsCarrierLang{}).TableName(), "id_carrier"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCarrierLang{}).TableName(), "id_shop"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCarrierLang{}).TableName(), "id_lang"),
|
||||
Delay: gormcol.Field{}.Set((&PsCarrierLang{}).TableName(), "delay"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrierShop = "ps_carrier_shop"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCarrierShop struct {
|
||||
func (*PsCarrierShop) TableName() string {
|
||||
return TableNamePsCarrierShop
|
||||
}
|
||||
|
||||
var PsCarrierShopCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{}.Set((&PsCarrierShop{}).TableName(), "id_carrier"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCarrierShop{}).TableName(), "id_shop"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrierTaxRulesGroupShop = "ps_carrier_tax_rules_group_shop"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsCarrierTaxRulesGroupShop struct {
|
||||
func (*PsCarrierTaxRulesGroupShop) TableName() string {
|
||||
return TableNamePsCarrierTaxRulesGroupShop
|
||||
}
|
||||
|
||||
var PsCarrierTaxRulesGroupShopCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDTaxRulesGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{}.Set((&PsCarrierTaxRulesGroupShop{}).TableName(), "id_carrier"),
|
||||
IDTaxRulesGroup: gormcol.Field{}.Set((&PsCarrierTaxRulesGroupShop{}).TableName(), "id_tax_rules_group"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCarrierTaxRulesGroupShop{}).TableName(), "id_shop"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCarrierZone = "ps_carrier_zone"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCarrierZone struct {
|
||||
func (*PsCarrierZone) TableName() string {
|
||||
return TableNamePsCarrierZone
|
||||
}
|
||||
|
||||
var PsCarrierZoneCols = struct {
|
||||
IDCarrier gormcol.Field
|
||||
IDZone gormcol.Field
|
||||
}{
|
||||
IDCarrier: gormcol.Field{}.Set((&PsCarrierZone{}).TableName(), "id_carrier"),
|
||||
IDZone: gormcol.Field{}.Set((&PsCarrierZone{}).TableName(), "id_zone"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -41,3 +40,53 @@ type PsCart struct {
|
||||
func (*PsCart) TableName() string {
|
||||
return TableNamePsCart
|
||||
}
|
||||
|
||||
var PsCartCols = struct {
|
||||
IDCart gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDCarrier gormcol.Field
|
||||
DeliveryOption gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDAddressDelivery gormcol.Field
|
||||
IDAddressInvoice gormcol.Field
|
||||
IDCurrency gormcol.Field
|
||||
IDCustomer gormcol.Field
|
||||
IDGuest gormcol.Field
|
||||
SecureKey gormcol.Field
|
||||
Recyclable gormcol.Field
|
||||
Gift gormcol.Field
|
||||
GiftMessage gormcol.Field
|
||||
MobileTheme gormcol.Field
|
||||
AllowSeperatedPackage gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
CheckoutSessionData gormcol.Field
|
||||
CustomeShippingPriceNetto gormcol.Field
|
||||
CustomeShippingPrice gormcol.Field
|
||||
CustomeShippingTaxRate gormcol.Field
|
||||
}{
|
||||
IDCart: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_cart"),
|
||||
IDShopGroup: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_shop_group"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_shop"),
|
||||
IDCarrier: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_carrier"),
|
||||
DeliveryOption: gormcol.Field{}.Set((&PsCart{}).TableName(), "delivery_option"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_lang"),
|
||||
IDAddressDelivery: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_address_delivery"),
|
||||
IDAddressInvoice: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_address_invoice"),
|
||||
IDCurrency: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_currency"),
|
||||
IDCustomer: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_customer"),
|
||||
IDGuest: gormcol.Field{}.Set((&PsCart{}).TableName(), "id_guest"),
|
||||
SecureKey: gormcol.Field{}.Set((&PsCart{}).TableName(), "secure_key"),
|
||||
Recyclable: gormcol.Field{}.Set((&PsCart{}).TableName(), "recyclable"),
|
||||
Gift: gormcol.Field{}.Set((&PsCart{}).TableName(), "gift"),
|
||||
GiftMessage: gormcol.Field{}.Set((&PsCart{}).TableName(), "gift_message"),
|
||||
MobileTheme: gormcol.Field{}.Set((&PsCart{}).TableName(), "mobile_theme"),
|
||||
AllowSeperatedPackage: gormcol.Field{}.Set((&PsCart{}).TableName(), "allow_seperated_package"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsCart{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsCart{}).TableName(), "date_upd"),
|
||||
CheckoutSessionData: gormcol.Field{}.Set((&PsCart{}).TableName(), "checkout_session_data"),
|
||||
CustomeShippingPriceNetto: gormcol.Field{}.Set((&PsCart{}).TableName(), "custome_shipping_price_netto"),
|
||||
CustomeShippingPrice: gormcol.Field{}.Set((&PsCart{}).TableName(), "custome_shipping_price"),
|
||||
CustomeShippingTaxRate: gormcol.Field{}.Set((&PsCart{}).TableName(), "custome_shipping_tax_rate"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartCartRule = "ps_cart_cart_rule"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCartCartRule struct {
|
||||
func (*PsCartCartRule) TableName() string {
|
||||
return TableNamePsCartCartRule
|
||||
}
|
||||
|
||||
var PsCartCartRuleCols = struct {
|
||||
IDCart gormcol.Field
|
||||
IDCartRule gormcol.Field
|
||||
}{
|
||||
IDCart: gormcol.Field{}.Set((&PsCartCartRule{}).TableName(), "id_cart"),
|
||||
IDCartRule: gormcol.Field{}.Set((&PsCartCartRule{}).TableName(), "id_cart_rule"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -26,3 +25,23 @@ type PsCartProduct struct {
|
||||
func (*PsCartProduct) TableName() string {
|
||||
return TableNamePsCartProduct
|
||||
}
|
||||
|
||||
var PsCartProductCols = struct {
|
||||
IDCart gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
IDAddressDelivery gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDProductAttribute gormcol.Field
|
||||
IDCustomization gormcol.Field
|
||||
Quantity gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
}{
|
||||
IDCart: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_cart"),
|
||||
IDProduct: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_product"),
|
||||
IDAddressDelivery: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_address_delivery"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_shop"),
|
||||
IDProductAttribute: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_product_attribute"),
|
||||
IDCustomization: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "id_customization"),
|
||||
Quantity: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "quantity"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsCartProduct{}).TableName(), "date_add"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -51,3 +50,73 @@ type PsCartRule struct {
|
||||
func (*PsCartRule) TableName() string {
|
||||
return TableNamePsCartRule
|
||||
}
|
||||
|
||||
var PsCartRuleCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDCustomer gormcol.Field
|
||||
DateFrom gormcol.Field
|
||||
DateTo gormcol.Field
|
||||
Description gormcol.Field
|
||||
Quantity gormcol.Field
|
||||
QuantityPerUser gormcol.Field
|
||||
Priority gormcol.Field
|
||||
PartialUse gormcol.Field
|
||||
Code gormcol.Field
|
||||
MinimumAmount gormcol.Field
|
||||
MinimumAmountTax gormcol.Field
|
||||
MinimumAmountCurrency gormcol.Field
|
||||
MinimumAmountShipping gormcol.Field
|
||||
CountryRestriction gormcol.Field
|
||||
CarrierRestriction gormcol.Field
|
||||
GroupRestriction gormcol.Field
|
||||
CartRuleRestriction gormcol.Field
|
||||
ProductRestriction gormcol.Field
|
||||
ShopRestriction gormcol.Field
|
||||
FreeShipping gormcol.Field
|
||||
ReductionPercent gormcol.Field
|
||||
ReductionAmount gormcol.Field
|
||||
ReductionTax gormcol.Field
|
||||
ReductionCurrency gormcol.Field
|
||||
ReductionProduct gormcol.Field
|
||||
ReductionExcludeSpecial gormcol.Field
|
||||
GiftProduct gormcol.Field
|
||||
GiftProductAttribute gormcol.Field
|
||||
Highlight gormcol.Field
|
||||
Active gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "id_cart_rule"),
|
||||
IDCustomer: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "id_customer"),
|
||||
DateFrom: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "date_from"),
|
||||
DateTo: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "date_to"),
|
||||
Description: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "description"),
|
||||
Quantity: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "quantity"),
|
||||
QuantityPerUser: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "quantity_per_user"),
|
||||
Priority: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "priority"),
|
||||
PartialUse: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "partial_use"),
|
||||
Code: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "code"),
|
||||
MinimumAmount: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "minimum_amount"),
|
||||
MinimumAmountTax: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "minimum_amount_tax"),
|
||||
MinimumAmountCurrency: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "minimum_amount_currency"),
|
||||
MinimumAmountShipping: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "minimum_amount_shipping"),
|
||||
CountryRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "country_restriction"),
|
||||
CarrierRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "carrier_restriction"),
|
||||
GroupRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "group_restriction"),
|
||||
CartRuleRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "cart_rule_restriction"),
|
||||
ProductRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "product_restriction"),
|
||||
ShopRestriction: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "shop_restriction"),
|
||||
FreeShipping: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "free_shipping"),
|
||||
ReductionPercent: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_percent"),
|
||||
ReductionAmount: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_amount"),
|
||||
ReductionTax: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_tax"),
|
||||
ReductionCurrency: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_currency"),
|
||||
ReductionProduct: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_product"),
|
||||
ReductionExcludeSpecial: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "reduction_exclude_special"),
|
||||
GiftProduct: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "gift_product"),
|
||||
GiftProductAttribute: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "gift_product_attribute"),
|
||||
Highlight: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "highlight"),
|
||||
Active: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "active"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsCartRule{}).TableName(), "date_upd"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleCarrier = "ps_cart_rule_carrier"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCartRuleCarrier struct {
|
||||
func (*PsCartRuleCarrier) TableName() string {
|
||||
return TableNamePsCartRuleCarrier
|
||||
}
|
||||
|
||||
var PsCartRuleCarrierCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDCarrier gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{}.Set((&PsCartRuleCarrier{}).TableName(), "id_cart_rule"),
|
||||
IDCarrier: gormcol.Field{}.Set((&PsCartRuleCarrier{}).TableName(), "id_carrier"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleCombination = "ps_cart_rule_combination"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCartRuleCombination struct {
|
||||
func (*PsCartRuleCombination) TableName() string {
|
||||
return TableNamePsCartRuleCombination
|
||||
}
|
||||
|
||||
var PsCartRuleCombinationCols = struct {
|
||||
IDCartRule1 gormcol.Field
|
||||
IDCartRule2 gormcol.Field
|
||||
}{
|
||||
IDCartRule1: gormcol.Field{}.Set((&PsCartRuleCombination{}).TableName(), "id_cart_rule_1"),
|
||||
IDCartRule2: gormcol.Field{}.Set((&PsCartRuleCombination{}).TableName(), "id_cart_rule_2"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleCountry = "ps_cart_rule_country"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCartRuleCountry struct {
|
||||
func (*PsCartRuleCountry) TableName() string {
|
||||
return TableNamePsCartRuleCountry
|
||||
}
|
||||
|
||||
var PsCartRuleCountryCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDCountry gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{}.Set((&PsCartRuleCountry{}).TableName(), "id_cart_rule"),
|
||||
IDCountry: gormcol.Field{}.Set((&PsCartRuleCountry{}).TableName(), "id_country"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleGroup = "ps_cart_rule_group"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCartRuleGroup struct {
|
||||
func (*PsCartRuleGroup) TableName() string {
|
||||
return TableNamePsCartRuleGroup
|
||||
}
|
||||
|
||||
var PsCartRuleGroupCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDGroup gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{}.Set((&PsCartRuleGroup{}).TableName(), "id_cart_rule"),
|
||||
IDGroup: gormcol.Field{}.Set((&PsCartRuleGroup{}).TableName(), "id_group"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleLang = "ps_cart_rule_lang"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsCartRuleLang struct {
|
||||
func (*PsCartRuleLang) TableName() string {
|
||||
return TableNamePsCartRuleLang
|
||||
}
|
||||
|
||||
var PsCartRuleLangCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{}.Set((&PsCartRuleLang{}).TableName(), "id_cart_rule"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCartRuleLang{}).TableName(), "id_lang"),
|
||||
Name: gormcol.Field{}.Set((&PsCartRuleLang{}).TableName(), "name"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleProductRule = "ps_cart_rule_product_rule"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsCartRuleProductRule struct {
|
||||
func (*PsCartRuleProductRule) TableName() string {
|
||||
return TableNamePsCartRuleProductRule
|
||||
}
|
||||
|
||||
var PsCartRuleProductRuleCols = struct {
|
||||
IDProductRule gormcol.Field
|
||||
IDProductRuleGroup gormcol.Field
|
||||
Type gormcol.Field
|
||||
}{
|
||||
IDProductRule: gormcol.Field{}.Set((&PsCartRuleProductRule{}).TableName(), "id_product_rule"),
|
||||
IDProductRuleGroup: gormcol.Field{}.Set((&PsCartRuleProductRule{}).TableName(), "id_product_rule_group"),
|
||||
Type: gormcol.Field{}.Set((&PsCartRuleProductRule{}).TableName(), "type"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleProductRuleGroup = "ps_cart_rule_product_rule_group"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsCartRuleProductRuleGroup struct {
|
||||
func (*PsCartRuleProductRuleGroup) TableName() string {
|
||||
return TableNamePsCartRuleProductRuleGroup
|
||||
}
|
||||
|
||||
var PsCartRuleProductRuleGroupCols = struct {
|
||||
IDProductRuleGroup gormcol.Field
|
||||
IDCartRule gormcol.Field
|
||||
Quantity gormcol.Field
|
||||
}{
|
||||
IDProductRuleGroup: gormcol.Field{}.Set((&PsCartRuleProductRuleGroup{}).TableName(), "id_product_rule_group"),
|
||||
IDCartRule: gormcol.Field{}.Set((&PsCartRuleProductRuleGroup{}).TableName(), "id_cart_rule"),
|
||||
Quantity: gormcol.Field{}.Set((&PsCartRuleProductRuleGroup{}).TableName(), "quantity"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleProductRuleValue = "ps_cart_rule_product_rule_value"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCartRuleProductRuleValue struct {
|
||||
func (*PsCartRuleProductRuleValue) TableName() string {
|
||||
return TableNamePsCartRuleProductRuleValue
|
||||
}
|
||||
|
||||
var PsCartRuleProductRuleValueCols = struct {
|
||||
IDProductRule gormcol.Field
|
||||
IDItem gormcol.Field
|
||||
}{
|
||||
IDProductRule: gormcol.Field{}.Set((&PsCartRuleProductRuleValue{}).TableName(), "id_product_rule"),
|
||||
IDItem: gormcol.Field{}.Set((&PsCartRuleProductRuleValue{}).TableName(), "id_item"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCartRuleShop = "ps_cart_rule_shop"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCartRuleShop struct {
|
||||
func (*PsCartRuleShop) TableName() string {
|
||||
return TableNamePsCartRuleShop
|
||||
}
|
||||
|
||||
var PsCartRuleShopCols = struct {
|
||||
IDCartRule gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCartRule: gormcol.Field{}.Set((&PsCartRuleShop{}).TableName(), "id_cart_rule"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCartRuleShop{}).TableName(), "id_shop"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -29,3 +28,29 @@ type PsCategory struct {
|
||||
func (*PsCategory) TableName() string {
|
||||
return TableNamePsCategory
|
||||
}
|
||||
|
||||
var PsCategoryCols = struct {
|
||||
IDCategory gormcol.Field
|
||||
IDParent gormcol.Field
|
||||
IDShopDefault gormcol.Field
|
||||
LevelDepth gormcol.Field
|
||||
Nleft gormcol.Field
|
||||
Nright gormcol.Field
|
||||
Active gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
Position gormcol.Field
|
||||
IsRootCategory gormcol.Field
|
||||
}{
|
||||
IDCategory: gormcol.Field{}.Set((&PsCategory{}).TableName(), "id_category"),
|
||||
IDParent: gormcol.Field{}.Set((&PsCategory{}).TableName(), "id_parent"),
|
||||
IDShopDefault: gormcol.Field{}.Set((&PsCategory{}).TableName(), "id_shop_default"),
|
||||
LevelDepth: gormcol.Field{}.Set((&PsCategory{}).TableName(), "level_depth"),
|
||||
Nleft: gormcol.Field{}.Set((&PsCategory{}).TableName(), "nleft"),
|
||||
Nright: gormcol.Field{}.Set((&PsCategory{}).TableName(), "nright"),
|
||||
Active: gormcol.Field{}.Set((&PsCategory{}).TableName(), "active"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsCategory{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsCategory{}).TableName(), "date_upd"),
|
||||
Position: gormcol.Field{}.Set((&PsCategory{}).TableName(), "position"),
|
||||
IsRootCategory: gormcol.Field{}.Set((&PsCategory{}).TableName(), "is_root_category"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCategoryGroup = "ps_category_group"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCategoryGroup struct {
|
||||
func (*PsCategoryGroup) TableName() string {
|
||||
return TableNamePsCategoryGroup
|
||||
}
|
||||
|
||||
var PsCategoryGroupCols = struct {
|
||||
IDCategory gormcol.Field
|
||||
IDGroup gormcol.Field
|
||||
}{
|
||||
IDCategory: gormcol.Field{}.Set((&PsCategoryGroup{}).TableName(), "id_category"),
|
||||
IDGroup: gormcol.Field{}.Set((&PsCategoryGroup{}).TableName(), "id_group"),
|
||||
}
|
||||
47
app/model/dbmodel/ps_category_lang.go
Normal file
47
app/model/dbmodel/ps_category_lang.go
Normal file
@@ -0,0 +1,47 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCategoryLang = "ps_category_lang"
|
||||
|
||||
// PsCategoryLang mapped from table <ps_category_lang>
|
||||
type PsCategoryLang struct {
|
||||
IDCategory int32 `gorm:"column:id_category;primaryKey" json:"id_category"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Name string `gorm:"column:name;not null;index:category_name,priority:1" json:"name"`
|
||||
Description *string `gorm:"column:description" json:"description"`
|
||||
LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"`
|
||||
MetaTitle *string `gorm:"column:meta_title" json:"meta_title"`
|
||||
MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"`
|
||||
MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
|
||||
}
|
||||
|
||||
// TableName PsCategoryLang's table name
|
||||
func (*PsCategoryLang) TableName() string {
|
||||
return TableNamePsCategoryLang
|
||||
}
|
||||
|
||||
var PsCategoryLangCols = struct {
|
||||
IDCategory gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
Description gormcol.Field
|
||||
LinkRewrite gormcol.Field
|
||||
MetaTitle gormcol.Field
|
||||
MetaKeywords gormcol.Field
|
||||
MetaDescription gormcol.Field
|
||||
}{
|
||||
IDCategory: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "id_category"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "id_shop"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "id_lang"),
|
||||
Name: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "name"),
|
||||
Description: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "description"),
|
||||
LinkRewrite: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "link_rewrite"),
|
||||
MetaTitle: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "meta_title"),
|
||||
MetaKeywords: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "meta_keywords"),
|
||||
MetaDescription: gormcol.Field{}.Set((&PsCategoryLang{}).TableName(), "meta_description"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCategoryProduct = "ps_category_product"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsCategoryProduct struct {
|
||||
func (*PsCategoryProduct) TableName() string {
|
||||
return TableNamePsCategoryProduct
|
||||
}
|
||||
|
||||
var PsCategoryProductCols = struct {
|
||||
IDCategory gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDCategory: gormcol.Field{}.Set((&PsCategoryProduct{}).TableName(), "id_category"),
|
||||
IDProduct: gormcol.Field{}.Set((&PsCategoryProduct{}).TableName(), "id_product"),
|
||||
Position: gormcol.Field{}.Set((&PsCategoryProduct{}).TableName(), "position"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCategoryShop = "ps_category_shop"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsCategoryShop struct {
|
||||
func (*PsCategoryShop) TableName() string {
|
||||
return TableNamePsCategoryShop
|
||||
}
|
||||
|
||||
var PsCategoryShopCols = struct {
|
||||
IDCategory gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDCategory: gormcol.Field{}.Set((&PsCategoryShop{}).TableName(), "id_category"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCategoryShop{}).TableName(), "id_shop"),
|
||||
Position: gormcol.Field{}.Set((&PsCategoryShop{}).TableName(), "position"),
|
||||
}
|
||||
35
app/model/dbmodel/ps_cms.go
Normal file
35
app/model/dbmodel/ps_cms.go
Normal file
@@ -0,0 +1,35 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCm = "ps_cms"
|
||||
|
||||
// PsCm mapped from table <ps_cms>
|
||||
type PsCm struct {
|
||||
IDCms int32 `gorm:"column:id_cms;primaryKey;autoIncrement:true" json:"id_cms"`
|
||||
IDCmsCategory int32 `gorm:"column:id_cms_category;not null" json:"id_cms_category"`
|
||||
Position int32 `gorm:"column:position;not null" json:"position"`
|
||||
Active bool `gorm:"column:active;not null" json:"active"`
|
||||
Indexation bool `gorm:"column:indexation;not null;default:1" json:"indexation"`
|
||||
}
|
||||
|
||||
// TableName PsCm's table name
|
||||
func (*PsCm) TableName() string {
|
||||
return TableNamePsCm
|
||||
}
|
||||
|
||||
var PsCmCols = struct {
|
||||
IDCms gormcol.Field
|
||||
IDCmsCategory gormcol.Field
|
||||
Position gormcol.Field
|
||||
Active gormcol.Field
|
||||
Indexation gormcol.Field
|
||||
}{
|
||||
IDCms: gormcol.Field{}.Set((&PsCm{}).TableName(), "id_cms"),
|
||||
IDCmsCategory: gormcol.Field{}.Set((&PsCm{}).TableName(), "id_cms_category"),
|
||||
Position: gormcol.Field{}.Set((&PsCm{}).TableName(), "position"),
|
||||
Active: gormcol.Field{}.Set((&PsCm{}).TableName(), "active"),
|
||||
Indexation: gormcol.Field{}.Set((&PsCm{}).TableName(), "indexation"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -25,3 +24,21 @@ type PsCmsCategory struct {
|
||||
func (*PsCmsCategory) TableName() string {
|
||||
return TableNamePsCmsCategory
|
||||
}
|
||||
|
||||
var PsCmsCategoryCols = struct {
|
||||
IDCmsCategory gormcol.Field
|
||||
IDParent gormcol.Field
|
||||
LevelDepth gormcol.Field
|
||||
Active gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDCmsCategory: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "id_cms_category"),
|
||||
IDParent: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "id_parent"),
|
||||
LevelDepth: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "level_depth"),
|
||||
Active: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "active"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "date_upd"),
|
||||
Position: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "position"),
|
||||
}
|
||||
47
app/model/dbmodel/ps_cms_category_lang.go
Normal file
47
app/model/dbmodel/ps_cms_category_lang.go
Normal file
@@ -0,0 +1,47 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsCategoryLang = "ps_cms_category_lang"
|
||||
|
||||
// PsCmsCategoryLang mapped from table <ps_cms_category_lang>
|
||||
type PsCmsCategoryLang struct {
|
||||
IDCmsCategory int32 `gorm:"column:id_cms_category;primaryKey" json:"id_cms_category"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
|
||||
Name string `gorm:"column:name;not null;index:category_name,priority:1" json:"name"`
|
||||
Description *string `gorm:"column:description" json:"description"`
|
||||
LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"`
|
||||
MetaTitle *string `gorm:"column:meta_title" json:"meta_title"`
|
||||
MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"`
|
||||
MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
|
||||
}
|
||||
|
||||
// TableName PsCmsCategoryLang's table name
|
||||
func (*PsCmsCategoryLang) TableName() string {
|
||||
return TableNamePsCmsCategoryLang
|
||||
}
|
||||
|
||||
var PsCmsCategoryLangCols = struct {
|
||||
IDCmsCategory gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Name gormcol.Field
|
||||
Description gormcol.Field
|
||||
LinkRewrite gormcol.Field
|
||||
MetaTitle gormcol.Field
|
||||
MetaKeywords gormcol.Field
|
||||
MetaDescription gormcol.Field
|
||||
}{
|
||||
IDCmsCategory: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "id_cms_category"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "id_lang"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "id_shop"),
|
||||
Name: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "name"),
|
||||
Description: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "description"),
|
||||
LinkRewrite: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "link_rewrite"),
|
||||
MetaTitle: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "meta_title"),
|
||||
MetaKeywords: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "meta_keywords"),
|
||||
MetaDescription: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "meta_description"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsCategoryShop = "ps_cms_category_shop"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCmsCategoryShop struct {
|
||||
func (*PsCmsCategoryShop) TableName() string {
|
||||
return TableNamePsCmsCategoryShop
|
||||
}
|
||||
|
||||
var PsCmsCategoryShopCols = struct {
|
||||
IDCmsCategory gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCmsCategory: gormcol.Field{}.Set((&PsCmsCategoryShop{}).TableName(), "id_cms_category"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCmsCategoryShop{}).TableName(), "id_shop"),
|
||||
}
|
||||
47
app/model/dbmodel/ps_cms_lang.go
Normal file
47
app/model/dbmodel/ps_cms_lang.go
Normal file
@@ -0,0 +1,47 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsLang = "ps_cms_lang"
|
||||
|
||||
// PsCmsLang mapped from table <ps_cms_lang>
|
||||
type PsCmsLang struct {
|
||||
IDCms int32 `gorm:"column:id_cms;primaryKey" json:"id_cms"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
|
||||
MetaTitle string `gorm:"column:meta_title;not null" json:"meta_title"`
|
||||
HeadSeoTitle *string `gorm:"column:head_seo_title" json:"head_seo_title"`
|
||||
MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
|
||||
MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"`
|
||||
Content *string `gorm:"column:content" json:"content"`
|
||||
LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"`
|
||||
}
|
||||
|
||||
// TableName PsCmsLang's table name
|
||||
func (*PsCmsLang) TableName() string {
|
||||
return TableNamePsCmsLang
|
||||
}
|
||||
|
||||
var PsCmsLangCols = struct {
|
||||
IDCms gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
MetaTitle gormcol.Field
|
||||
HeadSeoTitle gormcol.Field
|
||||
MetaDescription gormcol.Field
|
||||
MetaKeywords gormcol.Field
|
||||
Content gormcol.Field
|
||||
LinkRewrite gormcol.Field
|
||||
}{
|
||||
IDCms: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "id_cms"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "id_lang"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "id_shop"),
|
||||
MetaTitle: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "meta_title"),
|
||||
HeadSeoTitle: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "head_seo_title"),
|
||||
MetaDescription: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "meta_description"),
|
||||
MetaKeywords: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "meta_keywords"),
|
||||
Content: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "content"),
|
||||
LinkRewrite: gormcol.Field{}.Set((&PsCmsLang{}).TableName(), "link_rewrite"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsRole = "ps_cms_role"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsCmsRole struct {
|
||||
func (*PsCmsRole) TableName() string {
|
||||
return TableNamePsCmsRole
|
||||
}
|
||||
|
||||
var PsCmsRoleCols = struct {
|
||||
IDCmsRole gormcol.Field
|
||||
Name gormcol.Field
|
||||
IDCms gormcol.Field
|
||||
}{
|
||||
IDCmsRole: gormcol.Field{}.Set((&PsCmsRole{}).TableName(), "id_cms_role"),
|
||||
Name: gormcol.Field{}.Set((&PsCmsRole{}).TableName(), "name"),
|
||||
IDCms: gormcol.Field{}.Set((&PsCmsRole{}).TableName(), "id_cms"),
|
||||
}
|
||||
32
app/model/dbmodel/ps_cms_role_lang.go
Normal file
32
app/model/dbmodel/ps_cms_role_lang.go
Normal file
@@ -0,0 +1,32 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsRoleLang = "ps_cms_role_lang"
|
||||
|
||||
// PsCmsRoleLang mapped from table <ps_cms_role_lang>
|
||||
type PsCmsRoleLang struct {
|
||||
IDCmsRole int32 `gorm:"column:id_cms_role;primaryKey" json:"id_cms_role"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey" json:"id_shop"`
|
||||
Name *string `gorm:"column:name" json:"name"`
|
||||
}
|
||||
|
||||
// TableName PsCmsRoleLang's table name
|
||||
func (*PsCmsRoleLang) TableName() string {
|
||||
return TableNamePsCmsRoleLang
|
||||
}
|
||||
|
||||
var PsCmsRoleLangCols = struct {
|
||||
IDCmsRole gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Name gormcol.Field
|
||||
}{
|
||||
IDCmsRole: gormcol.Field{}.Set((&PsCmsRoleLang{}).TableName(), "id_cms_role"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCmsRoleLang{}).TableName(), "id_lang"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCmsRoleLang{}).TableName(), "id_shop"),
|
||||
Name: gormcol.Field{}.Set((&PsCmsRoleLang{}).TableName(), "name"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCmsShop = "ps_cms_shop"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCmsShop struct {
|
||||
func (*PsCmsShop) TableName() string {
|
||||
return TableNamePsCmsShop
|
||||
}
|
||||
|
||||
var PsCmsShopCols = struct {
|
||||
IDCms gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCms: gormcol.Field{}.Set((&PsCmsShop{}).TableName(), "id_cms"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCmsShop{}).TableName(), "id_shop"),
|
||||
}
|
||||
59
app/model/dbmodel/ps_condition.go
Normal file
59
app/model/dbmodel/ps_condition.go
Normal file
@@ -0,0 +1,59 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCondition = "ps_condition"
|
||||
|
||||
// PsCondition mapped from table <ps_condition>
|
||||
type PsCondition struct {
|
||||
IDCondition int32 `gorm:"column:id_condition;primaryKey;autoIncrement:true" json:"id_condition"`
|
||||
IDPsCondition int32 `gorm:"column:id_ps_condition;primaryKey" json:"id_ps_condition"`
|
||||
Type string `gorm:"column:type;not null" json:"type"`
|
||||
Request *string `gorm:"column:request" json:"request"`
|
||||
Operator *string `gorm:"column:operator" json:"operator"`
|
||||
Value *string `gorm:"column:value" json:"value"`
|
||||
Result *string `gorm:"column:result" json:"result"`
|
||||
CalculationType *string `gorm:"column:calculation_type" json:"calculation_type"`
|
||||
CalculationDetail *string `gorm:"column:calculation_detail" json:"calculation_detail"`
|
||||
Validated bool `gorm:"column:validated;not null" json:"validated"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsCondition's table name
|
||||
func (*PsCondition) TableName() string {
|
||||
return TableNamePsCondition
|
||||
}
|
||||
|
||||
var PsConditionCols = struct {
|
||||
IDCondition gormcol.Field
|
||||
IDPsCondition gormcol.Field
|
||||
Type gormcol.Field
|
||||
Request gormcol.Field
|
||||
Operator gormcol.Field
|
||||
Value gormcol.Field
|
||||
Result gormcol.Field
|
||||
CalculationType gormcol.Field
|
||||
CalculationDetail gormcol.Field
|
||||
Validated gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDCondition: gormcol.Field{}.Set((&PsCondition{}).TableName(), "id_condition"),
|
||||
IDPsCondition: gormcol.Field{}.Set((&PsCondition{}).TableName(), "id_ps_condition"),
|
||||
Type: gormcol.Field{}.Set((&PsCondition{}).TableName(), "type"),
|
||||
Request: gormcol.Field{}.Set((&PsCondition{}).TableName(), "request"),
|
||||
Operator: gormcol.Field{}.Set((&PsCondition{}).TableName(), "operator"),
|
||||
Value: gormcol.Field{}.Set((&PsCondition{}).TableName(), "value"),
|
||||
Result: gormcol.Field{}.Set((&PsCondition{}).TableName(), "result"),
|
||||
CalculationType: gormcol.Field{}.Set((&PsCondition{}).TableName(), "calculation_type"),
|
||||
CalculationDetail: gormcol.Field{}.Set((&PsCondition{}).TableName(), "calculation_detail"),
|
||||
Validated: gormcol.Field{}.Set((&PsCondition{}).TableName(), "validated"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsCondition{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsCondition{}).TableName(), "date_upd"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsConditionAdvice = "ps_condition_advice"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsConditionAdvice struct {
|
||||
func (*PsConditionAdvice) TableName() string {
|
||||
return TableNamePsConditionAdvice
|
||||
}
|
||||
|
||||
var PsConditionAdviceCols = struct {
|
||||
IDCondition gormcol.Field
|
||||
IDAdvice gormcol.Field
|
||||
Display gormcol.Field
|
||||
}{
|
||||
IDCondition: gormcol.Field{}.Set((&PsConditionAdvice{}).TableName(), "id_condition"),
|
||||
IDAdvice: gormcol.Field{}.Set((&PsConditionAdvice{}).TableName(), "id_advice"),
|
||||
Display: gormcol.Field{}.Set((&PsConditionAdvice{}).TableName(), "display"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsConditionBadge = "ps_condition_badge"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsConditionBadge struct {
|
||||
func (*PsConditionBadge) TableName() string {
|
||||
return TableNamePsConditionBadge
|
||||
}
|
||||
|
||||
var PsConditionBadgeCols = struct {
|
||||
IDCondition gormcol.Field
|
||||
IDBadge gormcol.Field
|
||||
}{
|
||||
IDCondition: gormcol.Field{}.Set((&PsConditionBadge{}).TableName(), "id_condition"),
|
||||
IDBadge: gormcol.Field{}.Set((&PsConditionBadge{}).TableName(), "id_badge"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -25,3 +24,21 @@ type PsConfiguration struct {
|
||||
func (*PsConfiguration) TableName() string {
|
||||
return TableNamePsConfiguration
|
||||
}
|
||||
|
||||
var PsConfigurationCols = struct {
|
||||
IDConfiguration gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Name gormcol.Field
|
||||
Value gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDConfiguration: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "id_configuration"),
|
||||
IDShopGroup: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "id_shop_group"),
|
||||
IDShop: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "id_shop"),
|
||||
Name: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "name"),
|
||||
Value: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "value"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsConfiguration{}).TableName(), "date_upd"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -25,3 +24,21 @@ type PsConfigurationKpi struct {
|
||||
func (*PsConfigurationKpi) TableName() string {
|
||||
return TableNamePsConfigurationKpi
|
||||
}
|
||||
|
||||
var PsConfigurationKpiCols = struct {
|
||||
IDConfigurationKpi gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Name gormcol.Field
|
||||
Value gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDConfigurationKpi: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "id_configuration_kpi"),
|
||||
IDShopGroup: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "id_shop_group"),
|
||||
IDShop: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "id_shop"),
|
||||
Name: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "name"),
|
||||
Value: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "value"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsConfigurationKpi{}).TableName(), "date_upd"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -22,3 +21,15 @@ type PsConfigurationKpiLang struct {
|
||||
func (*PsConfigurationKpiLang) TableName() string {
|
||||
return TableNamePsConfigurationKpiLang
|
||||
}
|
||||
|
||||
var PsConfigurationKpiLangCols = struct {
|
||||
IDConfigurationKpi gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Value gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDConfigurationKpi: gormcol.Field{}.Set((&PsConfigurationKpiLang{}).TableName(), "id_configuration_kpi"),
|
||||
IDLang: gormcol.Field{}.Set((&PsConfigurationKpiLang{}).TableName(), "id_lang"),
|
||||
Value: gormcol.Field{}.Set((&PsConfigurationKpiLang{}).TableName(), "value"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsConfigurationKpiLang{}).TableName(), "date_upd"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -22,3 +21,15 @@ type PsConfigurationLang struct {
|
||||
func (*PsConfigurationLang) TableName() string {
|
||||
return TableNamePsConfigurationLang
|
||||
}
|
||||
|
||||
var PsConfigurationLangCols = struct {
|
||||
IDConfiguration gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Value gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDConfiguration: gormcol.Field{}.Set((&PsConfigurationLang{}).TableName(), "id_configuration"),
|
||||
IDLang: gormcol.Field{}.Set((&PsConfigurationLang{}).TableName(), "id_lang"),
|
||||
Value: gormcol.Field{}.Set((&PsConfigurationLang{}).TableName(), "value"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsConfigurationLang{}).TableName(), "date_upd"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -26,3 +25,23 @@ type PsConnection struct {
|
||||
func (*PsConnection) TableName() string {
|
||||
return TableNamePsConnection
|
||||
}
|
||||
|
||||
var PsConnectionCols = struct {
|
||||
IDConnections gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDGuest gormcol.Field
|
||||
IDPage gormcol.Field
|
||||
IPAddress gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
HTTPReferer gormcol.Field
|
||||
}{
|
||||
IDConnections: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_connections"),
|
||||
IDShopGroup: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_shop_group"),
|
||||
IDShop: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_shop"),
|
||||
IDGuest: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_guest"),
|
||||
IDPage: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_page"),
|
||||
IPAddress: gormcol.Field{}.Set((&PsConnection{}).TableName(), "ip_address"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsConnection{}).TableName(), "date_add"),
|
||||
HTTPReferer: gormcol.Field{}.Set((&PsConnection{}).TableName(), "http_referer"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -22,3 +21,15 @@ type PsConnectionsPage struct {
|
||||
func (*PsConnectionsPage) TableName() string {
|
||||
return TableNamePsConnectionsPage
|
||||
}
|
||||
|
||||
var PsConnectionsPageCols = struct {
|
||||
IDConnections gormcol.Field
|
||||
IDPage gormcol.Field
|
||||
TimeStart gormcol.Field
|
||||
TimeEnd gormcol.Field
|
||||
}{
|
||||
IDConnections: gormcol.Field{}.Set((&PsConnectionsPage{}).TableName(), "id_connections"),
|
||||
IDPage: gormcol.Field{}.Set((&PsConnectionsPage{}).TableName(), "id_page"),
|
||||
TimeStart: gormcol.Field{}.Set((&PsConnectionsPage{}).TableName(), "time_start"),
|
||||
TimeEnd: gormcol.Field{}.Set((&PsConnectionsPage{}).TableName(), "time_end"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -24,3 +23,19 @@ type PsConnectionsSource struct {
|
||||
func (*PsConnectionsSource) TableName() string {
|
||||
return TableNamePsConnectionsSource
|
||||
}
|
||||
|
||||
var PsConnectionsSourceCols = struct {
|
||||
IDConnectionsSource gormcol.Field
|
||||
IDConnections gormcol.Field
|
||||
HTTPReferer gormcol.Field
|
||||
RequestURI gormcol.Field
|
||||
Keywords gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
}{
|
||||
IDConnectionsSource: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "id_connections_source"),
|
||||
IDConnections: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "id_connections"),
|
||||
HTTPReferer: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "http_referer"),
|
||||
RequestURI: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "request_uri"),
|
||||
Keywords: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "keywords"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "date_add"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsContact = "ps_contact"
|
||||
|
||||
@@ -18,3 +18,15 @@ type PsContact struct {
|
||||
func (*PsContact) TableName() string {
|
||||
return TableNamePsContact
|
||||
}
|
||||
|
||||
var PsContactCols = struct {
|
||||
IDContact gormcol.Field
|
||||
Email gormcol.Field
|
||||
CustomerService gormcol.Field
|
||||
Position gormcol.Field
|
||||
}{
|
||||
IDContact: gormcol.Field{}.Set((&PsContact{}).TableName(), "id_contact"),
|
||||
Email: gormcol.Field{}.Set((&PsContact{}).TableName(), "email"),
|
||||
CustomerService: gormcol.Field{}.Set((&PsContact{}).TableName(), "customer_service"),
|
||||
Position: gormcol.Field{}.Set((&PsContact{}).TableName(), "position"),
|
||||
}
|
||||
32
app/model/dbmodel/ps_contact_lang.go
Normal file
32
app/model/dbmodel/ps_contact_lang.go
Normal file
@@ -0,0 +1,32 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsContactLang = "ps_contact_lang"
|
||||
|
||||
// PsContactLang mapped from table <ps_contact_lang>
|
||||
type PsContactLang struct {
|
||||
IDContact int32 `gorm:"column:id_contact;primaryKey" json:"id_contact"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
Description *string `gorm:"column:description" json:"description"`
|
||||
}
|
||||
|
||||
// TableName PsContactLang's table name
|
||||
func (*PsContactLang) TableName() string {
|
||||
return TableNamePsContactLang
|
||||
}
|
||||
|
||||
var PsContactLangCols = struct {
|
||||
IDContact gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
Description gormcol.Field
|
||||
}{
|
||||
IDContact: gormcol.Field{}.Set((&PsContactLang{}).TableName(), "id_contact"),
|
||||
IDLang: gormcol.Field{}.Set((&PsContactLang{}).TableName(), "id_lang"),
|
||||
Name: gormcol.Field{}.Set((&PsContactLang{}).TableName(), "name"),
|
||||
Description: gormcol.Field{}.Set((&PsContactLang{}).TableName(), "description"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsContactShop = "ps_contact_shop"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsContactShop struct {
|
||||
func (*PsContactShop) TableName() string {
|
||||
return TableNamePsContactShop
|
||||
}
|
||||
|
||||
var PsContactShopCols = struct {
|
||||
IDContact gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDContact: gormcol.Field{}.Set((&PsContactShop{}).TableName(), "id_contact"),
|
||||
IDShop: gormcol.Field{}.Set((&PsContactShop{}).TableName(), "id_shop"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCountry = "ps_country"
|
||||
|
||||
@@ -25,3 +25,29 @@ type PsCountry struct {
|
||||
func (*PsCountry) TableName() string {
|
||||
return TableNamePsCountry
|
||||
}
|
||||
|
||||
var PsCountryCols = struct {
|
||||
IDCountry gormcol.Field
|
||||
IDZone gormcol.Field
|
||||
IDCurrency gormcol.Field
|
||||
IsoCode gormcol.Field
|
||||
CallPrefix gormcol.Field
|
||||
Active gormcol.Field
|
||||
ContainsStates gormcol.Field
|
||||
NeedIdentificationNumber gormcol.Field
|
||||
NeedZipCode gormcol.Field
|
||||
ZipCodeFormat gormcol.Field
|
||||
DisplayTaxLabel gormcol.Field
|
||||
}{
|
||||
IDCountry: gormcol.Field{}.Set((&PsCountry{}).TableName(), "id_country"),
|
||||
IDZone: gormcol.Field{}.Set((&PsCountry{}).TableName(), "id_zone"),
|
||||
IDCurrency: gormcol.Field{}.Set((&PsCountry{}).TableName(), "id_currency"),
|
||||
IsoCode: gormcol.Field{}.Set((&PsCountry{}).TableName(), "iso_code"),
|
||||
CallPrefix: gormcol.Field{}.Set((&PsCountry{}).TableName(), "call_prefix"),
|
||||
Active: gormcol.Field{}.Set((&PsCountry{}).TableName(), "active"),
|
||||
ContainsStates: gormcol.Field{}.Set((&PsCountry{}).TableName(), "contains_states"),
|
||||
NeedIdentificationNumber: gormcol.Field{}.Set((&PsCountry{}).TableName(), "need_identification_number"),
|
||||
NeedZipCode: gormcol.Field{}.Set((&PsCountry{}).TableName(), "need_zip_code"),
|
||||
ZipCodeFormat: gormcol.Field{}.Set((&PsCountry{}).TableName(), "zip_code_format"),
|
||||
DisplayTaxLabel: gormcol.Field{}.Set((&PsCountry{}).TableName(), "display_tax_label"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCountryLang = "ps_country_lang"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsCountryLang struct {
|
||||
func (*PsCountryLang) TableName() string {
|
||||
return TableNamePsCountryLang
|
||||
}
|
||||
|
||||
var PsCountryLangCols = struct {
|
||||
IDCountry gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
}{
|
||||
IDCountry: gormcol.Field{}.Set((&PsCountryLang{}).TableName(), "id_country"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCountryLang{}).TableName(), "id_lang"),
|
||||
Name: gormcol.Field{}.Set((&PsCountryLang{}).TableName(), "name"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCountryShop = "ps_country_shop"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCountryShop struct {
|
||||
func (*PsCountryShop) TableName() string {
|
||||
return TableNamePsCountryShop
|
||||
}
|
||||
|
||||
var PsCountryShopCols = struct {
|
||||
IDCountry gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDCountry: gormcol.Field{}.Set((&PsCountryShop{}).TableName(), "id_country"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCountryShop{}).TableName(), "id_shop"),
|
||||
}
|
||||
44
app/model/dbmodel/ps_currency.go
Normal file
44
app/model/dbmodel/ps_currency.go
Normal file
@@ -0,0 +1,44 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCurrency = "ps_currency"
|
||||
|
||||
// PsCurrency mapped from table <ps_currency>
|
||||
type PsCurrency struct {
|
||||
IDCurrency int32 `gorm:"column:id_currency;primaryKey;autoIncrement:true" json:"id_currency"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
IsoCode string `gorm:"column:iso_code;not null;index:currency_iso_code,priority:1;default:0" json:"iso_code"`
|
||||
NumericIsoCode *string `gorm:"column:numeric_iso_code" json:"numeric_iso_code"`
|
||||
Precision int32 `gorm:"column:precision;not null;default:6" json:"precision"`
|
||||
ConversionRate float64 `gorm:"column:conversion_rate;not null" json:"conversion_rate"`
|
||||
Deleted bool `gorm:"column:deleted;not null" json:"deleted"`
|
||||
Active bool `gorm:"column:active;not null;default:1" json:"active"`
|
||||
}
|
||||
|
||||
// TableName PsCurrency's table name
|
||||
func (*PsCurrency) TableName() string {
|
||||
return TableNamePsCurrency
|
||||
}
|
||||
|
||||
var PsCurrencyCols = struct {
|
||||
IDCurrency gormcol.Field
|
||||
Name gormcol.Field
|
||||
IsoCode gormcol.Field
|
||||
NumericIsoCode gormcol.Field
|
||||
Precision gormcol.Field
|
||||
ConversionRate gormcol.Field
|
||||
Deleted gormcol.Field
|
||||
Active gormcol.Field
|
||||
}{
|
||||
IDCurrency: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "id_currency"),
|
||||
Name: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "name"),
|
||||
IsoCode: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "iso_code"),
|
||||
NumericIsoCode: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "numeric_iso_code"),
|
||||
Precision: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "precision"),
|
||||
ConversionRate: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "conversion_rate"),
|
||||
Deleted: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "deleted"),
|
||||
Active: gormcol.Field{}.Set((&PsCurrency{}).TableName(), "active"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCurrencyLang = "ps_currency_lang"
|
||||
|
||||
@@ -18,3 +18,15 @@ type PsCurrencyLang struct {
|
||||
func (*PsCurrencyLang) TableName() string {
|
||||
return TableNamePsCurrencyLang
|
||||
}
|
||||
|
||||
var PsCurrencyLangCols = struct {
|
||||
IDCurrency gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Name gormcol.Field
|
||||
Symbol gormcol.Field
|
||||
}{
|
||||
IDCurrency: gormcol.Field{}.Set((&PsCurrencyLang{}).TableName(), "id_currency"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCurrencyLang{}).TableName(), "id_lang"),
|
||||
Name: gormcol.Field{}.Set((&PsCurrencyLang{}).TableName(), "name"),
|
||||
Symbol: gormcol.Field{}.Set((&PsCurrencyLang{}).TableName(), "symbol"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCurrencyShop = "ps_currency_shop"
|
||||
|
||||
@@ -17,3 +17,13 @@ type PsCurrencyShop struct {
|
||||
func (*PsCurrencyShop) TableName() string {
|
||||
return TableNamePsCurrencyShop
|
||||
}
|
||||
|
||||
var PsCurrencyShopCols = struct {
|
||||
IDCurrency gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
ConversionRate gormcol.Field
|
||||
}{
|
||||
IDCurrency: gormcol.Field{}.Set((&PsCurrencyShop{}).TableName(), "id_currency"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCurrencyShop{}).TableName(), "id_shop"),
|
||||
ConversionRate: gormcol.Field{}.Set((&PsCurrencyShop{}).TableName(), "conversion_rate"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -51,3 +50,73 @@ type PsCustomer struct {
|
||||
func (*PsCustomer) TableName() string {
|
||||
return TableNamePsCustomer
|
||||
}
|
||||
|
||||
var PsCustomerCols = struct {
|
||||
IDCustomer gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDGender gormcol.Field
|
||||
IDDefaultGroup gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDRisk gormcol.Field
|
||||
Company gormcol.Field
|
||||
Siret gormcol.Field
|
||||
Ape gormcol.Field
|
||||
Firstname gormcol.Field
|
||||
Lastname gormcol.Field
|
||||
Email gormcol.Field
|
||||
Passwd gormcol.Field
|
||||
LastPasswdGen gormcol.Field
|
||||
Birthday gormcol.Field
|
||||
Newsletter gormcol.Field
|
||||
IPRegistrationNewsletter gormcol.Field
|
||||
NewsletterDateAdd gormcol.Field
|
||||
Optin gormcol.Field
|
||||
Website gormcol.Field
|
||||
OutstandingAllowAmount gormcol.Field
|
||||
ShowPublicPrices gormcol.Field
|
||||
MaxPaymentDays gormcol.Field
|
||||
SecureKey gormcol.Field
|
||||
Note gormcol.Field
|
||||
Active gormcol.Field
|
||||
IsGuest gormcol.Field
|
||||
Deleted gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
ResetPasswordToken gormcol.Field
|
||||
ResetPasswordValidity gormcol.Field
|
||||
}{
|
||||
IDCustomer: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_customer"),
|
||||
IDShopGroup: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_shop_group"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_shop"),
|
||||
IDGender: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_gender"),
|
||||
IDDefaultGroup: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_default_group"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_lang"),
|
||||
IDRisk: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "id_risk"),
|
||||
Company: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "company"),
|
||||
Siret: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "siret"),
|
||||
Ape: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "ape"),
|
||||
Firstname: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "firstname"),
|
||||
Lastname: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "lastname"),
|
||||
Email: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "email"),
|
||||
Passwd: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "passwd"),
|
||||
LastPasswdGen: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "last_passwd_gen"),
|
||||
Birthday: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "birthday"),
|
||||
Newsletter: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "newsletter"),
|
||||
IPRegistrationNewsletter: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "ip_registration_newsletter"),
|
||||
NewsletterDateAdd: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "newsletter_date_add"),
|
||||
Optin: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "optin"),
|
||||
Website: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "website"),
|
||||
OutstandingAllowAmount: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "outstanding_allow_amount"),
|
||||
ShowPublicPrices: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "show_public_prices"),
|
||||
MaxPaymentDays: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "max_payment_days"),
|
||||
SecureKey: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "secure_key"),
|
||||
Note: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "note"),
|
||||
Active: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "active"),
|
||||
IsGuest: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "is_guest"),
|
||||
Deleted: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "deleted"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "date_upd"),
|
||||
ResetPasswordToken: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "reset_password_token"),
|
||||
ResetPasswordValidity: gormcol.Field{}.Set((&PsCustomer{}).TableName(), "reset_password_validity"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomerGroup = "ps_customer_group"
|
||||
|
||||
@@ -16,3 +16,11 @@ type PsCustomerGroup struct {
|
||||
func (*PsCustomerGroup) TableName() string {
|
||||
return TableNamePsCustomerGroup
|
||||
}
|
||||
|
||||
var PsCustomerGroupCols = struct {
|
||||
IDCustomer gormcol.Field
|
||||
IDGroup gormcol.Field
|
||||
}{
|
||||
IDCustomer: gormcol.Field{}.Set((&PsCustomerGroup{}).TableName(), "id_customer"),
|
||||
IDGroup: gormcol.Field{}.Set((&PsCustomerGroup{}).TableName(), "id_group"),
|
||||
}
|
||||
59
app/model/dbmodel/ps_customer_message.go
Normal file
59
app/model/dbmodel/ps_customer_message.go
Normal file
@@ -0,0 +1,59 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsCustomerMessage = "ps_customer_message"
|
||||
|
||||
// PsCustomerMessage mapped from table <ps_customer_message>
|
||||
type PsCustomerMessage struct {
|
||||
IDCustomerMessage int32 `gorm:"column:id_customer_message;primaryKey;autoIncrement:true" json:"id_customer_message"`
|
||||
IDCustomerThread *int32 `gorm:"column:id_customer_thread;index:id_customer_thread,priority:1" json:"id_customer_thread"`
|
||||
IDEmployee *int32 `gorm:"column:id_employee;index:id_employee,priority:1" json:"id_employee"`
|
||||
Message string `gorm:"column:message;not null" json:"message"`
|
||||
FileName *string `gorm:"column:file_name" json:"file_name"`
|
||||
IPAddress *string `gorm:"column:ip_address" json:"ip_address"`
|
||||
UserAgent *string `gorm:"column:user_agent" json:"user_agent"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
Private int32 `gorm:"column:private;not null" json:"private"`
|
||||
Read bool `gorm:"column:read;not null" json:"read"`
|
||||
Product *string `gorm:"column:product" json:"product"`
|
||||
}
|
||||
|
||||
// TableName PsCustomerMessage's table name
|
||||
func (*PsCustomerMessage) TableName() string {
|
||||
return TableNamePsCustomerMessage
|
||||
}
|
||||
|
||||
var PsCustomerMessageCols = struct {
|
||||
IDCustomerMessage gormcol.Field
|
||||
IDCustomerThread gormcol.Field
|
||||
IDEmployee gormcol.Field
|
||||
Message gormcol.Field
|
||||
FileName gormcol.Field
|
||||
IPAddress gormcol.Field
|
||||
UserAgent gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
Private gormcol.Field
|
||||
Read gormcol.Field
|
||||
Product gormcol.Field
|
||||
}{
|
||||
IDCustomerMessage: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "id_customer_message"),
|
||||
IDCustomerThread: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "id_customer_thread"),
|
||||
IDEmployee: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "id_employee"),
|
||||
Message: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "message"),
|
||||
FileName: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "file_name"),
|
||||
IPAddress: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "ip_address"),
|
||||
UserAgent: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "user_agent"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "date_upd"),
|
||||
Private: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "private"),
|
||||
Read: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "read"),
|
||||
Product: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "product"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomerMessageSyncImap = "ps_customer_message_sync_imap"
|
||||
|
||||
@@ -15,3 +15,9 @@ type PsCustomerMessageSyncImap struct {
|
||||
func (*PsCustomerMessageSyncImap) TableName() string {
|
||||
return TableNamePsCustomerMessageSyncImap
|
||||
}
|
||||
|
||||
var PsCustomerMessageSyncImapCols = struct {
|
||||
Md5Header gormcol.Field
|
||||
}{
|
||||
Md5Header: gormcol.Field{}.Set((&PsCustomerMessageSyncImap{}).TableName(), "md5_header"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -30,3 +29,31 @@ type PsCustomerThread struct {
|
||||
func (*PsCustomerThread) TableName() string {
|
||||
return TableNamePsCustomerThread
|
||||
}
|
||||
|
||||
var PsCustomerThreadCols = struct {
|
||||
IDCustomerThread gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDContact gormcol.Field
|
||||
IDCustomer gormcol.Field
|
||||
IDOrder gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
Status gormcol.Field
|
||||
Email gormcol.Field
|
||||
Token gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDCustomerThread: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_customer_thread"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_shop"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_lang"),
|
||||
IDContact: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_contact"),
|
||||
IDCustomer: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_customer"),
|
||||
IDOrder: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_order"),
|
||||
IDProduct: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "id_product"),
|
||||
Status: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "status"),
|
||||
Email: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "email"),
|
||||
Token: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "token"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsCustomerThread{}).TableName(), "date_upd"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomization = "ps_customization"
|
||||
|
||||
@@ -23,3 +23,25 @@ type PsCustomization struct {
|
||||
func (*PsCustomization) TableName() string {
|
||||
return TableNamePsCustomization
|
||||
}
|
||||
|
||||
var PsCustomizationCols = struct {
|
||||
IDCustomization gormcol.Field
|
||||
IDProductAttribute gormcol.Field
|
||||
IDAddressDelivery gormcol.Field
|
||||
IDCart gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
Quantity gormcol.Field
|
||||
QuantityRefunded gormcol.Field
|
||||
QuantityReturned gormcol.Field
|
||||
InCart gormcol.Field
|
||||
}{
|
||||
IDCustomization: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "id_customization"),
|
||||
IDProductAttribute: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "id_product_attribute"),
|
||||
IDAddressDelivery: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "id_address_delivery"),
|
||||
IDCart: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "id_cart"),
|
||||
IDProduct: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "id_product"),
|
||||
Quantity: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "quantity"),
|
||||
QuantityRefunded: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "quantity_refunded"),
|
||||
QuantityReturned: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "quantity_returned"),
|
||||
InCart: gormcol.Field{}.Set((&PsCustomization{}).TableName(), "in_cart"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomizationField = "ps_customization_field"
|
||||
|
||||
@@ -20,3 +20,19 @@ type PsCustomizationField struct {
|
||||
func (*PsCustomizationField) TableName() string {
|
||||
return TableNamePsCustomizationField
|
||||
}
|
||||
|
||||
var PsCustomizationFieldCols = struct {
|
||||
IDCustomizationField gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
Type gormcol.Field
|
||||
Required gormcol.Field
|
||||
IsModule gormcol.Field
|
||||
IsDeleted gormcol.Field
|
||||
}{
|
||||
IDCustomizationField: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "id_customization_field"),
|
||||
IDProduct: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "id_product"),
|
||||
Type: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "type"),
|
||||
Required: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "required"),
|
||||
IsModule: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "is_module"),
|
||||
IsDeleted: gormcol.Field{}.Set((&PsCustomizationField{}).TableName(), "is_deleted"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomizationFieldLang = "ps_customization_field_lang"
|
||||
|
||||
@@ -18,3 +18,15 @@ type PsCustomizationFieldLang struct {
|
||||
func (*PsCustomizationFieldLang) TableName() string {
|
||||
return TableNamePsCustomizationFieldLang
|
||||
}
|
||||
|
||||
var PsCustomizationFieldLangCols = struct {
|
||||
IDCustomizationField gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
Name gormcol.Field
|
||||
}{
|
||||
IDCustomizationField: gormcol.Field{}.Set((&PsCustomizationFieldLang{}).TableName(), "id_customization_field"),
|
||||
IDLang: gormcol.Field{}.Set((&PsCustomizationFieldLang{}).TableName(), "id_lang"),
|
||||
IDShop: gormcol.Field{}.Set((&PsCustomizationFieldLang{}).TableName(), "id_shop"),
|
||||
Name: gormcol.Field{}.Set((&PsCustomizationFieldLang{}).TableName(), "name"),
|
||||
}
|
||||
41
app/model/dbmodel/ps_customized_data.go
Normal file
41
app/model/dbmodel/ps_customized_data.go
Normal file
@@ -0,0 +1,41 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomizedDatum = "ps_customized_data"
|
||||
|
||||
// PsCustomizedDatum mapped from table <ps_customized_data>
|
||||
type PsCustomizedDatum struct {
|
||||
IDCustomization int32 `gorm:"column:id_customization;primaryKey" json:"id_customization"`
|
||||
Type bool `gorm:"column:type;primaryKey" json:"type"`
|
||||
Index int32 `gorm:"column:index;primaryKey" json:"index"`
|
||||
Value string `gorm:"column:value;not null" json:"value"`
|
||||
IDModule int32 `gorm:"column:id_module;not null" json:"id_module"`
|
||||
Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"`
|
||||
Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"`
|
||||
}
|
||||
|
||||
// TableName PsCustomizedDatum's table name
|
||||
func (*PsCustomizedDatum) TableName() string {
|
||||
return TableNamePsCustomizedDatum
|
||||
}
|
||||
|
||||
var PsCustomizedDatumCols = struct {
|
||||
IDCustomization gormcol.Field
|
||||
Type gormcol.Field
|
||||
Index gormcol.Field
|
||||
Value gormcol.Field
|
||||
IDModule gormcol.Field
|
||||
Price gormcol.Field
|
||||
Weight gormcol.Field
|
||||
}{
|
||||
IDCustomization: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "id_customization"),
|
||||
Type: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "type"),
|
||||
Index: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "index"),
|
||||
Value: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "value"),
|
||||
IDModule: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "id_module"),
|
||||
Price: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "price"),
|
||||
Weight: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "weight"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -21,3 +20,13 @@ type PsDateRange struct {
|
||||
func (*PsDateRange) TableName() string {
|
||||
return TableNamePsDateRange
|
||||
}
|
||||
|
||||
var PsDateRangeCols = struct {
|
||||
IDDateRange gormcol.Field
|
||||
TimeStart gormcol.Field
|
||||
TimeEnd gormcol.Field
|
||||
}{
|
||||
IDDateRange: gormcol.Field{}.Set((&PsDateRange{}).TableName(), "id_date_range"),
|
||||
TimeStart: gormcol.Field{}.Set((&PsDateRange{}).TableName(), "time_start"),
|
||||
TimeEnd: gormcol.Field{}.Set((&PsDateRange{}).TableName(), "time_end"),
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsDelivery = "ps_delivery"
|
||||
|
||||
@@ -22,3 +22,23 @@ type PsDelivery struct {
|
||||
func (*PsDelivery) TableName() string {
|
||||
return TableNamePsDelivery
|
||||
}
|
||||
|
||||
var PsDeliveryCols = struct {
|
||||
IDDelivery gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDShopGroup gormcol.Field
|
||||
IDCarrier gormcol.Field
|
||||
IDRangePrice gormcol.Field
|
||||
IDRangeWeight gormcol.Field
|
||||
IDZone gormcol.Field
|
||||
Price gormcol.Field
|
||||
}{
|
||||
IDDelivery: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_delivery"),
|
||||
IDShop: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_shop"),
|
||||
IDShopGroup: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_shop_group"),
|
||||
IDCarrier: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_carrier"),
|
||||
IDRangePrice: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_range_price"),
|
||||
IDRangeWeight: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_range_weight"),
|
||||
IDZone: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "id_zone"),
|
||||
Price: gormcol.Field{}.Set((&PsDelivery{}).TableName(), "price"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -23,3 +22,17 @@ type PsDpdpolandCarrier struct {
|
||||
func (*PsDpdpolandCarrier) TableName() string {
|
||||
return TableNamePsDpdpolandCarrier
|
||||
}
|
||||
|
||||
var PsDpdpolandCarrierCols = struct {
|
||||
IDDpdpolandCarrier gormcol.Field
|
||||
IDCarrier gormcol.Field
|
||||
IDReference gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDDpdpolandCarrier: gormcol.Field{}.Set((&PsDpdpolandCarrier{}).TableName(), "id_dpdpoland_carrier"),
|
||||
IDCarrier: gormcol.Field{}.Set((&PsDpdpolandCarrier{}).TableName(), "id_carrier"),
|
||||
IDReference: gormcol.Field{}.Set((&PsDpdpolandCarrier{}).TableName(), "id_reference"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsDpdpolandCarrier{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsDpdpolandCarrier{}).TableName(), "date_upd"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -24,3 +23,19 @@ type PsDpdpolandCountry struct {
|
||||
func (*PsDpdpolandCountry) TableName() string {
|
||||
return TableNamePsDpdpolandCountry
|
||||
}
|
||||
|
||||
var PsDpdpolandCountryCols = struct {
|
||||
IDDpdpolandCountry gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
IDCountry gormcol.Field
|
||||
Enabled gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDDpdpolandCountry: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "id_dpdpoland_country"),
|
||||
IDShop: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "id_shop"),
|
||||
IDCountry: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "id_country"),
|
||||
Enabled: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "enabled"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsDpdpolandCountry{}).TableName(), "date_upd"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -23,3 +22,17 @@ type PsDpdpolandManifest struct {
|
||||
func (*PsDpdpolandManifest) TableName() string {
|
||||
return TableNamePsDpdpolandManifest
|
||||
}
|
||||
|
||||
var PsDpdpolandManifestCols = struct {
|
||||
IDManifest gormcol.Field
|
||||
IDManifestWs gormcol.Field
|
||||
IDPackageWs gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDManifest: gormcol.Field{}.Set((&PsDpdpolandManifest{}).TableName(), "id_manifest"),
|
||||
IDManifestWs: gormcol.Field{}.Set((&PsDpdpolandManifest{}).TableName(), "id_manifest_ws"),
|
||||
IDPackageWs: gormcol.Field{}.Set((&PsDpdpolandManifest{}).TableName(), "id_package_ws"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsDpdpolandManifest{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsDpdpolandManifest{}).TableName(), "date_upd"),
|
||||
}
|
||||
86
app/model/dbmodel/ps_dpdpoland_package.go
Normal file
86
app/model/dbmodel/ps_dpdpoland_package.go
Normal file
@@ -0,0 +1,86 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandPackage = "ps_dpdpoland_package"
|
||||
|
||||
// PsDpdpolandPackage mapped from table <ps_dpdpoland_package>
|
||||
type PsDpdpolandPackage struct {
|
||||
IDPackage int32 `gorm:"column:id_package;primaryKey;autoIncrement:true" json:"id_package"`
|
||||
IDPackageWs int32 `gorm:"column:id_package_ws;not null;uniqueIndex:id_package_ws,priority:1" json:"id_package_ws"`
|
||||
IDOrder int32 `gorm:"column:id_order;not null" json:"id_order"`
|
||||
SessionID int32 `gorm:"column:sessionId;not null" json:"sessionId"`
|
||||
SessionType string `gorm:"column:sessionType;not null" json:"sessionType"`
|
||||
PayerNumber string `gorm:"column:payerNumber;not null" json:"payerNumber"`
|
||||
IDAddressSender int32 `gorm:"column:id_address_sender;not null" json:"id_address_sender"`
|
||||
IDAddressDelivery int32 `gorm:"column:id_address_delivery;not null" json:"id_address_delivery"`
|
||||
CodAmount *float64 `gorm:"column:cod_amount" json:"cod_amount"`
|
||||
DeclaredValueAmount *float64 `gorm:"column:declaredValue_amount" json:"declaredValue_amount"`
|
||||
Ref1 *string `gorm:"column:ref1" json:"ref1"`
|
||||
Ref2 *string `gorm:"column:ref2" json:"ref2"`
|
||||
AdditionalInfo *string `gorm:"column:additional_info" json:"additional_info"`
|
||||
LabelsPrinted bool `gorm:"column:labels_printed;not null" json:"labels_printed"`
|
||||
IDSenderAddress int32 `gorm:"column:id_sender_address;not null" json:"id_sender_address"`
|
||||
Cud bool `gorm:"column:cud;not null" json:"cud"`
|
||||
Rod bool `gorm:"column:rod;not null" json:"rod"`
|
||||
Dpde bool `gorm:"column:dpde;not null" json:"dpde"`
|
||||
Dpdnd bool `gorm:"column:dpdnd;not null" json:"dpdnd"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandPackage's table name
|
||||
func (*PsDpdpolandPackage) TableName() string {
|
||||
return TableNamePsDpdpolandPackage
|
||||
}
|
||||
|
||||
var PsDpdpolandPackageCols = struct {
|
||||
IDPackage gormcol.Field
|
||||
IDPackageWs gormcol.Field
|
||||
IDOrder gormcol.Field
|
||||
SessionID gormcol.Field
|
||||
SessionType gormcol.Field
|
||||
PayerNumber gormcol.Field
|
||||
IDAddressSender gormcol.Field
|
||||
IDAddressDelivery gormcol.Field
|
||||
CodAmount gormcol.Field
|
||||
DeclaredValueAmount gormcol.Field
|
||||
Ref1 gormcol.Field
|
||||
Ref2 gormcol.Field
|
||||
AdditionalInfo gormcol.Field
|
||||
LabelsPrinted gormcol.Field
|
||||
IDSenderAddress gormcol.Field
|
||||
Cud gormcol.Field
|
||||
Rod gormcol.Field
|
||||
Dpde gormcol.Field
|
||||
Dpdnd gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDPackage: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_package"),
|
||||
IDPackageWs: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_package_ws"),
|
||||
IDOrder: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_order"),
|
||||
SessionID: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "sessionId"),
|
||||
SessionType: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "sessionType"),
|
||||
PayerNumber: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "payerNumber"),
|
||||
IDAddressSender: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_address_sender"),
|
||||
IDAddressDelivery: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_address_delivery"),
|
||||
CodAmount: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "cod_amount"),
|
||||
DeclaredValueAmount: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "declaredValue_amount"),
|
||||
Ref1: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "ref1"),
|
||||
Ref2: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "ref2"),
|
||||
AdditionalInfo: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "additional_info"),
|
||||
LabelsPrinted: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "labels_printed"),
|
||||
IDSenderAddress: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "id_sender_address"),
|
||||
Cud: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "cud"),
|
||||
Rod: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "rod"),
|
||||
Dpde: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "dpde"),
|
||||
Dpdnd: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "dpdnd"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsDpdpolandPackage{}).TableName(), "date_upd"),
|
||||
}
|
||||
56
app/model/dbmodel/ps_dpdpoland_parcel.go
Normal file
56
app/model/dbmodel/ps_dpdpoland_parcel.go
Normal file
@@ -0,0 +1,56 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandParcel = "ps_dpdpoland_parcel"
|
||||
|
||||
// PsDpdpolandParcel mapped from table <ps_dpdpoland_parcel>
|
||||
type PsDpdpolandParcel struct {
|
||||
IDParcel int32 `gorm:"column:id_parcel;primaryKey" json:"id_parcel"`
|
||||
IDPackageWs int32 `gorm:"column:id_package_ws;not null" json:"id_package_ws"`
|
||||
Waybill string `gorm:"column:waybill;not null" json:"waybill"`
|
||||
Content string `gorm:"column:content;not null" json:"content"`
|
||||
Weight float64 `gorm:"column:weight;not null" json:"weight"`
|
||||
Height float64 `gorm:"column:height;not null" json:"height"`
|
||||
Length float64 `gorm:"column:length;not null" json:"length"`
|
||||
Width float64 `gorm:"column:width;not null" json:"width"`
|
||||
Number int32 `gorm:"column:number;not null" json:"number"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandParcel's table name
|
||||
func (*PsDpdpolandParcel) TableName() string {
|
||||
return TableNamePsDpdpolandParcel
|
||||
}
|
||||
|
||||
var PsDpdpolandParcelCols = struct {
|
||||
IDParcel gormcol.Field
|
||||
IDPackageWs gormcol.Field
|
||||
Waybill gormcol.Field
|
||||
Content gormcol.Field
|
||||
Weight gormcol.Field
|
||||
Height gormcol.Field
|
||||
Length gormcol.Field
|
||||
Width gormcol.Field
|
||||
Number gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDParcel: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "id_parcel"),
|
||||
IDPackageWs: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "id_package_ws"),
|
||||
Waybill: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "waybill"),
|
||||
Content: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "content"),
|
||||
Weight: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "weight"),
|
||||
Height: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "height"),
|
||||
Length: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "length"),
|
||||
Width: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "width"),
|
||||
Number: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "number"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsDpdpolandParcel{}).TableName(), "date_upd"),
|
||||
}
|
||||
47
app/model/dbmodel/ps_dpdpoland_parcel_product.go
Normal file
47
app/model/dbmodel/ps_dpdpoland_parcel_product.go
Normal file
@@ -0,0 +1,47 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandParcelProduct = "ps_dpdpoland_parcel_product"
|
||||
|
||||
// PsDpdpolandParcelProduct mapped from table <ps_dpdpoland_parcel_product>
|
||||
type PsDpdpolandParcelProduct struct {
|
||||
IDParcelProduct int32 `gorm:"column:id_parcel_product;primaryKey;autoIncrement:true" json:"id_parcel_product"`
|
||||
IDParcel int32 `gorm:"column:id_parcel;not null" json:"id_parcel"`
|
||||
IDProduct int32 `gorm:"column:id_product;not null" json:"id_product"`
|
||||
IDProductAttribute int32 `gorm:"column:id_product_attribute;not null" json:"id_product_attribute"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
Weight float64 `gorm:"column:weight;not null" json:"weight"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandParcelProduct's table name
|
||||
func (*PsDpdpolandParcelProduct) TableName() string {
|
||||
return TableNamePsDpdpolandParcelProduct
|
||||
}
|
||||
|
||||
var PsDpdpolandParcelProductCols = struct {
|
||||
IDParcelProduct gormcol.Field
|
||||
IDParcel gormcol.Field
|
||||
IDProduct gormcol.Field
|
||||
IDProductAttribute gormcol.Field
|
||||
Name gormcol.Field
|
||||
Weight gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDParcelProduct: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "id_parcel_product"),
|
||||
IDParcel: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "id_parcel"),
|
||||
IDProduct: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "id_product"),
|
||||
IDProductAttribute: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "id_product_attribute"),
|
||||
Name: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "name"),
|
||||
Weight: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "weight"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsDpdpolandParcelProduct{}).TableName(), "date_upd"),
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -24,3 +23,19 @@ type PsDpdpolandPayerNumber struct {
|
||||
func (*PsDpdpolandPayerNumber) TableName() string {
|
||||
return TableNamePsDpdpolandPayerNumber
|
||||
}
|
||||
|
||||
var PsDpdpolandPayerNumberCols = struct {
|
||||
IDDpdpolandPayerNumber gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
PayerNumber gormcol.Field
|
||||
Name gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDDpdpolandPayerNumber: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "id_dpdpoland_payer_number"),
|
||||
IDShop: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "id_shop"),
|
||||
PayerNumber: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "payer_number"),
|
||||
Name: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "name"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsDpdpolandPayerNumber{}).TableName(), "date_upd"),
|
||||
}
|
||||
59
app/model/dbmodel/ps_dpdpoland_price_rule.go
Normal file
59
app/model/dbmodel/ps_dpdpoland_price_rule.go
Normal file
@@ -0,0 +1,59 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import (
|
||||
"git.ma-al.com/goc_marek/gormcol"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsDpdpolandPriceRule = "ps_dpdpoland_price_rule"
|
||||
|
||||
// PsDpdpolandPriceRule mapped from table <ps_dpdpoland_price_rule>
|
||||
type PsDpdpolandPriceRule struct {
|
||||
IDCsv int32 `gorm:"column:id_csv;primaryKey;autoIncrement:true" json:"id_csv"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"`
|
||||
DateAdd *time.Time `gorm:"column:date_add" json:"date_add"`
|
||||
DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"`
|
||||
IsoCountry string `gorm:"column:iso_country;not null" json:"iso_country"`
|
||||
PriceFrom float64 `gorm:"column:price_from;not null" json:"price_from"`
|
||||
PriceTo float64 `gorm:"column:price_to;not null" json:"price_to"`
|
||||
WeightFrom float64 `gorm:"column:weight_from;not null" json:"weight_from"`
|
||||
WeightTo float64 `gorm:"column:weight_to;not null" json:"weight_to"`
|
||||
ParcelPrice float32 `gorm:"column:parcel_price;not null" json:"parcel_price"`
|
||||
CodPrice string `gorm:"column:cod_price;not null" json:"cod_price"`
|
||||
IDCarrier string `gorm:"column:id_carrier;not null" json:"id_carrier"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandPriceRule's table name
|
||||
func (*PsDpdpolandPriceRule) TableName() string {
|
||||
return TableNamePsDpdpolandPriceRule
|
||||
}
|
||||
|
||||
var PsDpdpolandPriceRuleCols = struct {
|
||||
IDCsv gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
IsoCountry gormcol.Field
|
||||
PriceFrom gormcol.Field
|
||||
PriceTo gormcol.Field
|
||||
WeightFrom gormcol.Field
|
||||
WeightTo gormcol.Field
|
||||
ParcelPrice gormcol.Field
|
||||
CodPrice gormcol.Field
|
||||
IDCarrier gormcol.Field
|
||||
}{
|
||||
IDCsv: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "id_csv"),
|
||||
IDShop: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "id_shop"),
|
||||
DateAdd: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "date_add"),
|
||||
DateUpd: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "date_upd"),
|
||||
IsoCountry: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "iso_country"),
|
||||
PriceFrom: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "price_from"),
|
||||
PriceTo: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "price_to"),
|
||||
WeightFrom: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "weight_from"),
|
||||
WeightTo: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "weight_to"),
|
||||
ParcelPrice: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "parcel_price"),
|
||||
CodPrice: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "cod_price"),
|
||||
IDCarrier: gormcol.Field{}.Set((&PsDpdpolandPriceRule{}).TableName(), "id_carrier"),
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user