2017-07-15 20:18:53 +00:00
|
|
|
library angel_orm.generator.models.book;
|
2017-07-06 20:14:26 +00:00
|
|
|
|
2018-08-24 13:57:53 +00:00
|
|
|
import 'package:angel_model/angel_model.dart';
|
2017-07-06 20:14:26 +00:00
|
|
|
import 'package:angel_orm/angel_orm.dart';
|
|
|
|
import 'package:angel_serialize/angel_serialize.dart';
|
|
|
|
import 'author.dart';
|
|
|
|
part 'book.g.dart';
|
2018-08-24 13:57:53 +00:00
|
|
|
part 'book.serializer.g.dart';
|
2017-07-06 20:14:26 +00:00
|
|
|
|
|
|
|
@serializable
|
2018-12-01 19:03:43 +00:00
|
|
|
@orm
|
2017-07-06 20:14:26 +00:00
|
|
|
class _Book extends Model {
|
|
|
|
@belongsTo
|
|
|
|
Author author;
|
2017-11-18 20:10:58 +00:00
|
|
|
|
2018-02-26 13:55:42 +00:00
|
|
|
@BelongsTo(localKey: "partner_author_id")
|
|
|
|
Author partnerAuthor;
|
|
|
|
|
2017-07-06 20:14:26 +00:00
|
|
|
String name;
|
|
|
|
}
|