Add 'part x.serializer.g.dart' where necessary

This commit is contained in:
Tobe O 2018-08-24 09:57:53 -04:00
parent 8c1f8cf512
commit 6c2894a06c
11 changed files with 18 additions and 5 deletions

View file

@ -1,13 +1,16 @@
library angel_orm.generator.models.author; 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_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel_serialize/angel_serialize.dart';
part 'author.g.dart'; part 'author.g.dart';
part 'author.serializer.g.dart';
@serializable @serializable
@orm @orm
class _Author extends Model { class _Author extends Model {
@Column(length: 255, indexType: IndexType.UNIQUE, defaultValue: 'Tobe Osakwe') @Column(length: 255, indexType: IndexType.unique, defaultValue: 'Tobe Osakwe')
String name; String name;
} }

View file

@ -1,10 +1,11 @@
library angel_orm.generator.models.book; 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_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel_serialize/angel_serialize.dart';
import 'author.dart'; import 'author.dart';
part 'book.g.dart'; part 'book.g.dart';
part 'book.serializer.g.dart';
@serializable @serializable
@orm @orm

View file

@ -1,9 +1,10 @@
library angel_orm.generator.models.car; 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_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel_serialize/angel_serialize.dart';
part 'car.g.dart'; part 'car.g.dart';
part 'car.serializer.g.dart';
@serializable @serializable
@orm @orm

View file

@ -4,6 +4,7 @@ import 'package:angel_model/angel_model.dart';
import 'package:angel_orm/angel_orm.dart'; import 'package:angel_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel_serialize/angel_serialize.dart';
part 'customer.g.dart'; part 'customer.g.dart';
part 'customer.serializer.g.dart';
@orm @orm
@serializable @serializable

View file

@ -4,6 +4,7 @@ import 'package:angel_model/angel_model.dart';
import 'package:angel_orm/angel_orm.dart'; import 'package:angel_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel_serialize/angel_serialize.dart';
part 'foot.g.dart'; part 'foot.g.dart';
part 'foot.serializer.g.dart';
@serializable @serializable
@orm @orm

View file

@ -4,6 +4,7 @@ import 'package:angel_model/angel_model.dart';
import 'package:angel_orm/angel_orm.dart'; import 'package:angel_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel_serialize/angel_serialize.dart';
part 'fruit.g.dart'; part 'fruit.g.dart';
part 'fruit.serializer.g.dart';
@serializable @serializable
@orm @orm

View file

@ -5,6 +5,7 @@ import 'package:angel_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel_serialize/angel_serialize.dart';
import 'foot.dart'; import 'foot.dart';
part 'leg.g.dart'; part 'leg.g.dart';
part 'leg.serializer.g.dart';
@serializable @serializable
@orm @orm

View file

@ -5,6 +5,7 @@ import 'package:angel_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel_serialize/angel_serialize.dart';
import 'customer.dart'; import 'customer.dart';
part 'order.g.dart'; part 'order.g.dart';
part 'order.serializer.g.dart';
@orm @orm
@serializable @serializable

View file

@ -4,6 +4,7 @@ import 'package:angel_model/angel_model.dart';
import 'package:angel_orm/angel_orm.dart'; import 'package:angel_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel_serialize/angel_serialize.dart';
part 'role.g.dart'; part 'role.g.dart';
part 'role.serializer.g.dart';
@serializable @serializable
@orm @orm

View file

@ -5,11 +5,12 @@ import 'package:angel_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel_serialize/angel_serialize.dart';
import 'fruit.dart'; import 'fruit.dart';
part 'tree.g.dart'; part 'tree.g.dart';
part 'tree.serializer.g.dart';
@serializable @serializable
@orm @orm
class _Tree extends Model { class _Tree extends Model {
@Column(indexType: IndexType.UNIQUE, type: ColumnType.smallInt) @Column(indexType: IndexType.unique, type: ColumnType.smallInt)
int rings; int rings;
@hasMany @hasMany

View file

@ -5,6 +5,7 @@ import 'package:angel_orm/angel_orm.dart';
import 'package:angel_serialize/angel_serialize.dart'; import 'package:angel_serialize/angel_serialize.dart';
import 'role.dart'; import 'role.dart';
part 'user.g.dart'; part 'user.g.dart';
part 'user.serializer.g.dart';
@serializable @serializable
@orm @orm