Skip to content
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

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from
Open

Crud School [Data and Domain] #111

wants to merge 18 commits into from

Conversation

jvcanavarro
Copy link
Member

levi

Copy link
Member

@renan-cunha renan-cunha left a 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);
Copy link
Member

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 }
Copy link
Member

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

Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants