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

Update models and relationships #462

Merged
merged 13 commits into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/models/besluit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Model, { belongsTo } from '@ember-data/model';

export default class BesluitModel extends Model {
@belongsTo('rechtsgrond-besluit', { inverse: null }) realistatie;
@belongsTo('behandeling-van-agendapunt', { inverse: 'besluiten' })
volgendUitBehandelingVanAgendapunt;
@belongsTo('editor-document', { inverse: null }) afgeleidUitNotule;
Expand Down
4 changes: 0 additions & 4 deletions app/models/document-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export default class DocumentContainerModel extends Model {
@belongsTo('editor-document-folder', { inverse: null }) folder;
@belongsTo('bestuurseenheid', { inverse: null }) publisher;

@hasMany('versioned-agenda') versionedAgendas;
@hasMany('versioned-notulen') versionedNotulen;
@hasMany('versioned-besluiten-lijst') versionedBesluitenLijsten;
@hasMany('versioned-behandelingen') versionedBehandelingen;
@hasMany('attachment', { inverse: 'documentContainer' }) attachments;
@hasMany('editor-document', { inverse: 'parts' }) isPartOf;
}
2 changes: 1 addition & 1 deletion app/models/published-resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class PublishedResourceModel extends Model {
@attr submissionStatus;
@belongsTo('blockchain-status') status;
@belongsTo('gebruiker') gebruiker;
@belongsTo('versioned-agenda') versionedAgenda;
@belongsTo('agenda') agenda;
@belongsTo('versioned-besluiten-lijst') versionedBesluitenLijst;
@belongsTo('versioned-notulen') versionedNotulen;
}
2 changes: 1 addition & 1 deletion app/models/signed-resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default class SignedResourceModel extends Model {
@attr('datetime') createdOn;
@belongsTo('blockchain-status') status;
@belongsTo('gebruiker') gebruiker;
@belongsTo('versioned-agenda') versionedAgenda;
@belongsTo('agenda') agenda;
@belongsTo('versioned-besluiten-lijst') versionedBesluitenLijst;
@belongsTo('versioned-notulen') versionedNotulen;
}
6 changes: 0 additions & 6 deletions app/models/task-solution.js

This file was deleted.

7 changes: 0 additions & 7 deletions app/models/task.js

This file was deleted.

7 changes: 0 additions & 7 deletions app/models/tasklist-solution.js

This file was deleted.

6 changes: 0 additions & 6 deletions app/models/tasklist.js

This file was deleted.

11 changes: 0 additions & 11 deletions app/models/versioned-agenda.js

This file was deleted.