platform/angel_orm_service/example/todo.dart

15 lines
303 B
Dart
Raw Normal View History

import 'package:angel_migration/angel_migration.dart';
2017-12-07 08:21:49 +00:00
import 'package:angel_serialize/angel_serialize.dart';
2019-04-20 18:45:41 +00:00
import 'package:angel_orm/angel_orm.dart';
part 'todo.g.dart';
2017-12-07 08:21:49 +00:00
@serializable
2019-04-20 18:45:41 +00:00
@orm
abstract class _Todo extends Model {
@notNull
String get text;
@DefaultsTo(false)
bool isComplete;
}