-- STUDENT INFO
-- 3/17/2006: NOTE THAT "has_transcript_dir" AND "has_resume_dir" WILL BE A BOOLEAN TO DETERMINE IF THEY ALREADY HAVE THEIR OWN DIRECTORIES
CREATE TABLE /! IF NOT EXISTS / student (
id int not null auto_increment,
primary key (id),
student_first_name varchar(75) not null,
student_mi varchar(75),
student_last_name varchar(75) not null,
email varchar(125) not null,
birth date not null,
was_our_intern char(1) default '0',
is_american_citizen char(1) default '0',
has_disability char(1) default '0',
home_address1 varchar(125) not null,
home_address2 varchar(50),
home_city varchar(125) not null,
home_state varchar(2) not null,
home_zip varchar(15),
home_country varchar(3) default 'us',
home_phone varchar(20) not null,
home_alt_phone varchar(20),
school_name varchar(125) not null,
school_address1 varchar(125),
school_address2 varchar(50),
school_city varchar(125),
school_state varchar(2),
school_zip varchar(15),
school_country varchar(3) default 'us',
school_phone varchar(20),
school_alt_phone varchar(20),
school_location_city varchar(125) not null,
school_location_state varchar(2) not null,
school_location_country varchar(3) default 'us',
student_school_enrollment_status_id int not null,
student_school_enrollment_status_other varchar(75),
student_school_enrollment_type_id int not null,
student_school_enrollment_type_other varchar(75),
school_type_id int not null,
school_type_other varchar(75),
school_year_id int not null,
school_year_other varchar(75),
graduation date not null,
gpa decimal(3,2) not null,
major varchar(125) not null,
minor varchar(125),
student_customer_preference_other varchar(75),
student_ethnicity_interest_other varchar(75),
student_internship_area_other varchar(75),
will_intern_anywhere char(1) default '0',
will_require_housing char(1) default '0',
has_participated_in_prior_internship_programs char(1) default '0',
prior_internship_sponsors varchar(125),
activities text not null,
written_reasons text not null,
resume text,
has_resume_dir char(1) default '0',
uploaded_resume_path text,
howheard_id int not null,
howheard_other varchar(75),
has_completion_reference_letter1 char(1) default '0',
completion_reference_letter1_receipt_date date,
completion_reference_letter1_path text,
has_completion_reference_letter2 char(1) default '0',
completion_reference_letter2_receipt_date date,
completion_reference_letter2_path text,
has_school_transcript char(1) default '0',
school_transcript_date date,
school_transcript_path text,
has_completion_dir char(1) default '0',
has_proof_grad_enrollment char(1) default '0',
has_completed_employment_application char(1) default '0',
application_date datetime,
modification_date datetime,
unique_key varchar(16) not null,
uuid varchar(255) not null,
is_authorized_to_resubmit char(1) default '0'
) /! TYPE=MyISAM /;