From 2e216a9a3f9df64fc9ef98469536b9a079dbb55b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Thu, 18 Jun 2026 14:16:39 +0400 Subject: [PATCH] =?UTF-8?q?upload.cfm:=20=D0=BF=D1=80=D0=B8=D1=91=D0=BC=20?= =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload.cfm | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 upload.cfm diff --git a/upload.cfm b/upload.cfm new file mode 100644 index 0000000..228f47a --- /dev/null +++ b/upload.cfm @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO documents (filename, mime_type, original_bytes, status) + VALUES ( + , + , + , + 'uploaded' + ) + + + + SELECT id FROM documents + WHERE filename = + AND status = 'uploaded' + ORDER BY created_at DESC LIMIT 1 + + + + INSERT INTO contracts (number, client) VALUES ( + , + '' + ) + + + + SELECT id FROM contracts ORDER BY created_at DESC LIMIT 1 + + + + INSERT INTO supplements (contract_id, document_id, type) VALUES ( + , + , + 'initial' + ) + + + + + + + + + + +#serializeJSON(result)#