Done: нельзя при нерешённой проблеме (Can't done - not solved yet. SS, исходная проблема сохраняется), точечная проверка операции в QuickBooks; вложения документов в QuickBooks (qbo-attach, миграция 078, ссылка на Drive в Memo); review-done-action.md по замечаниям
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
16
packages/khb_common/migrations/078_acc_qbo_attachments.sql
Normal file
16
packages/khb_common/migrations/078_acc_qbo_attachments.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- Вложения документов (чек, инвойс) к записям QuickBooks: что уже приложено или заменено ссылкой на Drive в Memo.
|
||||
create table if not exists acc_qbo_attachments (
|
||||
id uuid primary key default gen_random_uuid(),
|
||||
qbo_entity_type text not null,
|
||||
qbo_entity_id text not null,
|
||||
drive_file_id text not null,
|
||||
source text,
|
||||
status text not null default 'pending' check (status in ('pending', 'attached', 'memo_link', 'failed')),
|
||||
attachable_id text,
|
||||
attempts int not null default 0,
|
||||
error text,
|
||||
created_at timestamptz not null default now(),
|
||||
done_at timestamptz,
|
||||
unique (qbo_entity_type, qbo_entity_id, drive_file_id)
|
||||
);
|
||||
alter table acc_qbo_attachments enable row level security;
|
||||
Reference in New Issue
Block a user