INSERT INTO blc_security_scope ("id", "name", "open")VALUES ('-420', 'BACKEND_STORE_CREDIT_ACCOUNT', 'N');
INSERT INTO blc_security_scope ("id", "name", "open")VALUES ('-430', 'BACKEND_CREDIT_ACCOUNT', 'N');
INSERT INTO blc_security_scope ("id", "name", "open")VALUES ('-440', 'CREDIT_ACCOUNT_CREDIT_TRANSACTION', 'N');
INSERT INTO blc_security_scope ("id", "name", "open")VALUES ('-450', 'CREDIT_ACCOUNT_DEBIT_TRANSACTION', 'N');
INSERT INTO blc_permission_scope (id, "permission", is_permission_root, scope_id)
VALUES('-810', 'BACKEND_STORE_CREDIT_ACCOUNT', 'Y', '-420');
INSERT INTO blc_permission_scope (id, "permission", is_permission_root, scope_id)
VALUES('-820', 'BACKEND_CREDIT_ACCOUNT', 'Y', '-430');
INSERT INTO blc_permission_scope (id, "permission", is_permission_root, scope_id)
VALUES('-840', 'CREDIT_ACCOUNT_CREDIT_TRANSACTION', 'Y', '-440');
INSERT INTO blc_permission_scope (id, "permission", is_permission_root, scope_id)
VALUES('-850', 'CREDIT_ACCOUNT_DEBIT_TRANSACTION', 'Y', '-450');
INSERT INTO blc_user_permission ("id", "archived", "last_updated", "name", "is_account_perm")
VALUES('-740', 'N', '1970-01-01 00:00:00.000', 'ALL_BACKEND_STORE_CREDIT_ACCOUNT', 'N');
INSERT INTO blc_user_permission ("id", "archived", "last_updated", "name", "is_account_perm")
VALUES('-750', 'N', '1970-01-01 00:00:00.000', 'READ_BACKEND_STORE_CREDIT_ACCOUNT', 'N');
INSERT INTO blc_user_permission ("id", "archived", "last_updated", "name", "is_account_perm")
VALUES('-760', 'N', '1970-01-01 00:00:00.000', 'CREATE_BACKEND_STORE_CREDIT_ACCOUNT', 'N');
INSERT INTO blc_user_permission ("id", "archived", "last_updated", "name", "is_account_perm")
VALUES('-770', 'N', '1970-01-01 00:00:00.000', 'DELETE_BACKEND_STORE_CREDIT_ACCOUNT', 'N');
INSERT INTO blc_user_permission ("id", "archived", "last_updated", "name", "is_account_perm")
VALUES('-780', 'N', '1970-01-01 00:00:00.000', 'ALL_BACKEND_CREDIT_ACCOUNT', 'N');
INSERT INTO blc_user_permission ("id", "archived", "last_updated", "name", "is_account_perm")
VALUES('-785', 'N', '1970-01-01 00:00:00.000', 'READ_BACKEND_CREDIT_ACCOUNT', 'N');
INSERT INTO blc_user_permission ("id", "archived", "last_updated", "name", "is_account_perm")
VALUES('-790', 'N', '1970-01-01 00:00:00.000', 'CREATE_BACKEND_CREDIT_ACCOUNT', 'N');
INSERT INTO blc_user_permission ("id", "archived", "last_updated", "name", "is_account_perm")
VALUES('-795', 'N', '1970-01-01 00:00:00.000', 'DELETE_BACKEND_CREDIT_ACCOUNT', 'N');
INSERT INTO blc_user_permission ("id", "archived", "last_updated", "name", "is_account_perm")
VALUES('-840', 'N', '1970-01-01 00:00:00.000', 'ALL_CREDIT_ACCOUNT_CREDIT_TRANSACTION', 'N');
INSERT INTO blc_user_permission ("id", "archived", "last_updated", "name", "is_account_perm")
VALUES('-850', 'N', '1970-01-01 00:00:00.000', 'ALL_CREDIT_ACCOUNT_DEBIT_TRANSACTION', 'N');
-- Admin Roles
--- ALL_BACKEND_STORE_CREDIT_ACCOUNT to FULL_ACCESS role
INSERT INTO blc_role_permission_xref (role_id, permission_id) VALUES ('-2', '-740');
--- ALL_BACKEND_CREDIT_ACCOUNT to FULL_ACCESS role
INSERT INTO blc_role_permission_xref (role_id, permission_id) VALUES ('-2', '-780');
--- ALL_CREDIT_ACCOUNT_CREDIT_TRANSACTION to FULL_ACCESS role
INSERT INTO blc_role_permission_xref (role_id, permission_id) VALUES ('-2', '-840');
--- ALL_CREDIT_ACCOUNT_DEBIT_TRANSACTION to FULL_ACCESS role
INSERT INTO blc_role_permission_xref (role_id, permission_id) VALUES ('-2', '-850');
-- Store Credit Client
INSERT INTO blc_client_scopes (id, "scope") VALUES('storecreditclient', 'BACKEND_CREDIT_ACCOUNT');
INSERT INTO blc_client_permissions (id, permission) VALUES ('storecreditclient', 'READ_BACKEND_CREDIT_ACCOUNT');
-- Cart Operation Client
INSERT INTO blc_client_scopes (id, "scope") VALUES('cartopsclient', 'BACKEND_CREDIT_ACCOUNT');
INSERT INTO blc_client_permissions (id, permission) VALUES ('cartopsclient', 'READ_BACKEND_CREDIT_ACCOUNT');