first commit

This commit is contained in:
2026-01-09 19:14:41 +08:00
commit 9f3c96ce73
67 changed files with 9636 additions and 0 deletions

55
backend/schema_check.txt Normal file
View File

@@ -0,0 +1,55 @@
All tables: ['dit_records', 'match_results', 'order_records', 'pj_abc', 'PJ_SOA_DIT_Records', 'PJ_SOA_Match_Results', 'PJ_SOA_Order_Records', 'PJ_SOA_orders', 'PJ_SOA_Review_Logs', 'PJ_SOA_Sample_Records', 'PJ_SOA_samples', 'PJ_SOA_users', 'review_logs', 'sample_records', 'users']
Table PJ_SOA_DIT_Records exists. Columns:
- id (INTEGER)
- op_id (VARCHAR(255))
- customer (VARCHAR(255))
- customer_normalized (VARCHAR(255))
- pn (VARCHAR(100))
- eau (INTEGER)
- stage (VARCHAR(50))
- date (VARCHAR(20))
- created_at (DATETIME)
- updated_at (DATETIME)
- erp_account (VARCHAR(100))
Table PJ_SOA_Sample_Records exists. Columns:
- id (INTEGER)
- sample_id (VARCHAR(50))
- order_no (VARCHAR(50))
- customer (VARCHAR(255))
- customer_normalized (VARCHAR(255))
- pn (VARCHAR(100))
- qty (INTEGER)
- date (VARCHAR(20))
- created_at (DATETIME)
- updated_at (DATETIME)
- oppy_no (VARCHAR(100))
- cust_id (VARCHAR(100))
Table PJ_SOA_Order_Records exists. Columns:
- id (INTEGER)
- order_id (VARCHAR(50))
- order_no (VARCHAR(50))
- customer (VARCHAR(255))
- customer_normalized (VARCHAR(255))
- pn (VARCHAR(100))
- qty (INTEGER)
- status (VARCHAR(50))
- amount (FLOAT)
- created_at (DATETIME)
- updated_at (DATETIME)
- cust_id (VARCHAR(100))
Table PJ_SOA_Match_Results exists. Columns:
- id (INTEGER)
- dit_id (INTEGER)
- target_type (ENUM)
- target_id (INTEGER)
- score (FLOAT)
- reason (VARCHAR(255))
- status (ENUM)
- created_at (DATETIME)
- updated_at (DATETIME)
- match_priority (INTEGER)
- match_source (VARCHAR(255))