platform/angel_orm_generator/test/models/book.dart

22 lines
451 B
Dart
Raw Normal View History

library angel_orm.generator.models.book;
import 'package:angel_model/angel_model.dart';
import 'package:angel_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart';
import 'author.dart';
part 'book.g.dart';
part 'book.serializer.g.dart';
@serializable
2018-08-24 14:40:41 +00:00
@postgreSqlOrm
class _Book extends Model {
@belongsTo
Author author;
2017-11-18 20:10:58 +00:00
@BelongsTo(localKey: "partner_author_id")
Author partnerAuthor;
2017-09-15 19:23:36 +00:00
int authorId;
String name;
}