Created
February 1, 2018 21:05
-
-
Save llucasshenrique/f5b51f6dc899b268e9890086774d56de to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export class Report { | |
values: ReportValues | |
metadata: ReportMetadata | |
media: string[] | |
} | |
class ReportMetadata { | |
//Esses timestamp é um objeto mas considere ele apenas como uma data | |
createdServerTime? = firebase.firestore.FieldValue.serverTimestamp() | |
lastUpdateServerTime? = firebase.firestore.FieldValue.serverTimestamp() | |
createdLocalTime: string | |
updatedLocalTime?: string | |
account: string | |
profile: string | |
id?: string | |
} | |
class ReportValues { | |
date: string | |
begin: string | |
details: string | |
duration?: string | |
triggers: CustomTrigger[] | |
typeOfSeizure: CustomType[] | |
} | |
export class CustomType { | |
id?: string | |
name: string | |
description: string | |
color?: string | |
} | |
export class CustomTrigger { | |
id?: string | |
name: string | |
description: string | |
color?: string | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment