Metadata-Version: 2.1
Name: canaa-model-furlan
Version: 0.0.9
Summary: Canaa model creator
Home-page: https://github.com/guionardo/canaa-base-model-creator
Author: Guionardo Furlan
Author-email: guionardo.furlan@hbsis.com.br
License: MIT
Project-URL: Documentation, https://github.com/guionardo/canaa-base-model-creator/wiki
Project-URL: Source, https://github.com/guionardo/canaa-base-model-creator
Keywords: canaa hbsis
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Utilities
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6.*
Description-Content-Type: text/markdown

# CanaÃ£ Model Creator

[![codecov](https://codecov.io/gh/guionardo/canaa-base-model-creator/branch/develop/graph/badge.svg)](https://codecov.io/gh/guionardo/canaa-base-model-creator)

[![codecov](https://codecov.io/gh/guionardo/canaa-base-model-creator/branch/develop/graphs/commits.svg)]

![Upload Python Package](https://github.com/guionardo/canaa-base-model-creator/workflows/Upload%20Python%20Package/badge.svg)

## CSV LAYOUT

The file must be an CSV (separated by ; fields), UTF-8 without BOM encoding

The first line defines the model names:

* Promax namespace
* Promax model name
* Microservice namespace
* Microservice model name

The next lines defines the fields:

* Promax field name
* Promax field type (int, bool, string, date, datetime, time, float or classes)
* Microservice field name
* Microservice field type
* Extra informations: '**pk**' for Primary Key, '**required**' for required field

``` CSV
promax_namespace.promax_model;microservice_namespace.microservice_model
codigo_modelo;int;model_id;int;pk
nome_pessoa;string;person_name;string;required
data_nascimento;date;birth_date;date;
ativo;bool;active;bool;
cadastro;datetime;register;datetime
taxa;float;rate;float
descricao;DescricaoModel;description;DescriptionModel
```


