Reworded README
This commit is contained in:
parent
c18a959166
commit
066bf2cb7f
@ -122,7 +122,7 @@ await db.autoTransaction(async (tx) => {
|
|||||||
|
|
||||||
### Recommended Approach to Model Classes
|
### 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
|
```javascript
|
||||||
class NumberModel {
|
class NumberModel {
|
||||||
|
Loading…
Reference in New Issue
Block a user