Files
yunhaifinance/backups/20260325_002423/company_finance_20260325_002540.db
T

445 lines
168 KiB
Plaintext
Raw Normal View History

SQLite format 3@ *#%.‘àâ&ûöñìçâ3øƒ
!!tablecategoriescategories CREATE TABLE categories (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
parent_id INTEGER,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)ƒu ‡=tableproductsproducts
CREATE TABLE products (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
category_id INTEGER,
unit TEXT,
price REAL,
description TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)… ))‰Stablesubcontractorssubcontractors CREATE TABLE subcontractors (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
contact TEXT,
position TEXT,
phone TEXT,
email TEXT,
address TEXT,
scope TEXT,
features TEXT,
country TEXT,
remark TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)„.ˆ+tablesupplierssuppliersCREATE TABLE suppliers (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
contact TEXT,
position TEXT,
phone TEXT,
email TEXT,
address TEXT,
supply_category TEXT,
country TEXT,
remark TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)ƒ:†CtablecustomerscustomersCREATE TABLE customers (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
contact TEXT,
position TEXT,
phone TEXT,
email TEXT,
address TEXT,
remark TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)„WtableprojectsprojectsCREATE TABLE projects (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
code TEXT UNIQUE NOT NULL,
customer_id INTEGER,
manager_id INTEGER,
contract_amount REAL DEFAULT 0.0,
start_date DATE,
end_date DATE,
description TEXT,
status TEXT DEFAULT 'active',
location TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (manager_id) REFERENCES users(id)
)/Cindexsqlite_autoindex_projects_1projectsP++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)E„itableusersusersCREATE TABLE users (
id INTEGER PRIMARY KEY AUTOINCREMENT,
username TEXT UNIQUE NOT NULL,
password TEXT NOT NULL,
name TEXT,
role TEXT NOT NULL DEFAULT 'user',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
))=indexsqlite_a!


advances 
%subcontracts 1project_milestones+budget_projects¯ project/project_contracts/ budget_quotations b projects  suppliers) subcontractors contacts  customers
·T·/ ==/33测试2PROJ-20260324-002c2026-03-24T05:27:56.620Z2026-05-03T05:27:56.620Z测是测试12333active1231232026-03-24
ÕëÕ/PROJ-20260324-002/ PROJ-20260324-001
 13-
%133测试客户æµç¨‹æµ‹è¯•客户è”ç³»2现场负责人2123123æµ‹è¯•åœ°å€æµ‹è¯•客户备注2026-03-24 04:57:432026-03-24 04:57:43
yy
Í3 ¨ ëº+3øƒ
!!tablecategoriescategories CREATE TABLE categories (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
parent_id INTEGER,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)ƒu ‡=tableproductsproducts
CREATE TABLE products (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
category_id INTEGER,
unit TEXT,
price REAL,
description TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)… ))‰Stablesubcontractorssubcontractors CREATE TABLE subcontractors (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
contact TEXT,
position TEXT,
phone TEXT,
email TEXT,
address TEXT,
scope TEXT,
features TEXT,
country TEXT,
remark TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)„.ˆ+tablesupplierssuppliersCREATE TABLE suppliers (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
contact TEXT,
position TEXT,
phone TEXT,
email TEXT,
address TEXT,
supply_category TEXT,
country TEXT,
remark TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)ƒ:†CtablecustomerscustomersCREATE TABLE customers (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
contact TEXT,
position TEXT,
phone TEXT,
email TEXT,
address TEXT,
remark TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)„WtableprojectsprojectsCREATE TABLE projects (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
code TEXT UNIQUE NOT NULL,
customer_id INTEGER,
manager_id INTEGER,
contract_amount REAL DEFAULT 0.0,
start_date DATE,
end_date DATE,
description TEXT,
status TEXT DEFAULT 'active',
location TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (manager_id) REFERENCES users(id)
)/Cindexsqlite_autoindex_projects_1projectsP++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)E„itableusersusersCREATE TABLE users (
id INTEGER PRIMARY KEY AUTOINCREMENT,
username TEXT UNIQUE NOT NULL,
password TEXT NOT NULL,
name TEXT,
role TEXT NOT NULL DEFAULT 'user',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
))=indexsqlite_autoindex_users_1users
ë .ëã¥AU/indexsqlite_autoindex_project_contracts_1project_contractsŠT
//”Wtableproject_contractsproject_contractsCREATE TABLE project_contracts (
id INTEGER PRIMARY KEY AUTOINCREMENT,
project_id INTEGER,
contract_code TEXT UNIQUE NOT NULL,
contract_amount REAL NOT NULL,
currency TEXT DEFAULT 'CNY',
settlement_method TEXT,
contract_period INTEGER,
start_date DATE,
end_date DATE,
warranty_deposit_percentage REAL DEFAULT 5,
warranty_period INTEGER DEFAULT 12,
contract_file TEXT,
other_info TEXT,
tax_included INTEGER DEFAULT 0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (project_id) REFERENCES projects(id)
)‡ //_tablebudget_quotationsbudget_quotationsCREATE TABLE budget_quotations (
id INTEGER PRIMARY KEY AUTOINCREMENT,
project_id INTEGER,
version INTEGER,
quotation_date DATE,
amount REAL,
currency TEXT DEFAULT 'CNY',
status TEXT DEFAULT 'draft',
file_url TEXT,
remark TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (project_id) REFERENCES budget_projects(id)
)‰] ++qtablebudget_projectsbudget_projects CREATE TABLE budget_projects (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
customer_id INTEGER,
manager_id INTEGER,
location TEXT,
survey_date DATE,
intermediary TEXT,
intermediary_fee_type TEXT,
intermediary_fee_value REAL,
customer_requirements TEXT,
project_overview TEXT,
attachments TEXT,
survey_photos TEXT,
status TEXT DEFAULT 'negotiating',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (customer_id) REFERENCES customers(id),
FOREIGN KEY (manager_id) REFERENCES users(id)
)
} !a%332026-03-24† CNYdraft/uploads/file-1774328391035-563506210.xlsx报价测试2026
ÇäÇ=CONTRACT-20260324-122749= CONTRACT-20260324-120904
id INTEGER PRIMARY KEY AUTOINCREMENT,
project_id INTEGER,
subcontractor_id INTEGER,
subcontractor_name TEXT,
contract_amount REAL NOT NULL,
currency TEXT DEFAULT 'CNY',
start_date DATE,
end_date DATE,
paid_amount REAL DEFAULT 0,
status TEXT DEFAULT 'active',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, settlement_type TEXT DEFAULT 'lump_sum', other_terms TEXT, payment_description TEXT, unit_price_items TEXT,
FOREIGN KEY (project_id) REFERENCES projects(id),
FOREIGN KEY (subcontractor_id) REFERENCES subcontractors(id)
)‰>11'tableproject_milestonesproject_milestonesCREATE TABLE project_milestones (
id INTEGER PRIMARY KEY AUTOINCREMENT,
project_id INTEGER,
milestone_name TEXT,
percentage REAL,
amount REAL,
expected_date DATE,
actual_date DATE,
completion_progress INTEGER DEFAULT 0,
status TEXT DEFAULT 'pending',
voucher TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (project_id) REFERENCES projects(id)
)‰U//Ytableproject_materialsproject_materialsCREATE TABLE project_materials (
id INTEGER PRIMARY KEY AUTOINCREMENT,
project_id INTEGER,
product_id INTEGER,
product_name TEXT,
unit TEXT,
budget_quantity REAL,
purchase_quantity REAL,
used_quantity REAL,
average_price REAL,
total_amount REAL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (project_id) REFERENCES projects(id),
FOREIGN KEY (product_id) REFERENCES products(id)
)

pending2026-03-24 05:41:352026-03-24 05:41:35F
33进度款<;pending2026-03-24 05:41:352026-03-24 05:41:35F
33预付款pending2026-03-24 05:41:352026-03-24 05:41:35

//]tablewarranty_depositswarranty_depositsCREATE TABLE warranty_deposits (
id INTEGER PRIMARY KEY AUTOINCREMENT,
project_id INTEGER,
amount REAL NOT NULL,
currency TEXT DEFAULT 'CNY',
warranty_period INTEGER DEFAULT 12,
start_date DATE,
end_date DATE,
status TEXT DEFAULT 'active',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (project_id) REFERENCES projects(id)
)ˆZ--gtableproject_financesproject_financesCREATE TABLE project_finances (
id INTEGER PRIMARY KEY AUTOINCREMENT,
project_id INTEGER,
payment_type TEXT,
amount REAL DEFAULT 0,
currency TEXT DEFAULT 'CNY',
payment_date DATE,
status TEXT DEFAULT 'pending',
description TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (project_id) REFERENCES projects(id)
)Ó11'tableproject_milestonesproject_milestonesCREATE TABLE project_milestones (
id INTEGER PRIMARY KEY AUTOINCREMENT,
‡k//tableconstruction_logsconstruction_logsCREATE TABLE construction_logs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
project_id INTEGER,
log_date DATE,
weather TEXT,
work_content TEXT,
photos TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (project_id) REFERENCES projects(id)
)

1 33supplier测试供应商123测试1231232026-03-24 04:58:402026-03-24 04:58:40Y
'7
 33subcontractor测试分包è”系人12311232026-03-24 04:58:202026-03-24 04:58:20a
3- 33customer测试客户è”ç³»2现场负责人21231232026-03-24 04:57:432026-03-24 04:57:43`
3'33customer测试客户è”ç³»1测试èŒä½1123123122026-03-24 04:57:432026-03-24 04:57:43
I æzI;O)indexsqlite_autoindex_reimbursements_1reimbursements 9/Cindexsqlite_autoindex_advances_1advancesŠi•%tableadvancesadvancesCREATE TABLE advances (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id INTEGER,
project_id INTEGER,
amount REAL NOT NULL,
currency TEXT DEFAULT 'CNY',
amount_cny REAL DEFAULT 0,
reason TEXT NOT NULL,
advance_date DATE,
advance_code TEXT UNIQUE NOT NULL,
status TEXT DEFAULT 'pending',
applicant TEXT,
attachments TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (user_id) REFERENCES users(id),
FOREIGN KEY (project_id) REFERENCES projects(id)
)†))qtableexchange_ratesexchange_ratesCREATE TABLE exchange_rates (
id INTEGER PRIMARY KEY AUTOINCREMENT,
pair_key TEXT NOT NULL,
rate REAL NOT NULL,
effective_date DATE NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)‡yEtablecontactscontactsCREATE TABLE contacts (
id INTEGER PRIMARY KEY AUTOINCREMENT,
entity_id INTEGER NOT NULL,
entity_type TEXT NOT NULL,
name TEXT NOT NULL,
position TEXT,
phone TEXT,
is_primary INTEGER DEFAULT 0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)

 1!/%33ˆCNY项目差旅预支2026-03-24ADV-1774364086478pending测试用户[]2026-03-24 14:54:462026-03-24 14:54:46|  1!/%33ˆCNY项目差旅预支2026-03-24ADV-1774363979881pending测试用户[]2026-03-24 14:52:592026-03-24 14:52:59* !/+g33;LAK@ÛûÃD&#555555552026-03-24ADV-1774355309984withdrawn系统管ç†å‘˜["/uploads/file-1774355530514-433191505.png"]2026-03-24 12:28:292026-03-24 12:28:293 ;!/+g33àôCNYàô釿–°æµ‹è¯•预支555512026-03-24ADV-1774340191095pending系统管ç†å‘˜["/uploads/file-1774356390362-411627727.png"]2026-03-24 08:16:312026-03-24 08:16:31| #!/+33áMCNYáM123123123212026-03-24ADV-1774352921729pending系统管ç†å‘˜[]2026-03-24 11:48:412026-03-24 11:48:41z !/+33á¹CNYá¹æµ‹è¯•5552026-03-24ADV-1774352329995pending系统管ç†å‘˜[]2026-03-24 11:38:492026-03-24 11:38:49| 1!/%33ˆCNY项目差旅预支2026-03-24ADV-1774363729742pending测试用户[]2026-03-24 14:48:492026-03-24 14:48:49:31
QëÕ¿©}gQ/ADV-1774364162084 /ADV-1774364086478
/ADV-1774363979881 /ADV-1774363729742/ADV-1774355309984/ADV-1774352921729/ADV-1774352329995/ ADV-1774340191095
$

oM º ˜

ã ïÀ-
 1!3%U33
¬CNY项目差旅报销2026-03-24REIMB-1774364086493approved测试用户project[{"description":"ä½å®¿è´¹","amount":2000,"category":"accommodation","attachments":[]},{"description":"é¤é¥®è´¹","amount":1500,"category":"food","attachments":[]}][]2026-03-24 14:54:462026-03-24 14:54:46,  1!3%U33
¬CNY项目差旅报销2026-03-24REIMB-1774363979899pending测试用户project[{"description":"ä½å®¿è´¹","amount":2000,"category":"accommodation","attachments":[]},{"description":"é¤é¥®è´¹","amount":1500,"category":"food","attachments":[]}][]2026-03-24 14:52:592026-03-24 14:52:59, 1!3%U33
¬CNY项目差旅报销2026-03-24REIMB-1774363729760pending测试用户project[{"description":"ä½å®¿è´¹","amount":2000,"category":"accommodation","attachments":[]},{"description":"é¤é¥®è´¹","amount":1500,"category":"food","attachments":[]}][]2026-03-24 14:48:492026-03-24 14:48:49d %!3+I33ÉÐCNY测试事由2026-03-24REIMB-1774363001123pending系统管ç†å‘˜company[{"description":"测试费用","amount":1231312,"category":"transportation","attachments":[]}][]2026-03-24 14:36:412026-03-24 14:36:41[ 1!/+)33èCNYèæµ‹è¯•公叿Х销2026-03-24REIM1774362683866withdrawn测试申请人company[{"description":"测试明细","amount":1000,"category":"general_operations"}][]2026-03-24 14:31:232026-03-24 14:31:23T 1!/+33èCNYèæµ‹è¯•项目报销2026-03-24REIM1774362683881pending测试申请人project[{"description":"测试明细","amount":1000,"category":"accommodation"}][]2026-03-24 14:31:232026-03-24 14:31:23[ 1!/+)33èCNYèæµ‹è¯•公叿Х销2026-03-24REIM1774362639304withdrawn测试申请人company[{"description":"测试明细","amount":1000,"category":"general_operations"}][]2026-03-24 14:30:392026-03-24 14:30:39T 1!/+33èCNYèæµ‹è¯•项目报销2026-03-24REIM1774362639317pending测试申请人project[{"description":"测试明细","amount":1000,"category":"accommodation"}][]2026-03-24 14:30:392026-03-24 14:30:39[ 1!/+)33èCNYèæµ‹è¯•公叿Х销2026-03-24REIM1774362571261withdrawn测试申请人company[{"description":"测试明细","amount":1000,"category":"general_operations"}][]2026-03-24 14:29:312026-03-24 14:29:31T 1!/+33èCNYèæµ‹è¯•项目报销2026-03-24REIM1774362571278pending测试申请人project[{"description":"测试明细","amount":1000,"category":"accommodation"}][]2026-03-24 14:29:312026-03-24 14:29:31Ü 1!/+)33èCNYèæµ‹è¯•公叿Х销2026-03-24REIM1774362683866pending测试申请人company[{"description":"测试明细","amount":1000,"category":"general_operations"}][]2026-03-24 14:31:232026-03-24 14:31:23
ëÕ¿©}eM53REIMB-1774364086493
3REIMB-1774363979899 3REIMB-17743637297603REIMB-1774363001123/REIM1774362683881/REIM1774362683866/REIM1774362639317/REIM1774362639304/REIM1774362571278/ REIM1774362571261
Ï ) f )Ðà­­­9M'indexsqlite_autoindex_verifŒV--˜_tablepayment_requestspayment_requests"CREATE TABLE payment_requests (
id INTEGER PRIMARY KEY AUTOINCREMENT,
request_code TEXT UNIQUE NOT NULL,
applicant TEXT NOT NULL,
payee TEXT NOT NULL,
bank_account TEXT NOT NULL,
bank_name TEXT NOT NULL,
amount REAL NOT NULL,
amount_cny REAL DEFAULT 0,
currency TEXT DEFAULT 'CNY',
payment_date DATE NOT NULL,
reason TEXT NOT NULL,
detail_items TEXT,
attachments TEXT,
status TEXT DEFAULT 'pending',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
, expense_type TEXT, payee_type TEXT, payee_id INTEGER, project_id INTEGER, expense_category TEXT);O)indexsqlite_autoindex_reimbursements_1reimbursements Œf))tablereimbursementsreimbursementsCREATE TABLE reimbursements (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id INTEGER,
project_id INTEGER,
amount REAL NOT NULL,
currency TEXT DEFAULT 'CNY',
amount_cny REAL DEFAULT 0,
reason TEXT NOT NULL,
reimbursement_date DATE,
reimbursement_code TEXT UNIQUE NOT NULL,
status TEXT DEFAULT 'pending',
applicant TEXT,
expense_type TEXT NOT NULL,
detail_items TEXT,
attachments TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (user_id) REFERENCES users(id),
FOREIGN KEY (project_id) REFERENCES projects(id)
)1Cindexsqlite_autoindex_advances_1advances

ê
ê /%+3%!+w33PAY-1774365357990测试用户测试供应商1234567890123456789测试银行u0CNY2026-03-24设备采购款[{"description":"设备1","amount":10000,"attachments":[]},{"description":"设备2","amount":20000,"attachments":[]}][]executed2026-03-24 15:15:572026-03-24 15:15:57p-++!%!%)33PAY1774362683903测试申请人测试收款人1234567890测试银行èèCNY2026-03-24测试付款[{"description":"测è¯
ìì- VER1774362683913
id INTEGER PRIMARY KEY AUTOINCREMENT,
request_code TEXT UNIQUE NOT NULL,
applicant TEXT NOT NULL,
payee TEXT NOT NULL,
bank_account TEXT DEFAULT '',
bank_name TEXT DEFAULT '',
amount REAL NOT NULL,
amount_cny REAL DEFAULT 0,
currency TEXT DEFAULT 'CNY',
payment_date DATE NOT NULL,
reason TEXT NOT NULL,
detail_items TEXT,
attachments TEXT,
status TEXT DEFAULT 'pending',
payee_type TEXT DEFAULT 'other',
payee_id INTEGER,
expense_type TEXT DEFAULT 'company',
expense_category TEXT DEFAULT '',
project_id INTEGER,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)ƒ1!!†-tableexecutionsexecutions'CREATE TABLE executions (
id INTEGER PRIMARY KEY AUTOINCREMENT,
apply_id INTEGER NOT NULL,
apply_type TEXT NOT NULL,
action TEXT NOT NULL,
execute_method TEXT,
voucher_no TEXT,
remark TEXT,
reject_reason TEXT,
operator TEXT NOT NULL,
operator_role TEXT NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
, voucher_files TEXT)p 5!indexidx_executions_applyexecutions(CREATE INDEX idx_executions_apply ON executions(apply_id, apply_type)¿_!!tableexecutionsexecutions'CREATE TABLE executions (
id INTEGER PRIMARY KEY AUTOINCREMENT,
apply_id INTEGER NOT NULL,
apply_type TEXT NOT NULL,