async function addApplicantProfile(id) {
    const defaultData = {
        applicant_id: id,
        first_name: "",
        last_name: "",
        city: "",
        state: "",
        country: "",
        zip: "",
        bio: "",
        org_name: "",
        sector: "",
        website: "",
    };

    const [profileId] = await db("applicant_profiles").insert(
        defaultData,
        "id"
    );

    return findApplicantProfileById(profileId);
}
//adds new applicant profile. This is only to be used during the onboarding process, function is inserted into add function in bothUserTypeModel file.
adds new applicant profile. This is only to be used during the onboarding process, function is inserted into add function in bothUserTypeModel file.
adds new applicant profile . This is only to be used during the onboarding process function is inserted into add function in bothUserTypeModel file .
async function addApplicantProfile(id) {
    const defaultData = {
        applicant_id: id,
        first_name: "",
        last_name: "",
        city: "",
        state: "",
        country: "",
        zip: "",
        bio: "",
        org_name: "",
        sector: "",
        website: "",
    };
    const [profileId] = await db("applicant_profiles").insert(
        defaultData,
        "id"
    );
    return findApplicantProfileById(profileId);
}
async function addApplicantProfile ( id ) { const defaultData = { applicant_id : id , first_name : "" , last_name : "" , city : "" , state : "" , country : "" , zip : "" , bio : "" , org_name : "" , sector : "" , website : "" , } ; const [ profileId ] = await db ( "applicant_profiles" ) . insert ( defaultData , "id" ) ; return findApplicantProfileById ( profileId ) ; }
adds new applicant profile.
adds new applicant profile .