isotopeee / dietview

1 stars 0 forks source link

Loopback Built-In Models #3

Closed jmaicaaan closed 7 years ago

jmaicaaan commented 7 years ago

Manually or Automated creating models like ['User', 'AccessToken', 'ACL', 'RoleMapping', 'Role']?

isotopeee commented 7 years ago

Models in loopback server or LB Angular SDK models (services)?

jmaicaaan commented 7 years ago

Models in loopback server under common -> models.

Newly created project

isotopeee commented 7 years ago

Depends, on the requirements. If you need basic functionality, built-in models are enough for common use cases. If you need to implement complex logic, extend the built-in models.

jmaicaaan commented 7 years ago

How do you create your built-in model relations(database table), manually creating the tables or automating it with scripts?

isotopeee commented 7 years ago

In my case, creation of ['User', 'AccessToken', 'ACL', 'RoleMapping', 'Role'] tables is taken care by loopback-cloudant-connector.