platform/angel_orm_generator/test/models/book.dart
2017-07-15 11:11:57 -04:00

15 lines
318 B
Dart

library angel_orm.test.models.book;
import 'package:angel_framework/common.dart';
import 'package:angel_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart';
import 'author.dart';
part 'book.g.dart';
@serializable
@orm
class _Book extends Model {
@belongsTo
Author author;
String name;
}