Commit e9934900 authored by pdts20's avatar pdts20

issue #116 - Add necessary types

parent 07fc46a7
Pipeline #24083 failed with stages
in 27 seconds
{
"sqltools.connections": [
{
"previewLimit": 50,
"server": "localhost",
"port": 5432,
"askForPassword": true,
"driver": "PostgreSQL",
"name": "dadosana",
"database": "dadosana",
"username": "postgres"
}
]
}
\ No newline at end of file
# gitignore ignores files.yaml in this folder
# however a config file for tests in CI is required
# so this example file in fact is the CI test file
tags:
links:
- config/market_tags.yaml.example
obj:
-
name: "noDescription"
description: "Related with seller"
views:
links:
- config/market_views.yaml.example
obj:
-
alias: "view:Seller"
data: "test/postgres/fixtures/seller.json"
origin: true
aliasAsName: true
dimensions:
- "dim:seller:name"
- "dim:seller:sex"
- "dim:seller:cpf"
- "dim:seller:id"
- "dim:seller:status"
metrics:
- "met:seller:avg:age"
- "met:seller:max:age"
- "met:seller:min:age"
- "met:seller:count:age"
metrics:
links:
- config/market_metrics.yaml.example
obj:
-
name: "met:seller:avg:age"
dataType: "float"
aggregation: "avg"
description: "The seller average age"
tags:
- "seller"
- "age"
dimensions:
links:
- config/market_dimensions.yaml.example
obj:
-
name: "dim:seller:name"
dataType: "string"
description: "Name of the seller from market"
tags:
- "seller"
enumTypes:
links:
- config/market_enum.yaml.example
obj:
- []
sources:
links:
- config/market_sources.yaml.example
- config/source_test_only.yaml.example
obj:
-
name: "Seller"
description: "Market worker"
fields:
-
name: "name"
description: "Seller name"
dataType: "string"
-
name: "age"
description: "Seller age"
dataType: "integer"
-
name: "sex"
description: "Seller sex"
enumType: "enumsex"
dataType: "enumtype"
-
name: "CPF"
description: "Seller CPF"
dataType: "string"
-
name: "id"
description: "Seller id"
dataType: "integer"
BLENDB_SCHEMA_FILE=config/config.yaml.example
PORT=3000
BLENDB_LOG_FILE=/var/log/blendb.log
BLENDB_LOG_LEVEL=debug
BLENDB_N_DB=1
BLENDB_DB0_NAME=blendb
BLENDB_DB0_USER=blendb
BLENDB_DB0_NAME=blendb-test
BLENDB_DB0_PASSWORD=secret
BLENDB_DB0_PASSWORD=memudeporfavor
BLENDB_DB0_HOST=localhost
BLENDB_DB0_PORT=5432
BLENDB_DB0_ADAPTER=postgres
BLENDB_SCHEMA_FILE=config/config.yaml
PORT=3000
# gitignore ignores files.yaml in this folder
# however a config file for tests in CI is required
# so this example file in fact is the CI test file
tags:
links:
- config/market_tags.yaml.example
obj:
-
name: "noDescription"
description: "Related with seller"
views:
links:
- config/market_views.yaml.example
obj:
-
alias: "view:Seller"
data: "test/postgres/fixtures/seller.json"
origin: true
aliasAsName: true
dimensions:
- "dim:seller:name"
- "dim:seller:sex"
- "dim:seller:cpf"
- "dim:seller:id"
- "dim:seller:status"
metrics:
- "met:seller:avg:age"
- "met:seller:max:age"
- "met:seller:min:age"
- "met:seller:count:age"
metrics:
links:
- config/market_metrics.yaml.example
obj:
-
name: "met:seller:avg:age"
dataType: "float"
aggregation: "avg"
description: "The seller average age"
tags:
- "seller"
- "age"
dimensions:
links:
- config/market_dimensions.yaml.example
obj:
-
name: "dim:seller:name"
dataType: "string"
description: "Name of the seller from market"
tags:
- "seller"
enumTypes:
links:
- config/market_enum.yaml.example
obj:
- []
sources:
links:
- config/market_sources.yaml.example
- config/source_test_only.yaml.example
obj:
-
name: "Seller"
description: "Market worker"
fields:
-
name: "name"
description: "Seller name"
dataType: "string"
-
name: "age"
description: "Seller age"
dataType: "integer"
-
name: "sex"
description: "Seller sex"
enumType: "enumsex"
dataType: "enumtype"
-
name: "CPF"
description: "Seller CPF"
dataType: "string"
-
name: "id"
description: "Seller id"
dataType: "integer"
-
name: "dim:seller:sex"
dataType: "enumtype"
enumType: "enumsex"
description: "Sexual orientation of the seller from market"
-
name: "dim:seller:cpf"
dataType: "string"
description: "CPF of the seller from market"
-
name: "dim:seller:status"
dataType: "enumtype"
enumType: "workingStatus"
description: "The status of the seller from market"
-
name: "dim:product:name"
dataType: "string"
description: "Name of the product from market"
-
name: "dim:product:validity"
dataType: "date"
description: "Validity of the product from market"
-
name: "dim:client:name"
dataType: "string"
description: "Name of the client from market"
-
name: "dim:client:cpf"
dataType: "string"
description: "CPF of the client from market"
-
name: "dim:sell:registered"
dataType: "boolean"
description: "Check if the client is registered"
-
name: "dim:seller:id"
dataType: "integer"
description: "id of the seller from market"
-
name: "dim:client:id"
dataType: "integer"
description: "id of the client from market"
-
name: "dim:sell:datein"
dataType: "date"
description: "Date of the sell was realized"
-
name: "dim:buyout:datein"
dataType: "date"
description: "Date of the buyout was realized"
-
name: "dim:product:id"
dataType: "integer"
description: "id of the product from market"
-
name: "dim:provider:name"
dataType: "string"
description: "Name of the provider from market"
-
name: "dim:provider:id"
dataType: "string"
description: "id of the provider from market"
-
name: "dim:buyout:day"
dataType: "integer"
parent: "dim:buyout:datein"
relation: "day"
description: "Date of the buyout was realized"
-
name: "dim:buyout:month"
dataType: "integer"
parent: "dim:buyout:datein"
relation: "month"
description: "Date of the buyout was realized"
-
name: "dim:buyout:year"
dataType: "integer"
parent: "dim:buyout:datein"
relation: year
description: "Date of the buyout was realized"
-
name: "enumsex"
values:
- "male"
- "female"
- "nonbinary"
- "undecided"
-
name: "workingStatus"
values:
- "active"
- "inactive"
- "vacation"
- "sick leave"
- "maternity leave"
- "stand by"
views:
links:
- config/market_views.yaml.example
obj:
-
alias: "view:Seller"
data: "test/postgres/fixtures/seller.json"
origin: true
dimensions:
- "dim:seller:name"
- "dim:seller:sex"
- "dim:seller:cpf"
- "dim:seller:id"
- "dim:seller:status"
metrics:
- "met:seller:avg:age"
- "met:seller:max:age"
- "met:seller:min:age"
- "met:seller:count:age"
metrics:
links:
- config/market_metrics.yaml.example
obj:
-
name: "met:seller:avg:age"
dataType: "float"
aggregation: "avg"
description: "The seller average age"
dimensions:
links:
- config/market_dimensions.yaml.example
obj:
-
name: "dim:seller:name"
dataType: "string"
description: "Name of the seller from market"
enumTypes:
links:
- config/market_enum.yaml.example
obj:
- []
sources:
links:
- config/market_sources.yaml.example
obj:
-
name: "Seller"
description: "Market worker"
fields:
-
name: "name"
description: "Seller name"
dataType: "string"
-
name: "age"
description: "Seller age"
dataType: "integer"
-
name: "sex"
description: "Seller sex"
enumType: "enumsex"
dataType: "enumtype"
-
name: "CPF"
description: "Seller CPF"
dataType: "string"
-
name: "id"
description: "Seller id"
dataType: "integer"
-
name: "met:seller:max:age"
dataType: "integer"
aggregation: "max"
description: "The seller highest age"
tags:
- "seller"
- "age"
- "max"
-
name: "met:seller:min:age"
dataType: "integer"
aggregation: "min"
description: "The seller lowest age"
tags:
- "seller"
- "age"
-
name: "met:seller:count:age"
dataType: "integer"
aggregation: "count"
description: "The number of seller's"
tags:
- "seller"
- "age"
-
name: "met:product:avg:pricein"
dataType: "float"
aggregation: "avg"
description: "The average product pricein"
tags:
- "product"
-
name: "met:product:max:pricein"
dataType: "float"
aggregation: "max"
description: "The highest product pricein"
tags:
- "product"
- "max"
-
name: "met:product:min:pricein"
dataType: "float"
aggregation: "min"
description: "The lowest product pricein"
tags:
- "product"
-
name: "met:product:avg:priceout"
dataType: "float"
aggregation: "avg"
description: "The average product priceout"
tags:
- "product"
-
name: "met:product:max:priceout"
dataType: "float"
aggregation: "max"
description: "The highest product priceout"
tags:
- "product"
- "max"
-
name: "met:product:min:priceout"
dataType: "float"
aggregation: "min"
description: "The lowest product priceout"
tags:
- "product"
-
name: "met:sell:sum:quantity"
dataType: "integer"
aggregation: "sum"
description: "The sum of sales quantity"
-
name: "met:sell:avg:quantity"
dataType: "float"
aggregation: "avg"
description: "The average of sales quantity"
-
name: "met:sell:count:quantity"
dataType: "integer"
aggregation: "count"
description: "The total number of sales"
-
name: "met:buyout:avg:quantity"
dataType: "float"
aggregation: "avg"
description: "The average of quantity bought"
tags:
- "buyout"
-
name: "met:buyout:max:quantity"
dataType: "integer"
aggregation: "max"
description: "The highest quantity bought"
tags:
- "buyout"
- "max"
-
name: "met:buyout:min:quantity"
dataType: "integer"
aggregation: "min"
description: "The lowest quantity bought"
tags:
- "buyout"
-
name: "Product"
description: "Market product"
fields:
-
name: "name"
description: "Product name"
dataType: "string"
-
name: "pricein"
description: "Product purchase price"
dataType: "float"
-
name: "priceout"
description: "Product price"
dataType: "float"
-
name: "validity"
description: "Product validity"
dataType: "date"
-
name: "id"
description: "Product id"
dataType: "integer"
-
name: "Client"
description: "Market client"
fields:
-
name: "name"
description: "Client name"
dataType: "string"
-
name: "CPF"
description: "Client CPF"
dataType: "string"
-
name: "id"
description: "Client id"
dataType: "integer"
-
name: "Sell"
description: "Market sale"
fields:
-
name: "Registered"
description: "Check if client is registered"
dataType: "boolean"
-
name: "Product.id"
description: "id from product"
dataType: "integer"
-
name: "Client.id"
description: "id from seller"
dataType: "integer"
-
name: "Seller.id"
description: "id from seller"
dataType: "integer"
-
name: "Quantity"
description: "How many is being bought"
dataType: "integer"
-
name: "Datein"
description: "Date of buy from Provider"
dataType: "date"
-
name: "Buyout"
description: "Market buyout"
fields:
-
name: "datein"
description: "date of entry"
dataType: "date"
-
name: "quantity"
description: "how many products has been bought"
dataType: "integer"
-
name: "Provider.id"
description: "Provider id"
dataType: "integer"
-
name: "Product.id"
description: "Product id"
dataType: "integer"
-
name: "Provider"
description: "Market provider"
fields:
-
name: "name"
description: "Provider product name"
dataType: "string"
-
name: "id"
description: "Provider id"
dataType: "integer"
-
name: "Distribute"
description: "Relation between Provider and Product"
fields:
-
name: "Provider.id"
description: "Provider id"
dataType: "integer"
-
name: "Product.id"
description: "Product id"
dataType: "integer"
-
name: "seller"
description: "Related with seller"
-
name: "age"
description: "Related with age"
-
name: "product"
description: "Related with product"
-
name: "client"
description: "Related with client"
-
name: "buyout"
description: "Related with buyout"
-
name: "provider"
description: "Related with provider"
-
name: "max"
description: "Aggregation Max"
-
alias: "view:Product"
data: "test/postgres/fixtures/product.json"
origin: true
aliasAsName: true
dimensions:
- "dim:product:name"
- "dim:product:validity"
- "dim:product:id"
metrics:
- "met:product:avg:pricein"
- "met:product:max:pricein"
- "met:product:min:pricein"
- "met:product:avg:priceout"
- "met:product:max:priceout"
- "met:product:min:priceout"
-
alias: "view:Client"
data: "test/postgres/fixtures/client.json"
origin: true
aliasAsName: true