Add 'part x.serializer.g.dart' where necessary
This commit is contained in:
parent
8c1f8cf512
commit
6c2894a06c
11 changed files with 18 additions and 5 deletions
|
@ -1,13 +1,16 @@
|
|||
library angel_orm.generator.models.author;
|
||||
|
||||
import 'package:angel_framework/common.dart';
|
||||
import 'package:angel_model/angel_model.dart';
|
||||
import 'package:angel_orm/angel_orm.dart';
|
||||
import 'package:angel_serialize/angel_serialize.dart';
|
||||
|
||||
part 'author.g.dart';
|
||||
|
||||
part 'author.serializer.g.dart';
|
||||
|
||||
@serializable
|
||||
@orm
|
||||
class _Author extends Model {
|
||||
@Column(length: 255, indexType: IndexType.UNIQUE, defaultValue: 'Tobe Osakwe')
|
||||
@Column(length: 255, indexType: IndexType.unique, defaultValue: 'Tobe Osakwe')
|
||||
String name;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
library angel_orm.generator.models.book;
|
||||
|
||||
import 'package:angel_framework/common.dart';
|
||||
import 'package:angel_model/angel_model.dart';
|
||||
import 'package:angel_orm/angel_orm.dart';
|
||||
import 'package:angel_serialize/angel_serialize.dart';
|
||||
import 'author.dart';
|
||||
part 'book.g.dart';
|
||||
part 'book.serializer.g.dart';
|
||||
|
||||
@serializable
|
||||
@orm
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
library angel_orm.generator.models.car;
|
||||
|
||||
import 'package:angel_framework/common.dart';
|
||||
import 'package:angel_model/angel_model.dart';
|
||||
import 'package:angel_orm/angel_orm.dart';
|
||||
import 'package:angel_serialize/angel_serialize.dart';
|
||||
part 'car.g.dart';
|
||||
part 'car.serializer.g.dart';
|
||||
|
||||
@serializable
|
||||
@orm
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:angel_model/angel_model.dart';
|
|||
import 'package:angel_orm/angel_orm.dart';
|
||||
import 'package:angel_serialize/angel_serialize.dart';
|
||||
part 'customer.g.dart';
|
||||
part 'customer.serializer.g.dart';
|
||||
|
||||
@orm
|
||||
@serializable
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:angel_model/angel_model.dart';
|
|||
import 'package:angel_orm/angel_orm.dart';
|
||||
import 'package:angel_serialize/angel_serialize.dart';
|
||||
part 'foot.g.dart';
|
||||
part 'foot.serializer.g.dart';
|
||||
|
||||
@serializable
|
||||
@orm
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:angel_model/angel_model.dart';
|
|||
import 'package:angel_orm/angel_orm.dart';
|
||||
import 'package:angel_serialize/angel_serialize.dart';
|
||||
part 'fruit.g.dart';
|
||||
part 'fruit.serializer.g.dart';
|
||||
|
||||
@serializable
|
||||
@orm
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:angel_orm/angel_orm.dart';
|
|||
import 'package:angel_serialize/angel_serialize.dart';
|
||||
import 'foot.dart';
|
||||
part 'leg.g.dart';
|
||||
part 'leg.serializer.g.dart';
|
||||
|
||||
@serializable
|
||||
@orm
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:angel_orm/angel_orm.dart';
|
|||
import 'package:angel_serialize/angel_serialize.dart';
|
||||
import 'customer.dart';
|
||||
part 'order.g.dart';
|
||||
part 'order.serializer.g.dart';
|
||||
|
||||
@orm
|
||||
@serializable
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:angel_model/angel_model.dart';
|
|||
import 'package:angel_orm/angel_orm.dart';
|
||||
import 'package:angel_serialize/angel_serialize.dart';
|
||||
part 'role.g.dart';
|
||||
part 'role.serializer.g.dart';
|
||||
|
||||
@serializable
|
||||
@orm
|
||||
|
|
|
@ -5,11 +5,12 @@ 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
|
||||
@orm
|
||||
class _Tree extends Model {
|
||||
@Column(indexType: IndexType.UNIQUE, type: ColumnType.smallInt)
|
||||
@Column(indexType: IndexType.unique, type: ColumnType.smallInt)
|
||||
int rings;
|
||||
|
||||
@hasMany
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:angel_orm/angel_orm.dart';
|
|||
import 'package:angel_serialize/angel_serialize.dart';
|
||||
import 'role.dart';
|
||||
part 'user.g.dart';
|
||||
part 'user.serializer.g.dart';
|
||||
|
||||
@serializable
|
||||
@orm
|
||||
|
|
Loading…
Reference in a new issue