Skip to content

Instantly share code, notes, and snippets.

@llucasshenrique
Created February 1, 2018 21:05
Show Gist options
  • Save llucasshenrique/f5b51f6dc899b268e9890086774d56de to your computer and use it in GitHub Desktop.
Save llucasshenrique/f5b51f6dc899b268e9890086774d56de to your computer and use it in GitHub Desktop.
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