Você está na página 1de 2

Agenda Jusprod

- Database Collections
- ScheduleCategory
- id: uuid
- name: String
- color: String
- iconUrl: String

- ScheduleCategoryReminderControl
- id: uuid
- countDays: Number
- userId: DocumentReference
- categoryRef: DocumentReference (ScheduleCategory)

- ScheduleAvailability
- id: uuid
- userRef: DocumentReference
- monday: { start: String ('HH:mm'), end: String ('HH:mm') }
- tuesday: { start: String ('HH:mm'), end: String ('HH:mm') }
- wednesday: { start: String ('HH:mm'), end: String ('HH:mm') }
- thursday: { start: String ('HH:mm'), end: String ('HH:mm') }
- friday: { start: String ('HH:mm'), end: String ('HH:mm') }
- saturday: { start: String ('HH:mm'), end: String ('HH:mm') }
- sunday: { start: String ('HH:mm'), end: String ('HH:mm') }

- ScheduleCommitment
- id: uuid
- userRef: DocumentReference
- clientRef: DocumentReference
- processRef: DocumentReference
- category: DocumentReference (ScheduleCategory)
- name: String
- note: String
- linkUrl: String
- address: String
- start: Timestamp
- end: Timestamp
- participantEmails: String[]
- reminderMinutesBefore: Number

- Database Collections Description


- ScheduleCategory: Será uma Collection com dados já prontos e não
teremos alterações nessa tabela, a unica função dessa Collectio é listar as
categorias para o usuário
- ScheduleCategoryReminderControl: Com base na lista de categorias
(ScheduleCategory) o usuário poderá definir o controle de alertas por categoria
- ScheduleAvailability: Responsável por definir os horarios de disponibilidade
do usuário por dias da semana, dentro de cada dia da semana teremos o
horario inicial e final da jornada de trabalho
- ScheduleCommitment: Armazena um compromisso na agenda do usuário,
podendo se relacionar com as Collections anteriores e externas (Clients e
Process) para preenchimento dos dados

Você também pode gostar