Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
models: Remove unnecessary transforms
- Loading branch information
Showing
12 changed files
with
61 additions
and
61 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,8 +1,8 @@ | ||
import Model, { attr } from '@ember-data/model'; | ||
|
||
export default class ApiToken extends Model { | ||
@attr('string') name; | ||
@attr('string') token; | ||
@attr name; | ||
@attr token; | ||
@attr('date') created_at; | ||
@attr('date') last_used_at; | ||
} |
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,6 @@ | ||
import Model, { attr } from '@ember-data/model'; | ||
|
||
export default class CategorySlug extends Model { | ||
@attr('string') slug; | ||
@attr('string') description; | ||
@attr slug; | ||
@attr description; | ||
} |
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,14 +1,14 @@ | ||
import Model, { attr, hasMany } from '@ember-data/model'; | ||
|
||
export default class Category extends Model { | ||
@attr('string') category; | ||
@attr('string') slug; | ||
@attr('string') description; | ||
@attr category; | ||
@attr slug; | ||
@attr description; | ||
@attr('date') created_at; | ||
@attr('number') crates_cnt; | ||
@attr crates_cnt; | ||
|
||
@attr() subcategories; | ||
@attr() parent_categories; | ||
@attr subcategories; | ||
@attr parent_categories; | ||
|
||
@hasMany('crate', { async: true }) crates; | ||
} |
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,9 +1,9 @@ | ||
import Model, { attr } from '@ember-data/model'; | ||
|
||
export default class CrateOwnerInvite extends Model { | ||
@attr('string') invited_by_username; | ||
@attr('string') crate_name; | ||
@attr('number') crate_id; | ||
@attr invited_by_username; | ||
@attr crate_name; | ||
@attr crate_id; | ||
@attr('date') created_at; | ||
@attr('boolean', { defaultValue: false }) accepted; | ||
@attr accepted; | ||
} |
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
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
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,9 +1,9 @@ | ||
import Model, { attr, hasMany } from '@ember-data/model'; | ||
|
||
export default class Keyword extends Model { | ||
@attr('string') keyword; | ||
@attr keyword; | ||
@attr('date') created_at; | ||
@attr('number') crates_cnt; | ||
@attr crates_cnt; | ||
|
||
@hasMany('crate', { async: true }) crates; | ||
} |
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,6 @@ | ||
import Model, { attr } from '@ember-data/model'; | ||
|
||
export default class OwnedCrate extends Model { | ||
@attr('string') name; | ||
@attr('boolean') email_notifications; | ||
@attr name; | ||
@attr email_notifications; | ||
} |
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
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
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
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