2017-07-15 20:18:53 +00:00
|
|
|
library angel_orm.generator.models.book;
|
2017-07-06 20:14:26 +00:00
|
|
|
|
|
|
|
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;
|
2017-11-18 20:10:58 +00:00
|
|
|
|
2018-02-26 13:55:42 +00:00
|
|
|
@BelongsTo(localKey: "partner_author_id")
|
|
|
|
Author partnerAuthor;
|
|
|
|
|
2017-09-15 19:23:36 +00:00
|
|
|
int authorId;
|
2017-07-06 20:14:26 +00:00
|
|
|
String name;
|
|
|
|
}
|