Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
#4. Updating example files
Browse files Browse the repository at this point in the history
  • Loading branch information
matei-tm committed Mar 13, 2019
1 parent 67555f4 commit 8a84822
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
26 changes: 25 additions & 1 deletion src/example/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,28 @@ import 'package:flutter_orm_m8/flutter_orm_m8.dart';
part "example.g.dart";

@DataTable("health_entries")
class HealthEntry {}
class HealthEntry extends DbAccountRelatedEntity {
@DataColumn(
"id",
ColumnMetadata.PrimaryKey &
ColumnMetadata.Unique &
ColumnMetadata.AutoIncrement)
int id;

@DataColumn("account_id")
int accountId;

@DataColumn("record_date")
int recordDate;

@DataColumn("is_deleted")
int isDeleted;

@override
Map<String, dynamic> toMap() {
// TODO: implement toMap
return null;
}
}


6 changes: 4 additions & 2 deletions src/example/example.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a84822

Please sign in to comment.