platform/angel_orm_service/test/pokemon.dart
2019-04-20 17:30:48 -04:00

33 lines
491 B
Dart

import 'package:angel_migration/angel_migration.dart';
import 'package:angel_serialize/angel_serialize.dart';
import 'package:angel_orm/angel_orm.dart';
part 'pokemon.g.dart';
enum PokemonType {
fire,
grass,
water,
dragon,
poison,
dark,
fighting,
electric,
ghost
}
@serializable
@orm
abstract class _Pokemon extends Model {
@notNull
String get species;
String get name;
@notNull
int get level;
@notNull
PokemonType get type1;
PokemonType get type2;
}