-- Insert STOP tag template
INSERT INTO `tag_templates` (`TagType`, `Name`, `TemplateConfig`, `TriggerRule`, `IsActive`) VALUES
('STOP', 'STOP Tag Template', '{"width": "100mm", "height": "150mm", "content": "
STOP
Neutral Waybill Number: {{neutralWaybillNumber}}
Customer ID: {{customerId}}
Trigger Time: {{triggerTime}}
Reason: Not processed for more than 5 days
", "fields": ["neutralWaybillNumber", "customerId", "triggerTime"]}', '{"type": "time_based", "condition": "first_scan_result == 2 && elapsed_days > 5"}', 1);
-- Insert bag tag template
INSERT INTO `tag_templates` (`TagType`, `Name`, `TemplateConfig`, `TriggerRule`, `IsActive`) VALUES
('BAG', 'Bag Tag Template', '{"width": "100mm", "height": "150mm", "content": "Bag Tag
Tag Number: {{tagNumber}}
Channel: {{channelName}}
Package Count: {{packageCount}}
Status: {{status}}
", "fields": ["tagNumber", "channelName", "packageCount", "status", "barcode"]}', '{"type": "manual", "condition": "bag_tag_exists"}', 1);