Advertisement
Guest User

Untitled

a guest
Apr 13th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. interface User {
  2. id: number,
  3. name: string,
  4. login: {
  5. username: string,
  6. password: string,
  7. token: string
  8. }
  9. };
  10.  
  11. interface Conta {
  12. id: number,
  13. user_id: number,
  14. conta_parent_id?: number, // Uma conta possui outras contas
  15. nome: string,
  16. descricao: string,
  17. }
  18.  
  19. interface Transacao {
  20. id: number,
  21. lancamentos: {}
  22. responsabilidade_id?: number // pode ser realizada para pagar uma responsabilidade
  23. }
  24.  
  25. interface Lancamento {
  26. id: number,
  27. conta_id: number,
  28. timestamp: number,
  29. valor: number
  30. }
  31.  
  32. interface Responsabilidade {
  33. id: number,
  34. conta_id: number
  35. timestamp: number,
  36. valor: number,
  37. paga: boolean
  38. }
  39.  
  40. interface State {
  41. user: User;
  42. contas: { [key: number]: Conta },
  43. lancamentos: { [key: number]: Lancamento },
  44. responsabilidades: { [key: number]: Responsabilidade }
  45. transacoes: { [key: number]: Transacao }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement