-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crud School [Data and Domain] #111
base: develop
Are you sure you want to change the base?
Conversation
jvcanavarro
commented
Dec 24, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ClassroomModel should be updated with a foreign key of school
try { | ||
bool nullToAbsent = true; | ||
final schoolCompanion = schoolModel.toCompanion(nullToAbsent); | ||
final classPk = await this.database.insertSchool(schoolCompanion); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this parameter should be something like schoolPk
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
enum Modality { municipal, estadual, federal, privada } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In doubt if these categories should be spelled in English
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i just copied from backend