2017-09-15 19:23:36 +00:00
|
|
|
library angel_orm_generator.test.models.tree;
|
|
|
|
|
|
|
|
import 'package:angel_model/angel_model.dart';
|
|
|
|
import 'package:angel_orm/angel_orm.dart';
|
|
|
|
import 'package:angel_serialize/angel_serialize.dart';
|
|
|
|
import 'fruit.dart';
|
|
|
|
part 'tree.g.dart';
|
2018-08-24 13:57:53 +00:00
|
|
|
part 'tree.serializer.g.dart';
|
2017-09-15 19:23:36 +00:00
|
|
|
|
|
|
|
@serializable
|
2018-12-01 19:03:43 +00:00
|
|
|
@orm
|
2017-09-15 19:23:36 +00:00
|
|
|
class _Tree extends Model {
|
2018-08-24 13:57:53 +00:00
|
|
|
@Column(indexType: IndexType.unique, type: ColumnType.smallInt)
|
2017-09-15 19:23:36 +00:00
|
|
|
int rings;
|
|
|
|
|
|
|
|
@hasMany
|
|
|
|
List<Fruit> fruits;
|
|
|
|
}
|