Skip to content

Commit e86008e

Browse files
server: add support goal check print field
1 parent 554d456 commit e86008e

12 files changed

Lines changed: 13308 additions & 1 deletion

File tree

docs/model_relations/school_data_hub_server.svg

Lines changed: 1 addition & 1 deletion
Loading

school_data_hub_client/lib/src/protocol/_features/learning_support/models/support_goal/support_goal_check.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ abstract class SupportGoalCheck implements _i1.SerializableModel {
2222
required this.createdAt,
2323
required this.score,
2424
required this.comment,
25+
this.print,
2526
this.documents,
2627
required this.supportGoalId,
2728
this.supportGoal,
@@ -34,6 +35,7 @@ abstract class SupportGoalCheck implements _i1.SerializableModel {
3435
required DateTime createdAt,
3536
required int score,
3637
required String comment,
38+
bool? print,
3739
List<_i2.HubDocument>? documents,
3840
required int supportGoalId,
3941
_i3.SupportGoal? supportGoal,
@@ -48,6 +50,7 @@ abstract class SupportGoalCheck implements _i1.SerializableModel {
4850
_i1.DateTimeJsonExtension.fromJson(jsonSerialization['createdAt']),
4951
score: jsonSerialization['score'] as int,
5052
comment: jsonSerialization['comment'] as String,
53+
print: jsonSerialization['print'] as bool?,
5154
documents: (jsonSerialization['documents'] as List?)
5255
?.map((e) => _i2.HubDocument.fromJson((e as Map<String, dynamic>)))
5356
.toList(),
@@ -74,6 +77,8 @@ abstract class SupportGoalCheck implements _i1.SerializableModel {
7477

7578
String comment;
7679

80+
bool? print;
81+
7782
List<_i2.HubDocument>? documents;
7883

7984
int supportGoalId;
@@ -90,6 +95,7 @@ abstract class SupportGoalCheck implements _i1.SerializableModel {
9095
DateTime? createdAt,
9196
int? score,
9297
String? comment,
98+
bool? print,
9399
List<_i2.HubDocument>? documents,
94100
int? supportGoalId,
95101
_i3.SupportGoal? supportGoal,
@@ -103,6 +109,7 @@ abstract class SupportGoalCheck implements _i1.SerializableModel {
103109
'createdAt': createdAt.toJson(),
104110
'score': score,
105111
'comment': comment,
112+
if (print != null) 'print': print,
106113
if (documents != null)
107114
'documents': documents?.toJson(valueToJson: (v) => v.toJson()),
108115
'supportGoalId': supportGoalId,
@@ -126,6 +133,7 @@ class _SupportGoalCheckImpl extends SupportGoalCheck {
126133
required DateTime createdAt,
127134
required int score,
128135
required String comment,
136+
bool? print,
129137
List<_i2.HubDocument>? documents,
130138
required int supportGoalId,
131139
_i3.SupportGoal? supportGoal,
@@ -136,6 +144,7 @@ class _SupportGoalCheckImpl extends SupportGoalCheck {
136144
createdAt: createdAt,
137145
score: score,
138146
comment: comment,
147+
print: print,
139148
documents: documents,
140149
supportGoalId: supportGoalId,
141150
supportGoal: supportGoal,
@@ -152,6 +161,7 @@ class _SupportGoalCheckImpl extends SupportGoalCheck {
152161
DateTime? createdAt,
153162
int? score,
154163
String? comment,
164+
Object? print = _Undefined,
155165
Object? documents = _Undefined,
156166
int? supportGoalId,
157167
Object? supportGoal = _Undefined,
@@ -163,6 +173,7 @@ class _SupportGoalCheckImpl extends SupportGoalCheck {
163173
createdAt: createdAt ?? this.createdAt,
164174
score: score ?? this.score,
165175
comment: comment ?? this.comment,
176+
print: print is bool? ? print : this.print,
166177
documents: documents is List<_i2.HubDocument>?
167178
? documents
168179
: this.documents?.map((e0) => e0.copyWith()).toList(),

school_data_hub_server/lib/src/_features/learning_support/models/support_goal/support_goal_check.spy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ fields:
66
createdAt: DateTime
77
score: int
88
comment: String
9+
print: bool?
910
documents: List<HubDocument>?, relation
1011
supportGoal: SupportGoal?, relation(onDelete=Cascade)

school_data_hub_server/lib/src/generated/_features/learning_support/models/support_goal/support_goal_check.dart

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ abstract class SupportGoalCheck
2525
required this.createdAt,
2626
required this.score,
2727
required this.comment,
28+
this.print,
2829
this.documents,
2930
required this.supportGoalId,
3031
this.supportGoal,
@@ -37,6 +38,7 @@ abstract class SupportGoalCheck
3738
required DateTime createdAt,
3839
required int score,
3940
required String comment,
41+
bool? print,
4042
List<_i2.HubDocument>? documents,
4143
required int supportGoalId,
4244
_i3.SupportGoal? supportGoal,
@@ -51,6 +53,7 @@ abstract class SupportGoalCheck
5153
_i1.DateTimeJsonExtension.fromJson(jsonSerialization['createdAt']),
5254
score: jsonSerialization['score'] as int,
5355
comment: jsonSerialization['comment'] as String,
56+
print: jsonSerialization['print'] as bool?,
5457
documents: (jsonSerialization['documents'] as List?)
5558
?.map((e) => _i2.HubDocument.fromJson((e as Map<String, dynamic>)))
5659
.toList(),
@@ -81,6 +84,8 @@ abstract class SupportGoalCheck
8184

8285
String comment;
8386

87+
bool? print;
88+
8489
List<_i2.HubDocument>? documents;
8590

8691
int supportGoalId;
@@ -102,6 +107,7 @@ abstract class SupportGoalCheck
102107
DateTime? createdAt,
103108
int? score,
104109
String? comment,
110+
bool? print,
105111
List<_i2.HubDocument>? documents,
106112
int? supportGoalId,
107113
_i3.SupportGoal? supportGoal,
@@ -115,6 +121,7 @@ abstract class SupportGoalCheck
115121
'createdAt': createdAt.toJson(),
116122
'score': score,
117123
'comment': comment,
124+
if (print != null) 'print': print,
118125
if (documents != null)
119126
'documents': documents?.toJson(valueToJson: (v) => v.toJson()),
120127
'supportGoalId': supportGoalId,
@@ -134,6 +141,7 @@ abstract class SupportGoalCheck
134141
'createdAt': createdAt.toJson(),
135142
'score': score,
136143
'comment': comment,
144+
if (print != null) 'print': print,
137145
if (documents != null)
138146
'documents':
139147
documents?.toJson(valueToJson: (v) => v.toJsonForProtocol()),
@@ -188,6 +196,7 @@ class _SupportGoalCheckImpl extends SupportGoalCheck {
188196
required DateTime createdAt,
189197
required int score,
190198
required String comment,
199+
bool? print,
191200
List<_i2.HubDocument>? documents,
192201
required int supportGoalId,
193202
_i3.SupportGoal? supportGoal,
@@ -198,6 +207,7 @@ class _SupportGoalCheckImpl extends SupportGoalCheck {
198207
createdAt: createdAt,
199208
score: score,
200209
comment: comment,
210+
print: print,
201211
documents: documents,
202212
supportGoalId: supportGoalId,
203213
supportGoal: supportGoal,
@@ -214,6 +224,7 @@ class _SupportGoalCheckImpl extends SupportGoalCheck {
214224
DateTime? createdAt,
215225
int? score,
216226
String? comment,
227+
Object? print = _Undefined,
217228
Object? documents = _Undefined,
218229
int? supportGoalId,
219230
Object? supportGoal = _Undefined,
@@ -225,6 +236,7 @@ class _SupportGoalCheckImpl extends SupportGoalCheck {
225236
createdAt: createdAt ?? this.createdAt,
226237
score: score ?? this.score,
227238
comment: comment ?? this.comment,
239+
print: print is bool? ? print : this.print,
228240
documents: documents is List<_i2.HubDocument>?
229241
? documents
230242
: this.documents?.map((e0) => e0.copyWith()).toList(),
@@ -246,6 +258,7 @@ class SupportGoalCheckImplicit extends _SupportGoalCheckImpl {
246258
required DateTime createdAt,
247259
required int score,
248260
required String comment,
261+
bool? print,
249262
List<_i2.HubDocument>? documents,
250263
required int supportGoalId,
251264
_i3.SupportGoal? supportGoal,
@@ -259,6 +272,7 @@ class SupportGoalCheckImplicit extends _SupportGoalCheckImpl {
259272
createdAt: createdAt,
260273
score: score,
261274
comment: comment,
275+
print: print,
262276
documents: documents,
263277
supportGoalId: supportGoalId,
264278
supportGoal: supportGoal,
@@ -275,6 +289,7 @@ class SupportGoalCheckImplicit extends _SupportGoalCheckImpl {
275289
createdAt: supportGoalCheck.createdAt,
276290
score: supportGoalCheck.score,
277291
comment: supportGoalCheck.comment,
292+
print: supportGoalCheck.print,
278293
documents: supportGoalCheck.documents,
279294
supportGoalId: supportGoalCheck.supportGoalId,
280295
supportGoal: supportGoalCheck.supportGoal,
@@ -310,6 +325,10 @@ class SupportGoalCheckTable extends _i1.Table<int?> {
310325
'comment',
311326
this,
312327
);
328+
print = _i1.ColumnBool(
329+
'print',
330+
this,
331+
);
313332
supportGoalId = _i1.ColumnInt(
314333
'supportGoalId',
315334
this,
@@ -330,6 +349,8 @@ class SupportGoalCheckTable extends _i1.Table<int?> {
330349

331350
late final _i1.ColumnString comment;
332351

352+
late final _i1.ColumnBool print;
353+
333354
_i2.HubDocumentTable? ___documents;
334355

335356
_i1.ManyRelation<_i2.HubDocumentTable>? _documents;
@@ -394,6 +415,7 @@ class SupportGoalCheckTable extends _i1.Table<int?> {
394415
createdAt,
395416
score,
396417
comment,
418+
print,
397419
supportGoalId,
398420
$_supportCategoryGoalGoalchecksSupportCategoryGoalId,
399421
];
@@ -406,6 +428,7 @@ class SupportGoalCheckTable extends _i1.Table<int?> {
406428
createdAt,
407429
score,
408430
comment,
431+
print,
409432
supportGoalId,
410433
];
411434

school_data_hub_server/lib/src/generated/protocol.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4383,6 +4383,12 @@ class Protocol extends _i1.SerializationManagerServer {
43834383
isNullable: false,
43844384
dartType: 'String',
43854385
),
4386+
_i2.ColumnDefinition(
4387+
name: 'print',
4388+
columnType: _i2.ColumnType.boolean,
4389+
isNullable: true,
4390+
dartType: 'bool?',
4391+
),
43864392
_i2.ColumnDefinition(
43874393
name: 'supportGoalId',
43884394
columnType: _i2.ColumnType.bigint,

0 commit comments

Comments
 (0)