Skip to content

Instantly share code, notes, and snippets.

@graphicbeacon
Created May 21, 2018 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graphicbeacon/61a98b41486daaa20791df6d21f4cd91 to your computer and use it in GitHub Desktop.
Save graphicbeacon/61a98b41486daaa20791df6d21f4cd91 to your computer and use it in GitHub Desktop.
Sample code for "Building RESTful Web APIs with Dart, Aqueduct and PostgreSQL (Part 3)" post on Medium
import '../fave_reads.dart';
class Book extends ManagedObject<_Book> implements _Book {}
class _Book {
@managedPrimaryKey
int id;
String title;
String author;
int year;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment