-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
draft.yaml
112 lines (102 loc) · 2.4 KB
/
draft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
models:
Account:
user_id: unsigned integer
currency_id: unsigned integer
name: string
number: string
institute: string
type: string
balance: integer
relationships:
belongsTo: User, Currency
hasMany: Transaction
Category:
name: string
type: string
relationships:
belongsTo: User
Transaction:
user_id: unsigned integer
account_id: unsigned integer
category_id: unsigned integer
currency_id: unsigned integer
amount: integer
date: datetime
description: text
relationships:
belongsTo: User, Account, Category, Currency
hasMany: Tag
Budget:
user_id: unsigned integer
category_id: unsigned integer
currency_id: unsigned integer
amount: integer
start_date: date
end_date: date
relationships:
belongsTo: User, Category, Currency
Goal:
user_id: unsigned integer
currency_id: unsigned integer
name: string
target_amount: integer
current_amount: integer
deadline: date
relationships:
belongsTo: User
RecurringTransaction:
user_id: unsigned integer
account_id: unsigned integer
category_id: unsigned integer
currency_id: unsigned integer
transaction_type: string
amount: integer
frequency: string
start_date: date
end_date: date nullable
relationships:
belongsTo: User, Account, Category, Currency
Tag:
name: string
relationships:
belongsTo: User
belongsToMany: Transaction
Investment:
user_id: unsigned integer
name: string
type: string
purchase_date: date
purchase_price: integer
current_price: integer
quantity: integer
currency_id: unsigned integer
relationships:
belongsTo: User
BillReminder:
user_id: unsigned integer
category_id: unsigned integer
currency_id: unsigned integer
name: string
amount: integer
due_date: date
frequency: string
is_paid: boolean
relationships:
belongsTo: User, Category, Currency
Debt:
user_id: unsigned integer
name: string
type: string
interest_rate: float
initial_amount: integer
current_balance: integer
min_payment: integer
due_date: date
currency_id: unsigned integer
relationships:
belongsTo: User, Currency
Currency:
name: string
code: string
relationships:
hasMany: Account, Investment, BillReminder, Debt