idz: Clean up Team and TeamMember data models

This commit is contained in:
Tau
2019-11-06 17:28:30 -05:00
parent 85510ee0e1
commit 33e2f55dce
12 changed files with 84 additions and 47 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ export { MissionState, MissionGrid } from "./mission";
export { Profile } from "./profile";
export { Settings } from "./settings";
export { Story } from "./story";
export { Team } from "./team";
export { Team, TeamMember } from "./team";
export { Tickets } from "./tickets";
export { TimeAttackScore } from "./timeAttack";
export { Unlocks } from "./unlocks";
+13 -1
View File
@@ -1,6 +1,18 @@
import { ExtId } from "./base";
import { Chara } from "./chara";
import { Profile } from "./profile";
export interface Team {
id: ExtId<Team>;
extId: ExtId<Team>;
name: string;
nameBg: number;
nameFx: number;
registerTime: Date;
}
export interface TeamMember {
profile: Profile;
chara: Chara;
leader: boolean;
joinTime: Date;
}