Closed TeknoloGenie closed 7 years ago
We consume the common model names, preventing developers from using them.
Problem: Developer wants to name their model Customer but can't. Solution: Prepend QB to all the connectors built-in models resulting in QBCustomer.
Customer
QB
QBCustomer
{ "name": "Customer", "base": "QBCustomer", "idInjection": true, "options": { "validateUpsert": true }, "properties": { "extra_property": { "type": "string" } }, "validations": [], ... }
note: until issue #10 extending on a QBModel will only result in the extra data being stored in the db DataSource.
db
Resolved with commithttps://github.com/NodeGeeks/loopback-connector-quickbooks/commit/abcad85b38c849097040b879a1edaeec1a31dc1b
commit
We consume the common model names, preventing developers from using them.
Problem: Developer wants to name their model
Customer
but can't. Solution: PrependQB
to all the connectors built-in models resulting inQBCustomer
.note: until issue #10 extending on a QBModel will only result in the extra data being stored in the
db
DataSource.