Skip to content

Start school#10

Open
a-bainbridge wants to merge 1 commit intoamikhalev:masterfrom
a-bainbridge:add-schools
Open

Start school#10
a-bainbridge wants to merge 1 commit intoamikhalev:masterfrom
a-bainbridge:add-schools

Conversation

@a-bainbridge
Copy link
Collaborator

there's some extra ugly stuff i threw in to try to test this. gonna add better ways to test later

id: number;

@ManyToMany(type => User)
@JoinTable({ name: 'students' })
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name is the name of the table joining this to users. You want this to be something like "school_students"


@ManyToMany(type => User)
@JoinTable({ name: 'students' })
students?: User[];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be optional, by default it should just be empty

name: string | null;

@Column('text', { nullable: true })
_validationData: string | null;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaultSubject: string | null;

@Column('int', { length: 4, nullable: true })
graduationYear: number | null;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@a-bainbridge
Copy link
Collaborator Author

After this is merged, I'll be using branches off this repo in the future, not forks

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants