mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 18:20:24 -05:00
1696 lines
43 KiB
JSON
1696 lines
43 KiB
JSON
{
|
|
"id": "3c7fe95b-cb58-486e-9085-5184c5ba33d6",
|
|
"prevId": "2ae1deef-7847-405b-94ac-eff2c80d4fa3",
|
|
"version": "7",
|
|
"dialect": "postgresql",
|
|
"tables": {
|
|
"actual.accounts": {
|
|
"name": "accounts",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"offbudget": {
|
|
"name": "offbudget",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"closed": {
|
|
"name": "closed",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"sort_order": {
|
|
"name": "sort_order",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"account_id": {
|
|
"name": "account_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"balance_current": {
|
|
"name": "balance_current",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"balance_available": {
|
|
"name": "balance_available",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"balance_limit": {
|
|
"name": "balance_limit",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"mask": {
|
|
"name": "mask",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"official_name": {
|
|
"name": "official_name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"type": {
|
|
"name": "type",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"subtype": {
|
|
"name": "subtype",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"bank": {
|
|
"name": "bank",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"account_sync_source": {
|
|
"name": "account_sync_source",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"last_sync": {
|
|
"name": "last_sync",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"last_reconciled": {
|
|
"name": "last_reconciled",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"tombstone": {
|
|
"name": "tombstone",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"accounts_name_index": {
|
|
"name": "accounts_name_index",
|
|
"columns": [
|
|
{
|
|
"expression": "name",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"accounts\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"accounts_bank_index": {
|
|
"name": "accounts_bank_index",
|
|
"columns": [
|
|
{
|
|
"expression": "bank",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"accounts\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"accounts_sort_order_name_index": {
|
|
"name": "accounts_sort_order_name_index",
|
|
"columns": [
|
|
{
|
|
"expression": "sort_order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "name",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"accounts_bank_banks_id_fk": {
|
|
"name": "accounts_bank_banks_id_fk",
|
|
"tableFrom": "accounts",
|
|
"tableTo": "banks",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"bank"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.banks": {
|
|
"name": "banks",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"bank_id": {
|
|
"name": "bank_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"tombstone": {
|
|
"name": "tombstone",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"banks_bank_id_index": {
|
|
"name": "banks_bank_id_index",
|
|
"columns": [
|
|
{
|
|
"expression": "bank_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"banks\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.categories": {
|
|
"name": "categories",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"is_income": {
|
|
"name": "is_income",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"cat_group": {
|
|
"name": "cat_group",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sort_order": {
|
|
"name": "sort_order",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"hidden": {
|
|
"name": "hidden",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"goal_def": {
|
|
"name": "goal_def",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"tombstone": {
|
|
"name": "tombstone",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"categories_name_index": {
|
|
"name": "categories_name_index",
|
|
"columns": [
|
|
{
|
|
"expression": "name",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"categories\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"categories_cat_group_index": {
|
|
"name": "categories_cat_group_index",
|
|
"columns": [
|
|
{
|
|
"expression": "cat_group",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"categories\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"categories_sort_order_id_index": {
|
|
"name": "categories_sort_order_id_index",
|
|
"columns": [
|
|
{
|
|
"expression": "sort_order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"categories_goal_def_index": {
|
|
"name": "categories_goal_def_index",
|
|
"columns": [
|
|
{
|
|
"expression": "goal_def",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "first"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"categories_cat_group_category_groups_id_fk": {
|
|
"name": "categories_cat_group_category_groups_id_fk",
|
|
"tableFrom": "categories",
|
|
"tableTo": "category_groups",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"cat_group"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.category_groups": {
|
|
"name": "category_groups",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"is_income": {
|
|
"name": "is_income",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"sort_order": {
|
|
"name": "sort_order",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"hidden": {
|
|
"name": "hidden",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"tombstone": {
|
|
"name": "tombstone",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"category_groups_name_index": {
|
|
"name": "category_groups_name_index",
|
|
"columns": [
|
|
{
|
|
"expression": "name",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"category_groups\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"category_groups_is_income_sort_order_id_index": {
|
|
"name": "category_groups_is_income_sort_order_id_index",
|
|
"columns": [
|
|
{
|
|
"expression": "is_income",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "sort_order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"category_groups_sort_order_id_index": {
|
|
"name": "category_groups_sort_order_id_index",
|
|
"columns": [
|
|
{
|
|
"expression": "sort_order",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.category_mapping": {
|
|
"name": "category_mapping",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"transfer_id": {
|
|
"name": "transfer_id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"category_mapping_transfer_id_index": {
|
|
"name": "category_mapping_transfer_id_index",
|
|
"columns": [
|
|
{
|
|
"expression": "transfer_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"category_mapping_id_categories_id_fk": {
|
|
"name": "category_mapping_id_categories_id_fk",
|
|
"tableFrom": "category_mapping",
|
|
"tableTo": "categories",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"category_mapping_transfer_id_categories_id_fk": {
|
|
"name": "category_mapping_transfer_id_categories_id_fk",
|
|
"tableFrom": "category_mapping",
|
|
"tableTo": "categories",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"transfer_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.kvcache_key": {
|
|
"name": "kvcache_key",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "smallint",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"key": {
|
|
"name": "key",
|
|
"type": "double precision",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.kvcache": {
|
|
"name": "kvcache",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"key": {
|
|
"name": "key",
|
|
"type": "text",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"value": {
|
|
"name": "value",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.messages_clock": {
|
|
"name": "messages_clock",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "integer",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"clock": {
|
|
"name": "clock",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"messages_clock_clock_index": {
|
|
"name": "messages_clock_clock_index",
|
|
"columns": [
|
|
{
|
|
"expression": "clock",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "gin",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.messages_crdt": {
|
|
"name": "messages_crdt",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "serial",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"timestamp": {
|
|
"name": "timestamp",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"dataset": {
|
|
"name": "dataset",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"row": {
|
|
"name": "row",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"column": {
|
|
"name": "column",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"value": {
|
|
"name": "value",
|
|
"type": "bytea",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"messages_crdt_timestamp_index": {
|
|
"name": "messages_crdt_timestamp_index",
|
|
"columns": [
|
|
{
|
|
"expression": "timestamp",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"messages_crdt_dataset_row_column_timestamp_index": {
|
|
"name": "messages_crdt_dataset_row_column_timestamp_index",
|
|
"columns": [
|
|
{
|
|
"expression": "dataset",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "row",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "column",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "timestamp",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.notes": {
|
|
"name": "notes",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"note": {
|
|
"name": "note",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"notes_note_index": {
|
|
"name": "notes_note_index",
|
|
"columns": [
|
|
{
|
|
"expression": "note",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "gin_trgm_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "gin",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.payee_mapping": {
|
|
"name": "payee_mapping",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"target_id": {
|
|
"name": "target_id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"payee_mapping_target_id_index": {
|
|
"name": "payee_mapping_target_id_index",
|
|
"columns": [
|
|
{
|
|
"expression": "target_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"payee_mapping_id_payees_id_fk": {
|
|
"name": "payee_mapping_id_payees_id_fk",
|
|
"tableFrom": "payee_mapping",
|
|
"tableTo": "payees",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"payee_mapping_target_id_payees_id_fk": {
|
|
"name": "payee_mapping_target_id_payees_id_fk",
|
|
"tableFrom": "payee_mapping",
|
|
"tableTo": "payees",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"target_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.payees": {
|
|
"name": "payees",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"transfer_acct": {
|
|
"name": "transfer_acct",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"favorite": {
|
|
"name": "favorite",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"learn_categories": {
|
|
"name": "learn_categories",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": true
|
|
},
|
|
"tombstone": {
|
|
"name": "tombstone",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"category": {
|
|
"name": "category",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"payees_name_index": {
|
|
"name": "payees_name_index",
|
|
"columns": [
|
|
{
|
|
"expression": "name",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"payees\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"payees_transfer_acct_name_index": {
|
|
"name": "payees_transfer_acct_name_index",
|
|
"columns": [
|
|
{
|
|
"expression": "transfer_acct",
|
|
"isExpression": false,
|
|
"asc": false,
|
|
"nulls": "first"
|
|
},
|
|
{
|
|
"expression": "LOWER(\"name\")",
|
|
"asc": true,
|
|
"isExpression": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"payees\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"payees_transfer_acct_accounts_id_fk": {
|
|
"name": "payees_transfer_acct_accounts_id_fk",
|
|
"tableFrom": "payees",
|
|
"tableTo": "accounts",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"transfer_acct"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.rules": {
|
|
"name": "rules",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"stage": {
|
|
"name": "stage",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"conditions": {
|
|
"name": "conditions",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"actions": {
|
|
"name": "actions",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"tombstone": {
|
|
"name": "tombstone",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"conditions_op": {
|
|
"name": "conditions_op",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"rules_stage_index": {
|
|
"name": "rules_stage_index",
|
|
"columns": [
|
|
{
|
|
"expression": "stage",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"rules\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"rules_conditions_index": {
|
|
"name": "rules_conditions_index",
|
|
"columns": [
|
|
{
|
|
"expression": "conditions",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "gin",
|
|
"with": {}
|
|
},
|
|
"rules_actions_index": {
|
|
"name": "rules_actions_index",
|
|
"columns": [
|
|
{
|
|
"expression": "actions",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "gin",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.schedules_json_paths": {
|
|
"name": "schedules_json_paths",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"schedule_id": {
|
|
"name": "schedule_id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"payee": {
|
|
"name": "payee",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"account": {
|
|
"name": "account",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"amount": {
|
|
"name": "amount",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"date": {
|
|
"name": "date",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"schedules_json_paths_schedule_id_schedules_id_fk": {
|
|
"name": "schedules_json_paths_schedule_id_schedules_id_fk",
|
|
"tableFrom": "schedules_json_paths",
|
|
"tableTo": "schedules",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"schedule_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.schedules_next_date": {
|
|
"name": "schedules_next_date",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"schedule_id": {
|
|
"name": "schedule_id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"local_next_date": {
|
|
"name": "local_next_date",
|
|
"type": "date",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"local_next_date_ts": {
|
|
"name": "local_next_date_ts",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"base_next_date": {
|
|
"name": "base_next_date",
|
|
"type": "date",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"base_next_date_ts": {
|
|
"name": "base_next_date_ts",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"tombstone": {
|
|
"name": "tombstone",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {
|
|
"schedules_next_date_schedule_id_schedules_id_fk": {
|
|
"name": "schedules_next_date_schedule_id_schedules_id_fk",
|
|
"tableFrom": "schedules_next_date",
|
|
"tableTo": "schedules",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"schedule_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"schedules_next_date_scheduleId_unique": {
|
|
"name": "schedules_next_date_scheduleId_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"schedule_id"
|
|
]
|
|
}
|
|
},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.schedules": {
|
|
"name": "schedules",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"rule": {
|
|
"name": "rule",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"active": {
|
|
"name": "active",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"completed": {
|
|
"name": "completed",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"posts_transaction": {
|
|
"name": "posts_transaction",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"tombstone": {
|
|
"name": "tombstone",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"schedules_name_index": {
|
|
"name": "schedules_name_index",
|
|
"columns": [
|
|
{
|
|
"expression": "name",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"schedules\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"schedules_rule_index": {
|
|
"name": "schedules_rule_index",
|
|
"columns": [
|
|
{
|
|
"expression": "rule",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"schedules\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"schedules_completed_index": {
|
|
"name": "schedules_completed_index",
|
|
"columns": [
|
|
{
|
|
"expression": "completed",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"schedules\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"schedules_rule_rules_id_fk": {
|
|
"name": "schedules_rule_rules_id_fk",
|
|
"tableFrom": "schedules",
|
|
"tableTo": "rules",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"rule"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"actual.transactions": {
|
|
"name": "transactions",
|
|
"schema": "actual",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"is_parent": {
|
|
"name": "is_parent",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"is_child": {
|
|
"name": "is_child",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"acct": {
|
|
"name": "acct",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"category": {
|
|
"name": "category",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"amount": {
|
|
"name": "amount",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"notes": {
|
|
"name": "notes",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"date": {
|
|
"name": "date",
|
|
"type": "date",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"parent_id": {
|
|
"name": "parent_id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"financial_id": {
|
|
"name": "financial_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"error": {
|
|
"name": "error",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"imported_description": {
|
|
"name": "imported_description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"transferred_id": {
|
|
"name": "transferred_id",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"schedule": {
|
|
"name": "schedule",
|
|
"type": "varchar(36)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"sort_order": {
|
|
"name": "sort_order",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"starting_balance_flag": {
|
|
"name": "starting_balance_flag",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"tombstone": {
|
|
"name": "tombstone",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"cleared": {
|
|
"name": "cleared",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": true
|
|
},
|
|
"reconciled": {
|
|
"name": "reconciled",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"raw_synced_data": {
|
|
"name": "raw_synced_data",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"pending": {
|
|
"name": "pending",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"location": {
|
|
"name": "location",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"type": {
|
|
"name": "type",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"transactions_category_date_index": {
|
|
"name": "transactions_category_date_index",
|
|
"columns": [
|
|
{
|
|
"expression": "category",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "date",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"transactions\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"transactions_acct_index": {
|
|
"name": "transactions_acct_index",
|
|
"columns": [
|
|
{
|
|
"expression": "acct",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"transactions\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"transactions_parent_id_index": {
|
|
"name": "transactions_parent_id_index",
|
|
"columns": [
|
|
{
|
|
"expression": "parent_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"where": "\"actual\".\"transactions\".\"tombstone\" IS FALSE",
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"transactions_date_starting_balance_flag_sort_order_id_index": {
|
|
"name": "transactions_date_starting_balance_flag_sort_order_id_index",
|
|
"columns": [
|
|
{
|
|
"expression": "date",
|
|
"isExpression": false,
|
|
"asc": false,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "starting_balance_flag",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "sort_order",
|
|
"isExpression": false,
|
|
"asc": false,
|
|
"nulls": "last"
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"transactions_acct_accounts_id_fk": {
|
|
"name": "transactions_acct_accounts_id_fk",
|
|
"tableFrom": "transactions",
|
|
"tableTo": "accounts",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"acct"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"transactions_category_categories_id_fk": {
|
|
"name": "transactions_category_categories_id_fk",
|
|
"tableFrom": "transactions",
|
|
"tableTo": "categories",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"category"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"transactions_parent_id_transactions_id_fk": {
|
|
"name": "transactions_parent_id_transactions_id_fk",
|
|
"tableFrom": "transactions",
|
|
"tableTo": "transactions",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"parent_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"transactions_transferred_id_transactions_id_fk": {
|
|
"name": "transactions_transferred_id_transactions_id_fk",
|
|
"tableFrom": "transactions",
|
|
"tableTo": "transactions",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"transferred_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
},
|
|
"transactions_schedule_schedules_id_fk": {
|
|
"name": "transactions_schedule_schedules_id_fk",
|
|
"tableFrom": "transactions",
|
|
"tableTo": "schedules",
|
|
"schemaTo": "actual",
|
|
"columnsFrom": [
|
|
"schedule"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
}
|
|
},
|
|
"enums": {},
|
|
"schemas": {
|
|
"actual": "actual"
|
|
},
|
|
"sequences": {},
|
|
"roles": {},
|
|
"policies": {},
|
|
"views": {},
|
|
"_meta": {
|
|
"columns": {},
|
|
"schemas": {},
|
|
"tables": {}
|
|
}
|
|
} |