platform/angel_orm/lib/src/annotations.dart

19 lines
354 B
Dart
Raw Normal View History

2017-12-07 08:21:49 +00:00
const ORM orm = const ORM();
2017-06-18 04:19:05 +00:00
class ORM {
2018-08-24 12:30:38 +00:00
final String tableName;
const ORM([this.tableName]);
2017-06-18 04:19:05 +00:00
}
2018-08-24 12:30:38 +00:00
class CanJoin {
2017-12-07 08:21:49 +00:00
final Type type;
2018-08-24 12:30:38 +00:00
final String foreignKey;
final JoinType joinType;
2018-08-24 12:30:38 +00:00
const CanJoin(this.type, this.foreignKey, {this.joinType: JoinType.full});
}
/// The various types of [Join].
enum JoinType { join, left, right, full, self }