firefly-iii/storage/database/seed.import-test.json
James Cole 08992b5298
Extend test-import data set to contain some rules.
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
2016-08-26 07:38:00 +02:00

279 lines
5.6 KiB
JSON

{
"users": [
{
"email": "thegrumpydictator@gmail.com",
"password": "james"
}
],
"roles": [
{
"user_id": 1,
"role": 1
}
],
"accounts": [
{
"user_id": 1,
"account_type_id": 3,
"name": "ExistingAssetAccount",
"iban": "NL62EXFK3945306779"
},
{
"user_id": 1,
"account_type_id": 4,
"name": "ExistingOpposingAccount",
"iban": "NL79BGWN6303364632"
}
],
"account-meta": [
{
"account_id": 1,
"name": "accountNumber",
"data": "\"3945306779\""
},
{
"account_id": 2,
"name": "accountNumber",
"data": "\"6303364632\""
}
],
"bills": [
{
"name": "ExistingBill",
"match": "ExistingBill",
"amount_min": 100,
"amount_max": 200,
"user_id": 1,
"date": "2015-01-01",
"active": 1,
"automatch": 1,
"repeat_freq": "monthly",
"skip": 0
}
],
"budgets": [
{
"name": "ExistingBudget",
"user_id": 1
}
],
"budget-limits": [],
"monthly-limits": [],
"categories": [
{
"name": "ExistingCategory",
"user_id": 1
},
{
"name": "UnExpected Taxes",
"user_id": 1
}
],
"piggy-banks": [],
"piggy-events": [],
"rule-groups": [
{
"user_id": 1,
"order": 1,
"title": "Default rules",
"description": "All your rules not in a particular group."
},
{
"user_id": 1,
"order": 2,
"title": "Unexpected rules",
"description": "Group for unexpected rules"
}
],
"rules": [
{
"user_id": 1,
"rule_group_id": 1,
"order": 1,
"active": 1,
"stop_processing": 0,
"title": "Your first default rule",
"description": "This rule is an example. You can safely delete it."
},
{
"user_id": 1,
"rule_group_id": 2,
"order": 1,
"active": 1,
"stop_processing": 0,
"title": "Onverwachte belastingen",
"description": "Triggers on the storage of onverwachte belastingen."
}
],
"rule-triggers": [
{
"rule_id": 1,
"order": 1,
"active": 1,
"stop_processing": 0,
"trigger_type": "user_action",
"trigger_value": "store-journal"
},
{
"rule_id": 1,
"order": 2,
"active": 1,
"stop_processing": 0,
"trigger_type": "description_is",
"trigger_value": "The Man Who Sold the World"
},
{
"rule_id": 1,
"order": 3,
"active": 1,
"stop_processing": 0,
"trigger_type": "from_account_is",
"trigger_value": "David Bowie"
},
{
"rule_id": 2,
"order": 1,
"active": 1,
"stop_processing": 0,
"trigger_type": "user_action",
"trigger_value": "store-journal"
},
{
"rule_id": 2,
"order": 2,
"active": 1,
"stop_processing": 0,
"trigger_type": "description_contains",
"trigger_value": "(on)verwachte"
}
],
"rule-actions": [
{
"rule_id": 1,
"order": 1,
"active": 1,
"stop_processing": 0,
"action_type": "prepend_description",
"action_value": "Bought the world from "
},
{
"rule_id": 1,
"order": 2,
"active": 1,
"stop_processing": 0,
"action_type": "set_category",
"action_value": "Large expenses"
},
{
"rule_id": 2,
"order": 1,
"active": 1,
"stop_processing": 0,
"action_type": "set_category",
"action_value": "UnExpected Taxes"
}
],
"tags": [
{
"user_id": 1,
"tag": "ExistingTag",
"tagMode": "nothing"
},
{
"user_id": 1,
"tag": "AnotherExistingTag",
"tagMode": "nothing"
}
],
"monthly-deposits": [],
"monthly-transfers": [],
"monthly-withdrawals": [],
"attachments": [],
"multi-withdrawals": [],
"multi-deposits": [],
"multi-transfers": [],
"import-jobs": [
{
"user_id": 1,
"key": "testImport",
"file_type": "csv",
"status": "settings_complete",
"extended_status": {
"steps_done": 0,
"total_steps": 0,
"errors": [],
"import_count": 0,
"importTag": 0
},
"configuration": {
"has-headers": false,
"date-format": "Ymd",
"delimiter": ",",
"import-account": 1,
"specifics": {
"RabobankDescription": 1
},
"column-count": 19,
"column-roles": [
"account-iban",
"currency-code",
"date-interest",
"rabo-debet-credit",
"amount",
"opposing-iban",
"opposing-name",
"date-book",
"description",
"_ignore",
"description",
"description",
"description",
"description",
"description",
"description",
"sepa-ct-id",
"sepa-ct-op",
"sepa-db"
],
"column-do-mapping": [
true,
true,
false,
false,
false,
true,
true,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
],
"column-roles-complete": false,
"column-mapping-config": {
"0": [],
"1": {
"EUR": 1
},
"5": [],
"6": []
},
"column-mapping-complete": false
}
}
],
"currencies": [
{
"name": "ExistingCurrency",
"symbol": "#",
"code": "EXI"
}
]
}