Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
schultek committed Jun 6, 2022
1 parent a29b9fa commit da1241f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,21 @@ TABLE "books" (
);
```

You can also make any field **auto-increment** by using the `@AutoIncrement()` annotation. Auto-increment fields
must be of type **int**.

```dart
@Model()
abstract class Book {
@PrimaryKey()
@AutoIncrement()
int get id;
@AutoIncrement()
int get someOtherValue;
}
```

### Relations

When using relational database systems, you model your data using relations, namely one-to-one,
Expand Down

0 comments on commit da1241f

Please sign in to comment.