-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tech(1d): use only usefull assessment attributes and clean model
- Loading branch information
Yaelle YAMA
authored
Nov 20, 2023
1 parent
8ee7e4a
commit 4fdb8eb
Showing
2 changed files
with
3 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import Model, { attr, belongsTo } from '@ember-data/model'; | ||
import Model, { attr } from '@ember-data/model'; | ||
|
||
export default class Activity extends Model { | ||
@attr('string') level; | ||
@belongsTo('assessment', { async: true, inverse: 'activities' }) assessment; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
import Model, { attr, hasMany } from '@ember-data/model'; | ||
import Model, { attr } from '@ember-data/model'; | ||
|
||
export default class Assessment extends Model { | ||
// attributes | ||
@attr('string') certificationNumber; | ||
@attr('string') codeCampaign; | ||
@attr('string') state; | ||
@attr('string') title; | ||
@attr('string') type; | ||
@attr('string') lastQuestionState; | ||
@attr('string') method; | ||
|
||
// references | ||
@attr('string') competenceId; | ||
@attr('string') missionId; | ||
@hasMany('activity', { async: true, inverse: 'assessment' }) activities; | ||
@attr('string') organizationLearnerId; | ||
} |