mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -05:00
269 lines
6.6 KiB
JSON
269 lines
6.6 KiB
JSON
{
|
|
"id": "dfd56490-a3a9-4c1a-9808-f915eaa4ab87",
|
|
"prevId": "8ce816bc-fae3-4a5d-9476-d6ae4698a825",
|
|
"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
|
|
}
|
|
},
|
|
"enums": {},
|
|
"schemas": {
|
|
"actual": "actual"
|
|
},
|
|
"sequences": {},
|
|
"roles": {},
|
|
"policies": {},
|
|
"views": {},
|
|
"_meta": {
|
|
"columns": {},
|
|
"schemas": {},
|
|
"tables": {}
|
|
}
|
|
} |