src/main/java/com/kshrd/derphsar_api/repository/provider/UserProvider.java
//insert user role by default ROLE_BUYER
insert user role by default ROLE_BUYER
insert user role by default ROLE_BUYER
public String insertUserRole(UserDto user){
        return new SQL(){{
            INSERT_INTO("dp_user_role");
            VALUES("user_id, role_id", "(SELECT id FROM dp_users WHERE email LIKE #{email}), (SELECT id FROM dp_role WHERE name LIKE 'ROLE_BUYER')");
        }}.toString();
    }
public String insertUserRole ( UserDto user ) { return new SQL ( ) { { INSERT_INTO ( "dp_user_role" ) ; VALUES ( "user_id, role_id" , "(SELECT id FROM dp_users WHERE email LIKE #{email}), (SELECT id FROM dp_role WHERE name LIKE 'ROLE_BUYER')" ) ; } } . toString ( ) ; }
insert user role by default ROLE_BUYER
insert user role by default ROLE_BUYER