-- Add partner_id column to cashier_sessions table
ALTER TABLE cashier_sessions ADD COLUMN partner_id BIGINT NOT NULL DEFAULT 1;

-- Add index for better query performance
CREATE INDEX idx_cashier_sessions_partner_id ON cashier_sessions(partner_id);

-- Add foreign key constraint (assuming partners table exists)
-- ALTER TABLE cashier_sessions ADD CONSTRAINT fk_cashier_sessions_partner_id FOREIGN KEY (partner_id) REFERENCES partners(id); 