@@ -8,35 +8,72 @@ part '20200121222037.migration.dart';
88final migrations = < Migration > {const Migration20210111042657 (), const Migration20200121222037 ()};
99
1010/// A consumable database structure including the latest generated migration.
11- final schema = Schema (20210111042657 , generatorVersion: 1 , tables: < SchemaTable > {
12- SchemaTable ('_brick_Customer_pizzas' , columns: < SchemaColumn > {
13- SchemaColumn ('_brick_id' , Column .integer,
14- autoincrement: true , nullable: false , isPrimaryKey: true ),
15- SchemaColumn ('l_Customer_brick_id' , Column .integer,
16- isForeignKey: true ,
17- foreignTableName: 'Customer' ,
18- onDeleteCascade: true ,
19- onDeleteSetDefault: false ),
20- SchemaColumn ('f_Pizza_brick_id' , Column .integer,
21- isForeignKey: true ,
22- foreignTableName: 'Pizza' ,
23- onDeleteCascade: true ,
24- onDeleteSetDefault: false )
25- }, indices: < SchemaIndex > {
26- SchemaIndex (columns: ['l_Customer_brick_id' , 'f_Pizza_brick_id' ], unique: true )
27- }),
28- SchemaTable ('Customer' , columns: < SchemaColumn > {
29- SchemaColumn ('_brick_id' , Column .integer,
30- autoincrement: true , nullable: false , isPrimaryKey: true ),
31- SchemaColumn ('id' , Column .integer, unique: true ),
32- SchemaColumn ('first_name' , Column .varchar),
33- SchemaColumn ('last_name' , Column .varchar)
34- }, indices: < SchemaIndex > {}),
35- SchemaTable ('Pizza' , columns: < SchemaColumn > {
36- SchemaColumn ('_brick_id' , Column .integer,
37- autoincrement: true , nullable: false , isPrimaryKey: true ),
38- SchemaColumn ('id' , Column .integer, unique: true ),
39- SchemaColumn ('toppings' , Column .varchar),
40- SchemaColumn ('frozen' , Column .boolean)
41- }, indices: < SchemaIndex > {})
42- });
11+ final schema = Schema (
12+ 20210111042657 ,
13+ generatorVersion: 1 ,
14+ tables: < SchemaTable > {
15+ SchemaTable (
16+ '_brick_Customer_pizzas' ,
17+ columns: < SchemaColumn > {
18+ SchemaColumn (
19+ '_brick_id' ,
20+ Column .integer,
21+ autoincrement: true ,
22+ nullable: false ,
23+ isPrimaryKey: true ,
24+ ),
25+ SchemaColumn (
26+ 'l_Customer_brick_id' ,
27+ Column .integer,
28+ isForeignKey: true ,
29+ foreignTableName: 'Customer' ,
30+ onDeleteCascade: true ,
31+ onDeleteSetDefault: false ,
32+ ),
33+ SchemaColumn (
34+ 'f_Pizza_brick_id' ,
35+ Column .integer,
36+ isForeignKey: true ,
37+ foreignTableName: 'Pizza' ,
38+ onDeleteCascade: true ,
39+ onDeleteSetDefault: false ,
40+ ),
41+ },
42+ indices: < SchemaIndex > {
43+ SchemaIndex (columns: ['l_Customer_brick_id' , 'f_Pizza_brick_id' ], unique: true ),
44+ },
45+ ),
46+ SchemaTable (
47+ 'Customer' ,
48+ columns: < SchemaColumn > {
49+ SchemaColumn (
50+ '_brick_id' ,
51+ Column .integer,
52+ autoincrement: true ,
53+ nullable: false ,
54+ isPrimaryKey: true ,
55+ ),
56+ SchemaColumn ('id' , Column .integer, unique: true ),
57+ SchemaColumn ('first_name' , Column .varchar),
58+ SchemaColumn ('last_name' , Column .varchar),
59+ },
60+ indices: < SchemaIndex > {},
61+ ),
62+ SchemaTable (
63+ 'Pizza' ,
64+ columns: < SchemaColumn > {
65+ SchemaColumn (
66+ '_brick_id' ,
67+ Column .integer,
68+ autoincrement: true ,
69+ nullable: false ,
70+ isPrimaryKey: true ,
71+ ),
72+ SchemaColumn ('id' , Column .integer, unique: true ),
73+ SchemaColumn ('toppings' , Column .varchar),
74+ SchemaColumn ('frozen' , Column .boolean),
75+ },
76+ indices: < SchemaIndex > {},
77+ ),
78+ },
79+ );
0 commit comments