Browse Source

Reworded README

master
Ben Ashton 3 years ago
parent
commit
066bf2cb7f
  1. 2
      README.md

2
README.md

@ -122,7 +122,7 @@ await db.autoTransaction(async (tx) => {
### Recommended Approach to Model Classes
Supposing we have two tables in our database. The first table `contacts` contains rows of contact names. The second table `numbers` contains rows of numbers and foreign keys for contact ids. We could model the above database like this:
Supposing we have two tables in our database. The first table `contacts` contains rows of contact names. The second table `numbers` contains rows of numbers and foreign keys for contact ids. We could model that database like this:
```javascript
class NumberModel {

Loading…
Cancel
Save