platform/angel_orm/example/main.dart
2018-08-24 08:30:38 -04:00

27 lines
409 B
Dart

import 'package:angel_model/angel_model.dart';
import 'package:angel_orm/angel_orm.dart';
main() {
}
@orm
abstract class Company extends Model {
String get name;
bool get isFortune500;
}
@orm
abstract class _Employee extends Model {
@belongsTo
Company get company;
String get firstName;
String get lastName;
double get salary;
bool get isFortune500Employee => company.isFortune500;
}