-- Add independent Owner booking creation permission.
-- Safe to run multiple times.

INSERT INTO permissions (permission_key, permission_name, module)
VALUES ('owner.booking.create', 'Đặt lịch', 'owner')
ON DUPLICATE KEY UPDATE
    permission_name = VALUES(permission_name),
    module = VALUES(module);

INSERT INTO role_permissions (role, permission_key, allowed)
VALUES ('owner', 'owner.booking.create', 1)
ON DUPLICATE KEY UPDATE
    permission_key = VALUES(permission_key);
