-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jak103:main' into main
- Loading branch information
Showing
16 changed files
with
69 additions
and
68 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,13 +1,14 @@ | ||
import type { DbModel } from './DbModel' | ||
import { AuditLogId } from './ids' | ||
import type { User } from './index' | ||
|
||
/** | ||
* @unused We could use this if we need an admin frontend. | ||
*/ | ||
export interface AuditLog extends DbModel { | ||
export interface AuditLog { | ||
user: User | ||
action: string | ||
table: string | ||
id: AuditLogId | ||
} | ||
|
||
export type { AuditLogId } from './ids' |
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,16 +1,16 @@ | ||
import type { DbModel, Game, TeamRecord } from './index' | ||
import type { UserId, GameId, TeamRecordId } from './ids' | ||
import type { DbModel, Game, Team } from './index' | ||
import type { UserId, GameId, TeamId } from './ids' | ||
|
||
export interface Goals extends DbModel { | ||
user_id: UserId | ||
game_id: GameId | ||
game: Game | ||
team_record_id: TeamRecordId | ||
team_record: TeamRecord | ||
team_id: TeamId | ||
team: Team | ||
duration: number | ||
period: number | ||
assist1_id: UserId | ||
assist2_id: UserId | ||
player_differential: number | ||
is_penalty_shot: boolean | ||
playerdifferential: number | ||
ispenaltyshot: boolean | ||
} |
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,11 @@ | ||
import type { DbModel, Team } from './index' | ||
import type { LeagueGuid, SeasonId } from './ids' | ||
|
||
export interface League extends DbModel { | ||
correlation_id: LeagueGuid | ||
season_id: SeasonId | ||
name: string | ||
teams: Array<Team> | ||
} | ||
|
||
export type { LeagueId, LeagueGuid } from './ids' |
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
export type Logo = HTMLImageElement | ||
export type { LogoId } from './ids' |
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,13 +1,13 @@ | ||
import type { TimeString } from './types/timeString' | ||
import type { DbModel, Registration, Game, LeagueRecord } from './index' | ||
import type { DbModel, Registration, Game, League } from './index' | ||
|
||
export interface Season extends DbModel { | ||
name: string | ||
start: TimeString | ||
end: TimeString | ||
registrations: Array<Registration> | ||
schedule: Array<Game> | ||
leagues: Array<LeagueRecord> | ||
leagues: Array<League> | ||
} | ||
|
||
export type { SeasonId } from './ids' |
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 type { DbModel } from './index' | ||
import type { GameId, TeamRecordId, UserId } from './ids' | ||
import type { GameId, TeamId, UserId } from './ids' | ||
|
||
export interface ShotOnGoal extends DbModel { | ||
game_id: GameId | ||
team_id: TeamRecordId | ||
team_id: TeamId | ||
shot_time: number | ||
scorekeeper: UserId | ||
} |
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,17 @@ | ||
import type { DbModel, League, Roster } from './index' | ||
import type { LeagueId, LogoId, RosterId, TeamGuid } from './ids' | ||
|
||
export interface Team extends DbModel { | ||
correlation_id: TeamGuid | ||
name: string | ||
logo_id: LogoId | ||
color: string | ||
league_id: LeagueId | ||
league: League | ||
roster?: Roster | ||
roster_id?: RosterId | ||
wins: number | ||
losses: number | ||
} | ||
|
||
export type { TeamId, TeamGuid } from './ids' |
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
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