-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
186 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<<<<<<< HEAD | ||
import Model, { | ||
attr, | ||
belongsTo, | ||
hasMany, | ||
type AsyncHasMany, | ||
} from "@ember-data/model"; | ||
import type { Duration } from "moment"; | ||
|
||
import type AbsenceCredit from "./absence-credit"; | ||
import type AbsenceType from "./absence-type"; | ||
import type User from "./user"; | ||
======= | ||
import Model, { attr, belongsTo, hasMany } from "@ember-data/model"; | ||
>>>>>>> 5c1741fc (cheklflasdjf) | ||
|
||
export default class AbsenceBalance extends Model { | ||
@attr("number") | ||
declare credit: number; | ||
|
||
@attr("number") | ||
declare usedDays: number; | ||
|
||
<<<<<<< HEAD | ||
@attr("django-duration") | ||
declare usedDuration: Duration; | ||
|
||
@attr("number") | ||
declare balance: number; | ||
|
||
@belongsTo("user", { async: false, inverse: "absenceBalances" }) | ||
declare user: User; | ||
|
||
@belongsTo("absence-type", { async: false, inverse: "absenceBalances" }) | ||
declare absenceType: AbsenceType; | ||
|
||
@hasMany("absence-credit", { async: true, inverse: null }) | ||
declare absenceCredits: AsyncHasMany<AbsenceCredit>; | ||
======= | ||
@attr("django-duration") usedDuration; | ||
@attr("number") balance; | ||
@belongsTo("user", { async: false, inverse: "absenceBalances" }) user; | ||
@belongsTo("absence-type", { async: false, inverse: "absenceBalances" }) | ||
absenceType; | ||
@hasMany("absence-credit", { async: true, inverse: null }) absenceCredits; | ||
>>>>>>> 5c1741fc (cheklflasdjf) | ||
} |
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
14 changes: 14 additions & 0 deletions
14
frontend/app/models/activity.js → frontend/app/models/activity.ts
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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