Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface User {
- id: number,
- name: string,
- login: {
- username: string,
- password: string,
- token: string
- }
- };
- interface Conta {
- id: number,
- user_id: number,
- conta_parent_id?: number, // Uma conta possui outras contas
- nome: string,
- descricao: string,
- }
- interface Transacao {
- id: number,
- lancamentos: {}
- responsabilidade_id?: number // pode ser realizada para pagar uma responsabilidade
- }
- interface Lancamento {
- id: number,
- conta_id: number,
- timestamp: number,
- valor: number
- }
- interface Responsabilidade {
- id: number,
- conta_id: number
- timestamp: number,
- valor: number,
- paga: boolean
- }
- interface State {
- user: User;
- contas: { [key: number]: Conta },
- lancamentos: { [key: number]: Lancamento },
- responsabilidades: { [key: number]: Responsabilidade }
- transacoes: { [key: number]: Transacao }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement