feat(pos): add barcode generator with PostgreSQL sequence

This commit is contained in:
2026-03-31 02:10:14 +00:00
parent af404a6474
commit db205d6228
2 changed files with 64 additions and 0 deletions

View File

@@ -351,3 +351,6 @@ CREATE INDEX idx_audit_log_employee ON audit_log(employee_id);
CREATE INDEX idx_audit_log_created ON audit_log(created_at);
CREATE UNIQUE INDEX idx_inventory_branch_part ON inventory(branch_id, part_number);
CREATE INDEX idx_employee_sessions_token ON employee_sessions(token);
-- Barcode sequence
CREATE SEQUENCE IF NOT EXISTS barcode_seq START 1;