async function addWorkHistory(workHistory) {
    await db("work_histories").insert(workHistory);

    return findWorkHistoryById(workHistory.writer_id);
}
//add new work history record to user profile
add new work history record to user profile
add new work history record to user profile
async function addWorkHistory(workHistory) {
    await db("work_histories").insert(workHistory);
    return findWorkHistoryById(workHistory.writer_id);
}
async function addWorkHistory ( workHistory ) { await db ( "work_histories" ) . insert ( workHistory ) ; return findWorkHistoryById ( workHistory . writer_id ) ; }
add new work history record to user profile
add new work history record to user profile