idz: Add SqlTimeAttackRepository

This commit is contained in:
Tau
2019-11-06 17:28:30 -05:00
parent 561f06eccb
commit ceaeebc0b4
7 changed files with 115 additions and 35 deletions
+1
View File
@@ -3,4 +3,5 @@
export type BackgroundCode = number & { __brand: "backgroundCode" };
export type ExtId<T> = number & { __extId: T };
export type RouteNo = number & { __brand: "routeNo" };
export type TitleCode = number & { __brand: "titleCode" };
+6 -4
View File
@@ -1,8 +1,10 @@
import { RouteNo } from "./base";
export interface TimeAttackScore {
courseId: number;
timestamp: string; // hack
routeNo: RouteNo;
timestamp: Date;
flags: number;
totalMsec: number;
stageMsec: number[];
totalTime: number;
sectionTimes: number[];
grade: number;
}