platform/angel_orm_generator/test/models/tree.dart
2018-08-24 10:40:41 -04:00

18 lines
437 B
Dart

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';
part 'tree.serializer.g.dart';
@serializable
@postgreSqlOrm
class _Tree extends Model {
@Column(indexType: IndexType.unique, type: ColumnType.smallInt)
int rings;
@hasMany
List<Fruit> fruits;
}