Files
weiguang-jewelry-ledger/新账系统/e2e/baseline/legacy.json
T

11198 lines
200 KiB
JSON
Raw Normal View History

{
"fixture": {
"sha256": "b58070aae22b8369b31029b7d9b255eb2160e77ac00c1876d026bbb35050c815",
"bytes": 897024
},
"startup": {
"teamBackupRequired": false,
"migrationChanged": false,
"backupFiles": 0
},
"before": {
"integrity": [
"ok"
],
"schema": {
"after_sale_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "after_sale_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "record_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "before_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "after_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "record_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_after_sale_change_pending",
"unique": 1,
"columns": [
"after_sale_id"
]
},
{
"name": "ix_after_sale_changes_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"after_sale_revisions": {
"columns": [
{
"name": "after_sale_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"after_sales": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "project",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "customer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_after_sales_date",
"unique": 0,
"columns": [
"date"
]
}
],
"withoutRowid": false
},
"audit": {
"columns": [
{
"name": "id",
"type": "INTEGER",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "entity",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "detail",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"closes": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "report",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "stale",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
}
],
"indexes": [],
"withoutRowid": false
},
"corrections": {
"columns": [
{
"name": "target",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "type",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"credit_card_rate_snapshots": {
"columns": [
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "entity_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "rate_permille",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"customer_material_deposits": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "memo",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"customer_material_events": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "deposit_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "recovery_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "delta_mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "memo",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_customer_material_events_deposit",
"unique": 0,
"columns": [
"deposit_id",
"recovery_id"
]
}
],
"withoutRowid": false
},
"customer_material_origins": {
"columns": [
{
"name": "recovery_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "deposit_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"daily_outlay_confirmations": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_revision",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"daily_people_counts": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "count",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "assistant1_count",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "assistant2_count",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "member_counts",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'{}'"
}
],
"indexes": [],
"withoutRowid": false
},
"document_print_status": {
"columns": [
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "printed",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"expenses": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"inventory_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "group_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "group_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "before_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "after_value",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "group_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "inventory_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_inventory_change_pending",
"unique": 1,
"columns": [
"group_id"
]
},
{
"name": "ix_inventory_changes_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"inventory_count_baselines": {
"columns": [
{
"name": "pocket",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "initial_count",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "movement_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"inventory_manual_groups": {
"columns": [
{
"name": "group_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "creator_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "creator_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "original_ids",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "current_ids",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"inventory_manual_rows": {
"columns": [
{
"name": "movement_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "group_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "generation",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_inventory_manual_rows_group",
"unique": 0,
"columns": [
"group_id"
]
}
],
"withoutRowid": false
},
"inventory_snapshots": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "inventory",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "stale",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "revision",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'manual'"
},
{
"name": "scheduled_for",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"journal": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "sales",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "goods",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "expense",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "profit",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_journal_date",
"unique": 0,
"columns": [
"date"
]
}
],
"withoutRowid": false
},
"material_pool_events": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "usage_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "before_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "after_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_pool_settlements": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_material_settlements_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"material_pool_usages": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "active",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "owner_amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "assistant_amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_material_usages_pool",
"unique": 0,
"columns": [
"pool_id",
"active"
]
}
],
"withoutRowid": false
},
"material_public_substitutions": {
"columns": [
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 1,
"pk": 3,
"dflt": null
},
{
"name": "ranges",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_purchase_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "purchase_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payload",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "preview",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_material_change_pending",
"unique": 1,
"columns": [
"purchase_id"
]
}
],
"withoutRowid": false
},
"material_purchase_payment_origins": {
"columns": [
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "payer_source",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_purchase_shares": {
"columns": [
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_purchases": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "deleted_at",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_material_purchases_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"material_return_sources": {
"columns": [
{
"name": "return_kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "return_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "sources",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_rolling_days": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "opening",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "frozen",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
}
],
"indexes": [],
"withoutRowid": false
},
"material_rolling_legacy": {
"columns": [
{
"name": "pool_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_rolling_returns": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "origin_pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "same_day",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_rolling_source_order": {
"columns": [
{
"name": "sequence",
"type": "INTEGER",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_usage_allocations": {
"columns": [
{
"name": "usage_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_usage_order": {
"columns": [
{
"name": "sequence",
"type": "INTEGER",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_usage_parties": {
"columns": [
{
"name": "usage_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "assistant2_amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_usage_sources": {
"columns": [
{
"name": "usage_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "sources",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"meta": {
"columns": [
{
"name": "key",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"movement_counts": {
"columns": [
{
"name": "movement_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "stock_count",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "effective_date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_movement_count_date",
"unique": 0,
"columns": [
"effective_date",
"movement_id"
]
}
],
"withoutRowid": false
},
"movements": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "group_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "pocket",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "purchase_cost",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_movements_date",
"unique": 0,
"columns": [
"date",
"pocket"
]
}
],
"withoutRowid": false
},
"operations": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "result",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"order_after_sales": {
"columns": [
{
"name": "order_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "record",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_order_after_sales_date",
"unique": 0,
"columns": [
"date",
"order_id"
]
}
],
"withoutRowid": false
},
"order_cancellations": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_order_cancellation_pending",
"unique": 1,
"columns": [
"order_id"
]
},
{
"name": "ix_order_cancellation_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"order_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'edit'"
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payload",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "preview",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "effect_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_order_change_pending",
"unique": 1,
"columns": [
"order_id"
]
},
{
"name": "ix_order_change_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"order_ownership_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "from_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "to_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "direct",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_order_ownership_pending",
"unique": 1,
"columns": [
"order_id"
]
},
{
"name": "ix_order_ownership_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"order_templates": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "preset",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"orders": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "customer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "salesperson",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "paper_number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "lines",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "discount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "total",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "reviewed_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "delivered_date",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "returned_date",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "paper_date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "payment_account",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'助理微信'"
},
{
"name": "fee_items",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'[]'"
},
{
"name": "fees_date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "rounding_mode",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'cent'"
},
{
"name": "internal_note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "fee_cost_mode",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'legacy'"
},
{
"name": "customer_type",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'unknown'"
}
],
"indexes": [],
"withoutRowid": false
},
"payments": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "account",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reference",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_payment_order",
"unique": 0,
"columns": [
"order_id"
]
}
],
"withoutRowid": false
},
"pocket_catalog": {
"columns": [
{
"name": "key",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "normalized_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "active",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "self",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "builtin",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "sort_order",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "count_unit",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "count_since",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"price_lock_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "price_lock_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "price_lock_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payload",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "preview",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "effect_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_price_lock_change_pending",
"unique": 1,
"columns": [
"price_lock_id"
]
},
{
"name": "ix_price_lock_change_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"price_lock_events": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "price_lock_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "account",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "source",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "quantity",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "rate",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "customer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "product",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "voided",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "void_reason",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "voided_at",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "card_fee_amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "card_fee_payer",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "card_fee_expense_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "card_fee_rate",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "card_fee_note",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_price_lock_events_date",
"unique": 0,
"columns": [
"date",
"created",
"id"
]
}
],
"withoutRowid": false
},
"price_lock_pool_reservations": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "price_lock_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'[]'"
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'{}'"
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"price_lock_pool_returns": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "price_lock_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "origin_pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "same_day",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"price_locks": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "customer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "salesperson",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "locked_mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "sell_rate",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "buy_rate",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "buy_payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "material_amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "estimated_total",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "discount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "final_order_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "delivery",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "cancelled_at",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "cancelled_reason",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "lines",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_price_locks_status",
"unique": 0,
"columns": [
"status",
"date"
]
}
],
"withoutRowid": false
},
"private_people": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "total_count",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "new_count",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"recoveries": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mode",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "customer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "salesperson",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "old_lines",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "data",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "inventory_group",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'active'"
},
{
"name": "cancelled_at",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_recoveries_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"recovery_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "recovery_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "recovery_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "before_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "after_value",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "summary",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "dependency",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_recovery_changes_pending",
"unique": 1,
"columns": [
"recovery_id"
]
}
],
"withoutRowid": false
},
"recovery_material_batches": {
"columns": [
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "recovery_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_recovery_material_member",
"unique": 0,
"columns": [
"member",
"purchase_id"
]
}
],
"withoutRowid": false
},
"recovery_purchase_sources": {
"columns": [
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "recovery_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "cash_amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "offset_amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"reimbursements": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "items",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "total",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "review_note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_reimbursements_date",
"unique": 0,
"columns": [
"date",
"created",
"id"
]
},
{
"name": "ix_reimbursements_status",
"unique": 0,
"columns": [
"status",
"created",
"id"
]
}
],
"withoutRowid": false
},
"returned_stock_lots": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "pocket",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "code",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "stock_count",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "labor_cost",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "labor_payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"sessions": {
"columns": [
{
"name": "hash",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "user_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "expires",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"settlements": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "bucket",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"sqlite_sequence": {
"columns": [
{
"name": "name",
"type": "",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "seq",
"type": "",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"sync": {
"columns": [
{
"name": "entity",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "done_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "record_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "attempts",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "error",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"team_entities": {
"columns": [
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "entity_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_team_entities_member",
"unique": 0,
"columns": [
"member",
"kind",
"entity_id"
]
}
],
"withoutRowid": false
},
"team_fund_cash": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "source_kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_team_cash_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"team_fund_claim_uses": {
"columns": [
{
"name": "reimbursement_id",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "item_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "source_kind",
"type": "TEXT",
"notnull": 1,
"pk": 3,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 4,
"dflt": null
},
{
"name": "component",
"type": "TEXT",
"notnull": 1,
"pk": 5,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"team_fund_entries": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "source_kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "project",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "from_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "to_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_team_entries_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"team_fund_sources": {
"columns": [
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "legacy",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"team_fund_transfers": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "from_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "to_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_team_transfers_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"team_members": {
"columns": [
{
"name": "member",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "label",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "enabled",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
}
],
"indexes": [],
"withoutRowid": false
},
"team_reimbursement_details": {
"columns": [
{
"name": "reimbursement_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"team_reimbursement_sources": {
"columns": [
{
"name": "source_key",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "reimbursement_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "item_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"team_user_members": {
"columns": [
{
"name": "user_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "password_set",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
}
],
"indexes": [],
"withoutRowid": false
},
"users": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "salt",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
}
},
"counts": {
"after_sale_changes": 0,
"after_sale_revisions": 0,
"after_sales": 0,
"audit": 10,
"closes": 0,
"corrections": 0,
"credit_card_rate_snapshots": 1,
"customer_material_deposits": 0,
"customer_material_events": 0,
"customer_material_origins": 0,
"daily_outlay_confirmations": 0,
"daily_people_counts": 0,
"document_print_status": 0,
"expenses": 0,
"inventory_changes": 0,
"inventory_count_baselines": 0,
"inventory_manual_groups": 0,
"inventory_manual_rows": 0,
"inventory_snapshots": 1,
"journal": 1,
"material_pool_events": 0,
"material_pool_settlements": 0,
"material_pool_usages": 0,
"material_public_substitutions": 0,
"material_purchase_changes": 0,
"material_purchase_payment_origins": 0,
"material_purchase_shares": 0,
"material_purchases": 0,
"material_return_sources": 0,
"material_rolling_days": 0,
"material_rolling_legacy": 0,
"material_rolling_returns": 0,
"material_rolling_source_order": 0,
"material_usage_allocations": 0,
"material_usage_order": 0,
"material_usage_parties": 0,
"material_usage_sources": 0,
"meta": 8,
"movement_counts": 0,
"movements": 3,
"operations": 3,
"order_after_sales": 0,
"order_cancellations": 0,
"order_changes": 0,
"order_ownership_changes": 0,
"order_templates": 0,
"orders": 1,
"payments": 1,
"pocket_catalog": 8,
"price_lock_changes": 0,
"price_lock_events": 0,
"price_lock_pool_reservations": 0,
"price_lock_pool_returns": 0,
"price_locks": 0,
"private_people": 0,
"recoveries": 0,
"recovery_changes": 0,
"recovery_material_batches": 0,
"recovery_purchase_sources": 0,
"reimbursements": 0,
"returned_stock_lots": 0,
"sessions": 1,
"settlements": 0,
"sqlite_sequence": 2,
"sync": 2,
"team_entities": 4,
"team_fund_cash": 2,
"team_fund_claim_uses": 0,
"team_fund_entries": 1,
"team_fund_sources": 1,
"team_fund_transfers": 0,
"team_members": 3,
"team_reimbursement_details": 0,
"team_reimbursement_sources": 0,
"team_user_members": 3,
"users": 3
},
"hashes": {
"after_sale_changes": "9e0859eb1d1149f47e6966612398551286679630065b9e4958b6ec497daeca5a",
"after_sale_revisions": "62dfaedc1c046b1b118bf21da6122ebc48f9a27f1d2b3e4aa0475b1dc0bb9882",
"after_sales": "c5805de9bb84ecc2c66b934ba740e99edc86850408d110f4e54b3ad1e9f793e7",
"audit": "3c6b58ee4b20fce115516902dc139dd1782c6f2f9934047f743115dc866d57bb",
"closes": "69e849e357b79c42693d1b6f602182e8dd486d3b177b00dcc6203aaa9501734b",
"corrections": "3229387e532d8b7033acf9249de535294103928824930848731376f255e79d88",
"credit_card_rate_snapshots": "fbcb6763481963de5eb4575a5f209f17497fb6965f102f015a4249b58bebf761",
"customer_material_deposits": "22125b7b0d89754c7f36567cca6e3e3e2f77de96806677b9b83610d6497a5cc4",
"customer_material_events": "4686b6bf092c2e781676496e927b6bc1042c2122f5adc8346fea95340bc81524",
"customer_material_origins": "873ac7930f118dacb4d5be95974cd14b260ad16547b48a50df44b557eb1a4e9c",
"daily_outlay_confirmations": "4f9242428914a3c597990fa445faac7cbf5f75384a6d61391eb5804d1dae8ad1",
"daily_people_counts": "a075409517745ff575955dee1aed916360bc047bcdac1d11e832ef03537d7090",
"document_print_status": "851e16b099a2e47a6632443e38de79ed0aa7e4089178fc18908a4f8487dee1c9",
"expenses": "148b144e7bb3ac64b8d57ffe30819d50a5f3f3e89583444e5f00aee2390bbd60",
"inventory_changes": "0889ef3ce9a83040807662975a1a292499ebb13226101833a0c7c53c70439b79",
"inventory_count_baselines": "f0d5e5341d23794199ce4f642a262b02b0e727ebb8e41f616fc8191589ec80c4",
"inventory_manual_groups": "c4f9d12d55e1f62a11c132ade23423a943356afcf555e8cc75d1ae6b485755ed",
"inventory_manual_rows": "7c948e27e2912f4d135e9a9f80c0866762555923ef15bcfec5c53e81fba2b7dd",
"inventory_snapshots": "f20ac86d3fa675dc8f06b33104259fd7a2699ee36acd48a2c764a8b853839085",
"journal": "3f23ee7f8ab8bdc51d5ce75ef3941af7c6fc92d4fea3a3456a47658cff045de9",
"material_pool_events": "249e2ab98e91e9a9abb249727c5bbffc09e1197c012f6551c2c51e2a15953111",
"material_pool_settlements": "ac8f3ddcb0885e4557854275b168e63b1337eb197ccb6e937a1d915bc4fcb0fe",
"material_pool_usages": "e1a9ab7ffdc74821048e460e8227d52c9a92d670047f9b75deb25a1658327821",
"material_public_substitutions": "2e2960b4dc3d3c4b98d3ebcabe1f295ded36e657aab444920dd02d5488ee7a92",
"material_purchase_changes": "7b53acc9505f9db03ecef308d78e532264cb407d91d426b447f19af9fca6c197",
"material_purchase_payment_origins": "d1e04707d00a7a2a426b3a9d5a640db45f059729427e6e8e37dd3847ab1d89ea",
"material_purchase_shares": "b4bd6ef6d2ccfdddb14c04317e44592ab8f2557227044ab87e01843e75fd1dfd",
"material_purchases": "f05e1f9bc86669b57b4ff4cf63608360c07870ae1b26e8f527c57147e21d73d7",
"material_return_sources": "2dcdccdc2342921cb6d770423e305ac647232c0ceaa3ed50a174c2fa42b1b9f1",
"material_rolling_days": "7ab190bec7d741619655f70dea6cee69c989be0180fecb9cd16e79e09d749f45",
"material_rolling_legacy": "4e96d616679f4c1df03e27d498b0fd7e677316b7c0e471096cf5c8c0ed3d5f21",
"material_rolling_returns": "0ad7f311fc794c53e67470fcc0f690ec200d730f6f922c38f007066fe2f50d4a",
"material_rolling_source_order": "ae411f0881d8cec5909c864f085afadc090f6d239a30e242735f39065b341b8d",
"material_usage_allocations": "661326a53b5b4e0f0b8a7a6ce215a71762ac98769c9f894ebc2ad5c04df5c631",
"material_usage_order": "ae411f0881d8cec5909c864f085afadc090f6d239a30e242735f39065b341b8d",
"material_usage_parties": "c7c0314e01fde0649b281efa8aeb45ed0ebbafdee2e807b126091910e73a2e3f",
"material_usage_sources": "5e96a21121759625c9e80171c187dce1cc4f1149a86aac10741fc35a1be02085",
"meta": "aa5a12441d7f81f6a1fd07253f0ceb1136dce038464ddc9d81927565414d8ff3",
"movement_counts": "df1ae0e8f2b534faef4584f680c4498a40e50b8d2f82c4110ecb5e66c96f2003",
"movements": "b6540f9c6e124ab8429dbb77eb209293b13995bd8326b509fd114d507a3dee8f",
"operations": "9616cf14410da881c620a907c5f827f2aa85c6c2402b62f89dc8d90dd6fe36de",
"order_after_sales": "f1c9ccaccc6c8f2840d62281cbb105bb3bd4bffa1cfe96138c524b2fad0a08da",
"order_cancellations": "bc74f59398eabdb6a47e36d02b78e07b045f95f0defbeedbf6b27847c3740d79",
"order_changes": "1721c1f3e83eb7c5f598129c3b89728dc660bbdfd748809e0e606ac72e41182e",
"order_ownership_changes": "91bd1bfc301f386ea4c69b70b553286a3c6da4e2b72ecf4bf24925d9362cc905",
"order_templates": "cbb11db645db849781b65a4e119872fb48038a833d370170bd6e30d25f20e263",
"orders": "bd9526d4a3311192141e133951f17cd384878c06eb1f2d98deb5494b2b35ffb2",
"payments": "aea390de9d0a4707f7f9df260fb816c3b70681048facfb964c2d1d57ea24775e",
"pocket_catalog": "c7e75e0f0549cc4c556205bb6bc13b01d9fd18bfae04d21bb1ec3e7c8fa0b5ef",
"price_lock_changes": "05f452de5ec06bac9c841a3bc943b6212c01366024d1208ad95cfc5869cf848b",
"price_lock_events": "1fa93ce06a15de30abd9c650c14af6adc1f1663d8b54815cd8d16507a5b36d26",
"price_lock_pool_reservations": "c1e524437b01d28d6a7297a3844ec6510cab72b01dde0fa568166ab9af1157d1",
"price_lock_pool_returns": "c53aadf69fa17057a4fbfce91ecd4849780f3789e1622ed817d9de45512a9090",
"price_locks": "edba2376ee72e63ae5500d7e4e83b8101c08c71395e3c907064c506867c9d765",
"private_people": "8e89b10ed1bcf8da2b252ddf85d59bf119845af65f8b5db230a6dff5dc9c97b2",
"recoveries": "13354293e4df501ed72b4a225a48df521ed06e55014926d031a96119e401acb1",
"recovery_changes": "b50c7f2bee293c8c5b60ab8f0b9cadbbfb02aa44d381a10c9c3880342634be00",
"recovery_material_batches": "de942097dc406c31b13c7b93954fa2421f7fedb203c2e0c1329c0d5897da1ec5",
"recovery_purchase_sources": "85c2f69cd78e77eafd57b98fc158a70b5ce62e35f17d2d2de017ea962d7ca722",
"reimbursements": "3a5559838c72d623c1f09184795b8941cc0e54b0430114ec5a6c0b48b0190370",
"returned_stock_lots": "3410d6e440f4f5babce2fccf93433542a0b77321b035031b82c1127b30549cb8",
"sessions": "c4b3b3493882a5d71d42b5ad32f00ebfd5c3cb6671f16c959ddd18ee79f9da74",
"settlements": "ed842d6122f09ddf1f6bb7628466e41bf899f868c7b0a6acfe2f68ce4d92fe29",
"sqlite_sequence": "a1e727bdd0e4b66ff50f0de76fc46a0583df44cce620006f0f467875f0142c6a",
"sync": "def085e408a1b362dc3ed40c45c7ca1e2d3e946cde335285bc1a194e700e54d1",
"team_entities": "8b105939acbce6f89958bf9e67e0f7860400ff42756d2d9ef40a53798a0168d6",
"team_fund_cash": "0d46673059aff93277f254ee4fefbdf9a964a86df90bc946b70bab8c5e036fcb",
"team_fund_claim_uses": "4a9d6cfe64f00a0d8198f2986d4dc4458b9d59154352e9acfc76e21a665016e0",
"team_fund_entries": "6d0700b411378c16276bb33866f0fb7b30030da2402059d11b4b25df44eaa60c",
"team_fund_sources": "e795cc58e402a345f4b6a823c954ff9871e8b592b037ab36dc573cabf6ff1649",
"team_fund_transfers": "bb16a872c757cc906806ede97af3b632d3dab8a4f4918670d8c714fa30dfe1b2",
"team_members": "384ce53e0e571c0a7b02f90c7261e1a94a79812370ad61b531650305b04b16ea",
"team_reimbursement_details": "f0514a000ce4d413735884913883c1051dffd76d5b35a79bd98448cd92ec9c34",
"team_reimbursement_sources": "6317eda06c7c8db2ebaaa5c28de5ec9e84d8e7c90705b9a3f25807494259d907",
"team_user_members": "5fe19cc1113cc73aaf0c943327a76d54f7713febcf6cdd221b7b1827b2dc9c89",
"users": "e8a064a2a2a822dc9884832b2c0eadca2d27b9faab7dd7fc73f053df8bfd3f5d"
}
},
"after": {
"integrity": [
"ok"
],
"schema": {
"after_sale_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "after_sale_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "record_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "before_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "after_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "record_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_after_sale_change_pending",
"unique": 1,
"columns": [
"after_sale_id"
]
},
{
"name": "ix_after_sale_changes_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"after_sale_revisions": {
"columns": [
{
"name": "after_sale_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"after_sales": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "project",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "customer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_after_sales_date",
"unique": 0,
"columns": [
"date"
]
}
],
"withoutRowid": false
},
"audit": {
"columns": [
{
"name": "id",
"type": "INTEGER",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "entity",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "detail",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"closes": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "report",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "stale",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
}
],
"indexes": [],
"withoutRowid": false
},
"corrections": {
"columns": [
{
"name": "target",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "type",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"credit_card_rate_snapshots": {
"columns": [
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "entity_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "rate_permille",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"customer_material_deposits": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "memo",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"customer_material_events": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "deposit_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "recovery_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "delta_mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "memo",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_customer_material_events_deposit",
"unique": 0,
"columns": [
"deposit_id",
"recovery_id"
]
}
],
"withoutRowid": false
},
"customer_material_origins": {
"columns": [
{
"name": "recovery_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "deposit_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"daily_outlay_confirmations": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_revision",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"daily_people_counts": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "count",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "assistant1_count",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "assistant2_count",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "member_counts",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'{}'"
}
],
"indexes": [],
"withoutRowid": false
},
"document_print_status": {
"columns": [
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "printed",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"expenses": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"inventory_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "group_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "group_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "before_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "after_value",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "group_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "inventory_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_inventory_change_pending",
"unique": 1,
"columns": [
"group_id"
]
},
{
"name": "ix_inventory_changes_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"inventory_count_baselines": {
"columns": [
{
"name": "pocket",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "initial_count",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "movement_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"inventory_manual_groups": {
"columns": [
{
"name": "group_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "creator_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "creator_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "original_ids",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "current_ids",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"inventory_manual_rows": {
"columns": [
{
"name": "movement_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "group_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "generation",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_inventory_manual_rows_group",
"unique": 0,
"columns": [
"group_id"
]
}
],
"withoutRowid": false
},
"inventory_snapshots": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "inventory",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "stale",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "revision",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'manual'"
},
{
"name": "scheduled_for",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"journal": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "sales",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "goods",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "expense",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "profit",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_journal_date",
"unique": 0,
"columns": [
"date"
]
}
],
"withoutRowid": false
},
"material_pool_events": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "usage_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "before_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "after_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_pool_settlements": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_material_settlements_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"material_pool_usages": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "active",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "owner_amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "assistant_amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_material_usages_pool",
"unique": 0,
"columns": [
"pool_id",
"active"
]
}
],
"withoutRowid": false
},
"material_public_substitutions": {
"columns": [
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 1,
"pk": 3,
"dflt": null
},
{
"name": "ranges",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_purchase_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "purchase_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payload",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "preview",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_material_change_pending",
"unique": 1,
"columns": [
"purchase_id"
]
}
],
"withoutRowid": false
},
"material_purchase_payment_origins": {
"columns": [
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "payer_source",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_purchase_shares": {
"columns": [
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_purchases": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "deleted_at",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_material_purchases_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"material_return_sources": {
"columns": [
{
"name": "return_kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "return_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "sources",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_rolling_days": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "opening",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "frozen",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
}
],
"indexes": [],
"withoutRowid": false
},
"material_rolling_legacy": {
"columns": [
{
"name": "pool_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_rolling_returns": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "origin_pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "same_day",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_rolling_source_order": {
"columns": [
{
"name": "sequence",
"type": "INTEGER",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_usage_allocations": {
"columns": [
{
"name": "usage_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_usage_order": {
"columns": [
{
"name": "sequence",
"type": "INTEGER",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_usage_parties": {
"columns": [
{
"name": "usage_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "assistant2_amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"material_usage_sources": {
"columns": [
{
"name": "usage_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "sources",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"meta": {
"columns": [
{
"name": "key",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"movement_counts": {
"columns": [
{
"name": "movement_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "stock_count",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "effective_date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_movement_count_date",
"unique": 0,
"columns": [
"effective_date",
"movement_id"
]
}
],
"withoutRowid": false
},
"movements": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "group_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "pocket",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "purchase_cost",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_movements_date",
"unique": 0,
"columns": [
"date",
"pocket"
]
}
],
"withoutRowid": false
},
"operations": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "result",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"order_after_sales": {
"columns": [
{
"name": "order_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "record",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_order_after_sales_date",
"unique": 0,
"columns": [
"date",
"order_id"
]
}
],
"withoutRowid": false
},
"order_cancellations": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_order_cancellation_pending",
"unique": 1,
"columns": [
"order_id"
]
},
{
"name": "ix_order_cancellation_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"order_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'edit'"
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payload",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "preview",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "effect_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_order_change_pending",
"unique": 1,
"columns": [
"order_id"
]
},
{
"name": "ix_order_change_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"order_ownership_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "from_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "to_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "direct",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_order_ownership_pending",
"unique": 1,
"columns": [
"order_id"
]
},
{
"name": "ix_order_ownership_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"order_templates": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "preset",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"orders": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "customer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "salesperson",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "paper_number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "lines",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "discount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "total",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "reviewed_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "delivered_date",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "returned_date",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "paper_date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "payment_account",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'助理微信'"
},
{
"name": "fee_items",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'[]'"
},
{
"name": "fees_date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "rounding_mode",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'cent'"
},
{
"name": "internal_note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "fee_cost_mode",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'legacy'"
},
{
"name": "customer_type",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'unknown'"
}
],
"indexes": [],
"withoutRowid": false
},
"payments": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "account",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reference",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_payment_order",
"unique": 0,
"columns": [
"order_id"
]
}
],
"withoutRowid": false
},
"pocket_catalog": {
"columns": [
{
"name": "key",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "normalized_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "active",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "self",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "builtin",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "sort_order",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "count_unit",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "count_since",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"price_lock_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "price_lock_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "price_lock_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "payload",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "preview",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "effect_hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_price_lock_change_pending",
"unique": 1,
"columns": [
"price_lock_id"
]
},
{
"name": "ix_price_lock_change_status",
"unique": 0,
"columns": [
"status",
"created"
]
}
],
"withoutRowid": false
},
"price_lock_events": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "price_lock_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "account",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "source",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "quantity",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "rate",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "customer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "product",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "voided",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "void_reason",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "voided_at",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "card_fee_amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "card_fee_payer",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "card_fee_expense_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "card_fee_rate",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "card_fee_note",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_price_lock_events_date",
"unique": 0,
"columns": [
"date",
"created",
"id"
]
}
],
"withoutRowid": false
},
"price_lock_pool_reservations": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "price_lock_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'[]'"
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'{}'"
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"price_lock_pool_returns": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "price_lock_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "origin_pool_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "same_day",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"price_locks": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "customer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "salesperson",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "locked_mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "sell_rate",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "buy_rate",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "buy_payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "material_amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "estimated_total",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "discount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "final_order_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "delivery",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "cancelled_at",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "cancelled_reason",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "lines",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_price_locks_status",
"unique": 0,
"columns": [
"status",
"date"
]
}
],
"withoutRowid": false
},
"private_people": {
"columns": [
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "total_count",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "new_count",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"recoveries": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "number",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mode",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "customer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "salesperson",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "old_lines",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "data",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "inventory_group",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "'active'"
},
{
"name": "cancelled_at",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_recoveries_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"recovery_changes": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "recovery_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "recovery_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
},
{
"name": "action",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reason",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "before_value",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "after_value",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "summary",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "dependency",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
}
],
"indexes": [
{
"name": "ix_recovery_changes_pending",
"unique": 1,
"columns": [
"recovery_id"
]
}
],
"withoutRowid": false
},
"recovery_material_batches": {
"columns": [
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "recovery_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_recovery_material_member",
"unique": 0,
"columns": [
"member",
"purchase_id"
]
}
],
"withoutRowid": false
},
"recovery_purchase_sources": {
"columns": [
{
"name": "purchase_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "recovery_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "cash_amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "offset_amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "allocations",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"reimbursements": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "items",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "total",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "status",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "requester_name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewer_name",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "reviewed",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "review_note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": "''"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_reimbursements_date",
"unique": 0,
"columns": [
"date",
"created",
"id"
]
},
{
"name": "ix_reimbursements_status",
"unique": 0,
"columns": [
"status",
"created",
"id"
]
}
],
"withoutRowid": false
},
"returned_stock_lots": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "line_index",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "pocket",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "code",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "mg",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "stock_count",
"type": "INTEGER",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "labor_cost",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "labor_payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"sessions": {
"columns": [
{
"name": "hash",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "user_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "expires",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"settlements": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "order_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "bucket",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"sqlite_sequence": {
"columns": [
{
"name": "name",
"type": "",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "seq",
"type": "",
"notnull": 0,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"sync": {
"columns": [
{
"name": "entity",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "done_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "record_id",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "attempts",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "error",
"type": "TEXT",
"notnull": 0,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"team_entities": {
"columns": [
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "entity_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_team_entities_member",
"unique": 0,
"columns": [
"member",
"kind",
"entity_id"
]
}
],
"withoutRowid": false
},
"team_fund_cash": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "source_kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_team_cash_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"team_fund_claim_uses": {
"columns": [
{
"name": "reimbursement_id",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "item_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "source_kind",
"type": "TEXT",
"notnull": 1,
"pk": 3,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 4,
"dflt": null
},
{
"name": "component",
"type": "TEXT",
"notnull": 1,
"pk": 5,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"team_fund_entries": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "source_kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "source_revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "project",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "from_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "to_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_team_entries_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"team_fund_sources": {
"columns": [
{
"name": "kind",
"type": "TEXT",
"notnull": 1,
"pk": 1,
"dflt": null
},
{
"name": "source_id",
"type": "TEXT",
"notnull": 1,
"pk": 2,
"dflt": null
},
{
"name": "snapshot",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "revision",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "legacy",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "0"
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "updated",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"team_fund_transfers": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "date",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "from_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "to_member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "amount",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "note",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "actor",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "created",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [
{
"name": "ix_team_transfers_date",
"unique": 0,
"columns": [
"date",
"created"
]
}
],
"withoutRowid": false
},
"team_members": {
"columns": [
{
"name": "member",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "label",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "enabled",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
}
],
"indexes": [],
"withoutRowid": false
},
"team_reimbursement_details": {
"columns": [
{
"name": "reimbursement_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "payer",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"team_reimbursement_sources": {
"columns": [
{
"name": "source_key",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "reimbursement_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "item_id",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
},
"team_user_members": {
"columns": [
{
"name": "user_id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "member",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "password_set",
"type": "INTEGER",
"notnull": 1,
"pk": 0,
"dflt": "1"
}
],
"indexes": [],
"withoutRowid": false
},
"users": {
"columns": [
{
"name": "id",
"type": "TEXT",
"notnull": 0,
"pk": 1,
"dflt": null
},
{
"name": "name",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "role",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "salt",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
},
{
"name": "hash",
"type": "TEXT",
"notnull": 1,
"pk": 0,
"dflt": null
}
],
"indexes": [],
"withoutRowid": false
}
},
"counts": {
"after_sale_changes": 0,
"after_sale_revisions": 0,
"after_sales": 0,
"audit": 10,
"closes": 0,
"corrections": 0,
"credit_card_rate_snapshots": 1,
"customer_material_deposits": 0,
"customer_material_events": 0,
"customer_material_origins": 0,
"daily_outlay_confirmations": 0,
"daily_people_counts": 0,
"document_print_status": 0,
"expenses": 0,
"inventory_changes": 0,
"inventory_count_baselines": 0,
"inventory_manual_groups": 0,
"inventory_manual_rows": 0,
"inventory_snapshots": 1,
"journal": 1,
"material_pool_events": 0,
"material_pool_settlements": 0,
"material_pool_usages": 0,
"material_public_substitutions": 0,
"material_purchase_changes": 0,
"material_purchase_payment_origins": 0,
"material_purchase_shares": 0,
"material_purchases": 0,
"material_return_sources": 0,
"material_rolling_days": 0,
"material_rolling_legacy": 0,
"material_rolling_returns": 0,
"material_rolling_source_order": 0,
"material_usage_allocations": 0,
"material_usage_order": 0,
"material_usage_parties": 0,
"material_usage_sources": 0,
"meta": 8,
"movement_counts": 0,
"movements": 3,
"operations": 3,
"order_after_sales": 0,
"order_cancellations": 0,
"order_changes": 0,
"order_ownership_changes": 0,
"order_templates": 0,
"orders": 1,
"payments": 1,
"pocket_catalog": 8,
"price_lock_changes": 0,
"price_lock_events": 0,
"price_lock_pool_reservations": 0,
"price_lock_pool_returns": 0,
"price_locks": 0,
"private_people": 0,
"recoveries": 0,
"recovery_changes": 0,
"recovery_material_batches": 0,
"recovery_purchase_sources": 0,
"reimbursements": 0,
"returned_stock_lots": 0,
"sessions": 3,
"settlements": 0,
"sqlite_sequence": 2,
"sync": 2,
"team_entities": 4,
"team_fund_cash": 2,
"team_fund_claim_uses": 0,
"team_fund_entries": 1,
"team_fund_sources": 1,
"team_fund_transfers": 0,
"team_members": 3,
"team_reimbursement_details": 0,
"team_reimbursement_sources": 0,
"team_user_members": 3,
"users": 3
},
"originalColumnHashes": {
"after_sale_changes": "9e0859eb1d1149f47e6966612398551286679630065b9e4958b6ec497daeca5a",
"after_sale_revisions": "62dfaedc1c046b1b118bf21da6122ebc48f9a27f1d2b3e4aa0475b1dc0bb9882",
"after_sales": "c5805de9bb84ecc2c66b934ba740e99edc86850408d110f4e54b3ad1e9f793e7",
"audit": "3c6b58ee4b20fce115516902dc139dd1782c6f2f9934047f743115dc866d57bb",
"closes": "69e849e357b79c42693d1b6f602182e8dd486d3b177b00dcc6203aaa9501734b",
"corrections": "3229387e532d8b7033acf9249de535294103928824930848731376f255e79d88",
"credit_card_rate_snapshots": "fbcb6763481963de5eb4575a5f209f17497fb6965f102f015a4249b58bebf761",
"customer_material_deposits": "22125b7b0d89754c7f36567cca6e3e3e2f77de96806677b9b83610d6497a5cc4",
"customer_material_events": "4686b6bf092c2e781676496e927b6bc1042c2122f5adc8346fea95340bc81524",
"customer_material_origins": "873ac7930f118dacb4d5be95974cd14b260ad16547b48a50df44b557eb1a4e9c",
"daily_outlay_confirmations": "4f9242428914a3c597990fa445faac7cbf5f75384a6d61391eb5804d1dae8ad1",
"daily_people_counts": "a075409517745ff575955dee1aed916360bc047bcdac1d11e832ef03537d7090",
"document_print_status": "851e16b099a2e47a6632443e38de79ed0aa7e4089178fc18908a4f8487dee1c9",
"expenses": "148b144e7bb3ac64b8d57ffe30819d50a5f3f3e89583444e5f00aee2390bbd60",
"inventory_changes": "0889ef3ce9a83040807662975a1a292499ebb13226101833a0c7c53c70439b79",
"inventory_count_baselines": "f0d5e5341d23794199ce4f642a262b02b0e727ebb8e41f616fc8191589ec80c4",
"inventory_manual_groups": "c4f9d12d55e1f62a11c132ade23423a943356afcf555e8cc75d1ae6b485755ed",
"inventory_manual_rows": "7c948e27e2912f4d135e9a9f80c0866762555923ef15bcfec5c53e81fba2b7dd",
"inventory_snapshots": "f20ac86d3fa675dc8f06b33104259fd7a2699ee36acd48a2c764a8b853839085",
"journal": "3f23ee7f8ab8bdc51d5ce75ef3941af7c6fc92d4fea3a3456a47658cff045de9",
"material_pool_events": "249e2ab98e91e9a9abb249727c5bbffc09e1197c012f6551c2c51e2a15953111",
"material_pool_settlements": "ac8f3ddcb0885e4557854275b168e63b1337eb197ccb6e937a1d915bc4fcb0fe",
"material_pool_usages": "e1a9ab7ffdc74821048e460e8227d52c9a92d670047f9b75deb25a1658327821",
"material_public_substitutions": "2e2960b4dc3d3c4b98d3ebcabe1f295ded36e657aab444920dd02d5488ee7a92",
"material_purchase_changes": "7b53acc9505f9db03ecef308d78e532264cb407d91d426b447f19af9fca6c197",
"material_purchase_payment_origins": "d1e04707d00a7a2a426b3a9d5a640db45f059729427e6e8e37dd3847ab1d89ea",
"material_purchase_shares": "b4bd6ef6d2ccfdddb14c04317e44592ab8f2557227044ab87e01843e75fd1dfd",
"material_purchases": "f05e1f9bc86669b57b4ff4cf63608360c07870ae1b26e8f527c57147e21d73d7",
"material_return_sources": "2dcdccdc2342921cb6d770423e305ac647232c0ceaa3ed50a174c2fa42b1b9f1",
"material_rolling_days": "7ab190bec7d741619655f70dea6cee69c989be0180fecb9cd16e79e09d749f45",
"material_rolling_legacy": "4e96d616679f4c1df03e27d498b0fd7e677316b7c0e471096cf5c8c0ed3d5f21",
"material_rolling_returns": "0ad7f311fc794c53e67470fcc0f690ec200d730f6f922c38f007066fe2f50d4a",
"material_rolling_source_order": "ae411f0881d8cec5909c864f085afadc090f6d239a30e242735f39065b341b8d",
"material_usage_allocations": "661326a53b5b4e0f0b8a7a6ce215a71762ac98769c9f894ebc2ad5c04df5c631",
"material_usage_order": "ae411f0881d8cec5909c864f085afadc090f6d239a30e242735f39065b341b8d",
"material_usage_parties": "c7c0314e01fde0649b281efa8aeb45ed0ebbafdee2e807b126091910e73a2e3f",
"material_usage_sources": "5e96a21121759625c9e80171c187dce1cc4f1149a86aac10741fc35a1be02085",
"meta": "aa5a12441d7f81f6a1fd07253f0ceb1136dce038464ddc9d81927565414d8ff3",
"movement_counts": "df1ae0e8f2b534faef4584f680c4498a40e50b8d2f82c4110ecb5e66c96f2003",
"movements": "b6540f9c6e124ab8429dbb77eb209293b13995bd8326b509fd114d507a3dee8f",
"operations": "9616cf14410da881c620a907c5f827f2aa85c6c2402b62f89dc8d90dd6fe36de",
"order_after_sales": "f1c9ccaccc6c8f2840d62281cbb105bb3bd4bffa1cfe96138c524b2fad0a08da",
"order_cancellations": "bc74f59398eabdb6a47e36d02b78e07b045f95f0defbeedbf6b27847c3740d79",
"order_changes": "1721c1f3e83eb7c5f598129c3b89728dc660bbdfd748809e0e606ac72e41182e",
"order_ownership_changes": "91bd1bfc301f386ea4c69b70b553286a3c6da4e2b72ecf4bf24925d9362cc905",
"order_templates": "cbb11db645db849781b65a4e119872fb48038a833d370170bd6e30d25f20e263",
"orders": "bd9526d4a3311192141e133951f17cd384878c06eb1f2d98deb5494b2b35ffb2",
"payments": "aea390de9d0a4707f7f9df260fb816c3b70681048facfb964c2d1d57ea24775e",
"pocket_catalog": "c7e75e0f0549cc4c556205bb6bc13b01d9fd18bfae04d21bb1ec3e7c8fa0b5ef",
"price_lock_changes": "05f452de5ec06bac9c841a3bc943b6212c01366024d1208ad95cfc5869cf848b",
"price_lock_events": "1fa93ce06a15de30abd9c650c14af6adc1f1663d8b54815cd8d16507a5b36d26",
"price_lock_pool_reservations": "c1e524437b01d28d6a7297a3844ec6510cab72b01dde0fa568166ab9af1157d1",
"price_lock_pool_returns": "c53aadf69fa17057a4fbfce91ecd4849780f3789e1622ed817d9de45512a9090",
"price_locks": "edba2376ee72e63ae5500d7e4e83b8101c08c71395e3c907064c506867c9d765",
"private_people": "8e89b10ed1bcf8da2b252ddf85d59bf119845af65f8b5db230a6dff5dc9c97b2",
"recoveries": "13354293e4df501ed72b4a225a48df521ed06e55014926d031a96119e401acb1",
"recovery_changes": "b50c7f2bee293c8c5b60ab8f0b9cadbbfb02aa44d381a10c9c3880342634be00",
"recovery_material_batches": "de942097dc406c31b13c7b93954fa2421f7fedb203c2e0c1329c0d5897da1ec5",
"recovery_purchase_sources": "85c2f69cd78e77eafd57b98fc158a70b5ce62e35f17d2d2de017ea962d7ca722",
"reimbursements": "3a5559838c72d623c1f09184795b8941cc0e54b0430114ec5a6c0b48b0190370",
"returned_stock_lots": "3410d6e440f4f5babce2fccf93433542a0b77321b035031b82c1127b30549cb8",
"sessions": "62683a2b4f938679f4011be15bcb4ca074e51013988b0f42e27c01a59a57b775",
"settlements": "ed842d6122f09ddf1f6bb7628466e41bf899f868c7b0a6acfe2f68ce4d92fe29",
"sqlite_sequence": "a1e727bdd0e4b66ff50f0de76fc46a0583df44cce620006f0f467875f0142c6a",
"sync": "def085e408a1b362dc3ed40c45c7ca1e2d3e946cde335285bc1a194e700e54d1",
"team_entities": "8b105939acbce6f89958bf9e67e0f7860400ff42756d2d9ef40a53798a0168d6",
"team_fund_cash": "0d46673059aff93277f254ee4fefbdf9a964a86df90bc946b70bab8c5e036fcb",
"team_fund_claim_uses": "4a9d6cfe64f00a0d8198f2986d4dc4458b9d59154352e9acfc76e21a665016e0",
"team_fund_entries": "6d0700b411378c16276bb33866f0fb7b30030da2402059d11b4b25df44eaa60c",
"team_fund_sources": "e795cc58e402a345f4b6a823c954ff9871e8b592b037ab36dc573cabf6ff1649",
"team_fund_transfers": "bb16a872c757cc906806ede97af3b632d3dab8a4f4918670d8c714fa30dfe1b2",
"team_members": "384ce53e0e571c0a7b02f90c7261e1a94a79812370ad61b531650305b04b16ea",
"team_reimbursement_details": "f0514a000ce4d413735884913883c1051dffd76d5b35a79bd98448cd92ec9c34",
"team_reimbursement_sources": "6317eda06c7c8db2ebaaa5c28de5ec9e84d8e7c90705b9a3f25807494259d907",
"team_user_members": "5fe19cc1113cc73aaf0c943327a76d54f7713febcf6cdd221b7b1827b2dc9c89",
"users": "e8a064a2a2a822dc9884832b2c0eadca2d27b9faab7dd7fc73f053df8bfd3f5d"
}
},
"unchangedOriginalTables": 75,
"changedOriginalTables": [
"sessions"
],
"responses": {
"owner": {
"login": 200,
"/api/session": {
"status": 200,
"hash": "286b2467dd2a7ae91f8c6f4d153c42cd16f0340b73944dfde5182db5cf20b0a8",
"keys": 6
},
"/api/state": {
"status": 200,
"hash": "af90971878daa849bc14a0336ca35c34cc55f2aa4fc337464031ed0149494ec1",
"keys": 18
},
"/api/order-book?from=2000-01-01&date=2026-12-05": {
"status": 200,
"hash": "8c736679c6443da895580f58c676ee0047bf9fa0847398ed45b090d8d2248f7b",
"keys": 17
},
"/api/report?from=2000-01-01&date=2026-12-05&basis=orderDate": {
"status": 200,
"hash": "8e02cb0328f8ec8bf4bfdaed2a8a4a552122f28fab7b23559c5721f7e4c93c8b",
"keys": 45
},
"/api/report?date=2026-12-05": {
"status": 200,
"hash": "c0f6002ed4ae53fb4890ac0fae8809c8cc2dbfdd08a3acfe234ab3536ca75dd7",
"keys": 27
},
"/api/inventory": {
"status": 200,
"hash": "99abb122d9f6e28d432afbe7626bf3547456086a03811fe9bf90a64cfafc812a",
"keys": 10
},
"/api/inventory/movements": {
"status": 200,
"hash": "0a686cf41fb340c7c994e23dedae8e4e05d46149bb3f1331cc4bd410d33e822d",
"keys": 15
},
"/api/inventory/snapshots": {
"status": 200,
"hash": "7e22dbecd3556bcdbae2bc676a5612fa6dbc3130729a0d5ad2fb16280bc4890d",
"keys": 3
},
"/api/material-pools": {
"status": 200,
"hash": "482a83cca8d33ea531f932ab9e45ff724057197e26424eb1e37d7ce845bd10fc",
"keys": 6
},
"/api/price-locks?status=all": {
"status": 200,
"hash": "2132da810e0971d4f4851a6524618a4dd63d4c24095a4aebc4804c42a6b9ad11",
"keys": 4
},
"/api/recoveries": {
"status": 200,
"hash": "7a24f4e8730ac1dc6460cb31c2a5f0218d1d1616b5b78f4e1af12b2002fd50dc",
"keys": 4
},
"/api/customer-materials": {
"status": 200,
"hash": "91aaa670073cf1251a8fb7d1c1c665a18a6f18d1174db04356043aca1a7c7d25",
"keys": 4
},
"/api/team-funds?date=2026-12-05": {
"status": 200,
"hash": "65c907656d9816493a5d213a6acfcf112e23fd5964ff3d430f3191f39f641fbe",
"keys": 13
},
"/api/team-profits": {
"status": 200,
"hash": "c21f459b103413043378d5ff8a96ecedd97f4d824486e64cfd9500331c76c55e",
"keys": 5
},
"/api/daily-funds?date=2026-12-05": {
"status": 200,
"hash": "82ce49f8ccbdb8649c70a40af72f824da8a5df5057f87f2734f87fc5744e5952",
"keys": 19
},
"/api/shop-settings": {
"status": 200,
"hash": "85cc10305b5f132734b1912d9be1f572fc0bd175f4d1e8d267148f7411237651",
"keys": 12
},
"/api/pockets": {
"status": 200,
"hash": "5e231d7369ee4b1c072ea765553dbdd79c48852dba11abec9d09d9493d786b5f",
"keys": 3
},
"/api/order-templates": {
"status": 200,
"hash": "1633902c6cbba5e7770dbed172df754a25078bb76efe1f23474edc87f1a47655",
"keys": 1
},
"/api/reimbursements": {
"status": 200,
"hash": "f3a5a73b94d6cd41e303f21fc9ec8fe22bacec9cd72433894a1afdd35472bc96",
"keys": 6
},
"/api/order-changes?status=all": {
"status": 200,
"hash": "f0a5ba1b6a67f4f5f1e1e4dbc59aa7fa0c3393fd815c3a2a62d70c2963ed11e7",
"keys": 3
},
"/api/order-cancellations?status=all": {
"status": 200,
"hash": "f0a5ba1b6a67f4f5f1e1e4dbc59aa7fa0c3393fd815c3a2a62d70c2963ed11e7",
"keys": 3
},
"/api/inventory/changes?status=all": {
"status": 200,
"hash": "624494c30b9280aff52bd0bcc2daac76e8445ec6b2c17415f50496e4d63298d1",
"keys": 2
},
"/api/employees": {
"status": 200,
"hash": "df086cbe0cd22a0e5d674546e8ad67d5e4fc7784b0847016bc0202089b606b55",
"keys": 2
},
"/api/people-count-history": {
"status": 200,
"hash": "ee416897038f8d4ed59d9d4590abe528a36b403ea1e1bb770863eab357e1ec55",
"keys": 7
}
},
"assistant": {
"login": 200,
"/api/session": {
"status": 200,
"hash": "0b62c9a0f5785a107ab3d2508e90a7c164dfb4321e1703c81ffe102bc3682015",
"keys": 6
},
"/api/state": {
"status": 200,
"hash": "8399e4f97ca6edfad2d44059b57f122304d1527247dfe6864d4ace50f231c7ed",
"keys": 18
},
"/api/order-book?from=2000-01-01&date=2026-12-05": {
"status": 200,
"hash": "805c719c8ee6252b171bffdf2a4ac952fd583f9ea40aafa598093c5893dde9ab",
"keys": 17
},
"/api/report?from=2000-01-01&date=2026-12-05&basis=orderDate": {
"status": 200,
"hash": "04384a50918e44a93f407eb03faabe4c357ead98ff5c969d7845abc169152d5f",
"keys": 45
},
"/api/report?date=2026-12-05": {
"status": 200,
"hash": "7b5f5efa30d8c31dec7d08bb52b22d866bdf71883a10544d3454db0b2d030b0e",
"keys": 28
},
"/api/inventory": {
"status": 200,
"hash": "eab32ac50072ace9d9310d65674d25ce1ec791c3a5da115f11a862e32c358e73",
"keys": 10
},
"/api/inventory/movements": {
"status": 200,
"hash": "277a26fe017b6adeba92827be380973370c0da2c8b1f827faa4980bd721a4e45",
"keys": 15
},
"/api/inventory/snapshots": {
"status": 200,
"hash": "7e22dbecd3556bcdbae2bc676a5612fa6dbc3130729a0d5ad2fb16280bc4890d",
"keys": 3
},
"/api/material-pools": {
"status": 200,
"hash": "065c85cc6c7c851721a3dd5f6fd15a032f2161ab7678b5a66a840f698310da18",
"keys": 6
},
"/api/price-locks?status=all": {
"status": 200,
"hash": "2132da810e0971d4f4851a6524618a4dd63d4c24095a4aebc4804c42a6b9ad11",
"keys": 4
},
"/api/recoveries": {
"status": 200,
"hash": "7a24f4e8730ac1dc6460cb31c2a5f0218d1d1616b5b78f4e1af12b2002fd50dc",
"keys": 4
},
"/api/customer-materials": {
"status": 200,
"hash": "91aaa670073cf1251a8fb7d1c1c665a18a6f18d1174db04356043aca1a7c7d25",
"keys": 4
},
"/api/team-funds?date=2026-12-05": {
"status": 403,
"hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b",
"keys": 1
},
"/api/team-profits": {
"status": 403,
"hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b",
"keys": 1
},
"/api/daily-funds?date=2026-12-05": {
"status": 200,
"hash": "155bbbc7722a8ed2524a0c1fd5de9855c36c600b5177badd15ac95671b65c951",
"keys": 19
},
"/api/shop-settings": {
"status": 200,
"hash": "6515a3a11432563ccb559ca233e42984fbd9813a3f0d5c83018fc23df2b16595",
"keys": 9
},
"/api/pockets": {
"status": 200,
"hash": "4141fbf6585e13250222265b5eaebb2fcbcfe4ebe0ab79a786e9d4aa7d1c0315",
"keys": 3
},
"/api/order-templates": {
"status": 200,
"hash": "1633902c6cbba5e7770dbed172df754a25078bb76efe1f23474edc87f1a47655",
"keys": 1
},
"/api/reimbursements": {
"status": 200,
"hash": "f3a5a73b94d6cd41e303f21fc9ec8fe22bacec9cd72433894a1afdd35472bc96",
"keys": 6
},
"/api/order-changes?status=all": {
"status": 200,
"hash": "946c74a0450316999153de7ffd9ec039f6d14b21874dd3916f08073d6910a294",
"keys": 3
},
"/api/order-cancellations?status=all": {
"status": 200,
"hash": "946c74a0450316999153de7ffd9ec039f6d14b21874dd3916f08073d6910a294",
"keys": 3
},
"/api/inventory/changes?status=all": {
"status": 200,
"hash": "624494c30b9280aff52bd0bcc2daac76e8445ec6b2c17415f50496e4d63298d1",
"keys": 2
},
"/api/employees": {
"status": 403,
"hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b",
"keys": 1
},
"/api/people-count-history": {
"status": 403,
"hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b",
"keys": 1
}
},
"assistant2": {
"login": 200,
"/api/session": {
"status": 200,
"hash": "a1ea37526a08233990b6519daf3b9014431bf00815833bcf803d629f193320b3",
"keys": 6
},
"/api/state": {
"status": 200,
"hash": "c98c7e78912dadaf0d784d4f17afd930e220b56a5855374040b8be828135f55c",
"keys": 18
},
"/api/order-book?from=2000-01-01&date=2026-12-05": {
"status": 200,
"hash": "51468f900d11293ddc48382c2cc6c0aaf7864b41942037f0faa253a1f8ac5e48",
"keys": 17
},
"/api/report?from=2000-01-01&date=2026-12-05&basis=orderDate": {
"status": 200,
"hash": "8de781179135a3d14a1828ac835cedcfafd320db095e96d12efe0a7a4c7539a3",
"keys": 45
},
"/api/report?date=2026-12-05": {
"status": 200,
"hash": "bd24e63be37d463ff91ec153d0f47a38398cbb4427aae32d9ac73de4b9d60be8",
"keys": 28
},
"/api/inventory": {
"status": 200,
"hash": "eab32ac50072ace9d9310d65674d25ce1ec791c3a5da115f11a862e32c358e73",
"keys": 10
},
"/api/inventory/movements": {
"status": 200,
"hash": "cc36109ef9c6492964b8bbaca02ea19520102a6b29f35efe7c42d027ab8ce3a7",
"keys": 15
},
"/api/inventory/snapshots": {
"status": 200,
"hash": "7e22dbecd3556bcdbae2bc676a5612fa6dbc3130729a0d5ad2fb16280bc4890d",
"keys": 3
},
"/api/material-pools": {
"status": 200,
"hash": "065c85cc6c7c851721a3dd5f6fd15a032f2161ab7678b5a66a840f698310da18",
"keys": 6
},
"/api/price-locks?status=all": {
"status": 200,
"hash": "2132da810e0971d4f4851a6524618a4dd63d4c24095a4aebc4804c42a6b9ad11",
"keys": 4
},
"/api/recoveries": {
"status": 200,
"hash": "7a24f4e8730ac1dc6460cb31c2a5f0218d1d1616b5b78f4e1af12b2002fd50dc",
"keys": 4
},
"/api/customer-materials": {
"status": 200,
"hash": "91aaa670073cf1251a8fb7d1c1c665a18a6f18d1174db04356043aca1a7c7d25",
"keys": 4
},
"/api/team-funds?date=2026-12-05": {
"status": 403,
"hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b",
"keys": 1
},
"/api/team-profits": {
"status": 403,
"hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b",
"keys": 1
},
"/api/daily-funds?date=2026-12-05": {
"status": 200,
"hash": "6f7e618950080f8fc077f4bb0dfae1cb0d2e259ea8bbd9844bc55562c5904efe",
"keys": 19
},
"/api/shop-settings": {
"status": 200,
"hash": "6515a3a11432563ccb559ca233e42984fbd9813a3f0d5c83018fc23df2b16595",
"keys": 9
},
"/api/pockets": {
"status": 200,
"hash": "4141fbf6585e13250222265b5eaebb2fcbcfe4ebe0ab79a786e9d4aa7d1c0315",
"keys": 3
},
"/api/order-templates": {
"status": 200,
"hash": "1633902c6cbba5e7770dbed172df754a25078bb76efe1f23474edc87f1a47655",
"keys": 1
},
"/api/reimbursements": {
"status": 200,
"hash": "f3a5a73b94d6cd41e303f21fc9ec8fe22bacec9cd72433894a1afdd35472bc96",
"keys": 6
},
"/api/order-changes?status=all": {
"status": 200,
"hash": "946c74a0450316999153de7ffd9ec039f6d14b21874dd3916f08073d6910a294",
"keys": 3
},
"/api/order-cancellations?status=all": {
"status": 200,
"hash": "946c74a0450316999153de7ffd9ec039f6d14b21874dd3916f08073d6910a294",
"keys": 3
},
"/api/inventory/changes?status=all": {
"status": 200,
"hash": "624494c30b9280aff52bd0bcc2daac76e8445ec6b2c17415f50496e4d63298d1",
"keys": 2
},
"/api/employees": {
"status": 403,
"hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b",
"keys": 1
},
"/api/people-count-history": {
"status": 403,
"hash": "253c036e0ef180b277e927bd1d85dbc701e099cf85d354ed6b0bee2f1971379b",
"keys": 1
}
}
}
}