class CrewLeg < Sequel::Model(:'crew legs') # NOTE - Count of instances as of 06/01/2009 => 60947 # Many to one associations with composite primary keys n_to_o :trip_legs, :class=>:TripLeg, :prefix=>'trip leg' many_to_one :crew_name, :class=>:Personel, :key=>:crew, :primary_key=>:employee_id # Code associations code_association :position_code, :'position', :position #### BEGIN GENERATED SECTION #### set_primary_key [:'kid - user', :'kid - mult', :'kid - comm', :'kid - date', :'kid - time'] column_alias :acm, :'acm' column_alias :acm_fixed, :'acm fixed' column_alias :appr_cat2, :'appr cat2' column_alias :appr_cat3, :'appr cat3' column_alias :appr_unused, :'appr unused' column_alias :approach_auto, :'approach auto' column_alias :approach_circ, :'approach circ' column_alias :approach_fixed, :'approach fixed' column_alias :approach_missed, :'approach missed' column_alias :approach_ndb, :'approach ndb' column_alias :approach_nonprec, :'approach nonprec.' column_alias :approach_precision, :'approach precision' column_alias :approach_seo, :'approach seo' column_alias :arrival_date_gmt, :'arrival date gmt' column_alias :cancelled, :'cancelled' column_alias :cat_2_appr_fixed, :'cat 2 appr fixed' column_alias :category_2_appr, :'category 2 appr' column_alias :crew, :'crew' column_alias :crew_brief, :'crew brief' column_alias :crew_duty_kid_unused, :'crew duty kid unused' column_alias :crew_special_qual, :'crew special qual' column_alias :crew_special_qual2, :'crew special qual2' column_alias :crew_special_qual3, :'crew special qual3' column_alias :crew_trip_kid_comm, :'crew trip kid - comm' column_alias :crew_trip_kid_date, :'crew trip kid - date' column_alias :crew_trip_kid_mult, :'crew trip kid - mult' column_alias :crew_trip_kid_time, :'crew trip kid - time' column_alias :crew_trip_kid_user, :'crew trip kid - user' column_alias :crewleg_checked, :'crewleg checked' column_alias :crewlog_fixed, :'crewlog fixed' column_alias :depart_date_gmt, :'depart date gmt' column_alias :eta_gmt, :'eta gmt' column_alias :etd_gmt, :'etd gmt' column_alias :fa, :'fa' column_alias :fa_fixed, :'fa fixed' column_alias :fe, :'fe' column_alias :fe_fixed, :'fe fixed' column_alias :fl_data_entered, :'fl data entered' column_alias :flights_ac, :'flights a/c' column_alias :flights_fixed, :'flights fixed' column_alias :flights_sim, :'flights sim' column_alias :flying, :'flying' column_alias :gsc, :'gsc' column_alias :holding, :'holding' column_alias :holding_fixed, :'holding fixed' column_alias :inst_appr_1, :'inst appr 1' column_alias :inst_appr_2, :'inst appr 2' column_alias :inst_appr_3, :'inst appr 3' column_alias :inst_appr_ap_1, :'inst appr ap 1' column_alias :inst_appr_ap_2, :'inst appr ap 2' column_alias :inst_appr_ap_3, :'inst appr ap 3' column_alias :instructor, :'instructor' column_alias :instructor_fixed, :'instructor fixed' column_alias :instrument_fixed, :'instrument fixed' column_alias :instrument_pic, :'instrument pic' column_alias :instrument_simulated, :'instrument simulated' column_alias :instrument_time_act, :'instrument time act.' column_alias :internal01, :'internal01' column_alias :internal02, :'internal02' column_alias :kid_comm, :'kid - comm' column_alias :kid_date, :'kid - date' column_alias :kid_mult, :'kid - mult' column_alias :kid_time, :'kid - time' column_alias :kid_user, :'kid - user' column_alias :landing_day, :'landing day' column_alias :landing_night, :'landing night' column_alias :landing_seo, :'landing seo' column_alias :landings_fixed, :'landings fixed' column_alias :landings_rcp, :'landings rcp' column_alias :lead, :'lead' column_alias :leg_number, :'leg number' column_alias :legality_violation, :'legality violation' column_alias :night_fixed, :'night fixed' column_alias :night_flt_ac, :'night flt ac' column_alias :night_flt_fixed, :'night flt fixed' column_alias :night_flt_sim, :'night flt sim' column_alias :night_time, :'night time' column_alias :pic, :'pic' column_alias :pic_fixed, :'pic fixed' column_alias :pilot_flying, :'pilot flying' column_alias :pilot_flying_fixed, :'pilot flying fixed' column_alias :pilot_mon_appr, :'pilot mon appr' column_alias :pilot_mon_appr_fixed, :'pilot mon appr fixed' column_alias :pilot_not_flying, :'pilot not flying' column_alias :pilot_not_flying_fix, :'pilot not flying fix' column_alias :position, :'position' column_alias :qty_1, :'qty 1' column_alias :qty_1x, :'qty 1x' column_alias :qty_2, :'qty 2' column_alias :qty_2x, :'qty 2x' column_alias :sic, :'sic' column_alias :sic_fixed, :'sic fixed' column_alias :t_o_day, :'t/o day' column_alias :t_o_night, :'t/o night' column_alias :takeoff_seo, :'takeoff seo' column_alias :takeoffs_fixed, :'takeoffs fixed' column_alias :takeoffs_rcp, :'takeoffs rcp' column_alias :time_1, :'time 1' column_alias :time_2, :'time 2' column_alias :touch_go, :'touch go' column_alias :tracking, :'tracking' column_alias :tracking_fixed, :'tracking fixed' column_alias :training, :'training' column_alias :training_act, :'training act.' column_alias :training_fixed, :'training fixed' column_alias :training_simulator, :'training simulator' column_alias :trip_leg_kid_comm, :'trip leg kid - comm' column_alias :trip_leg_kid_date, :'trip leg kid - date' column_alias :trip_leg_kid_mult, :'trip leg kid - mult' column_alias :trip_leg_kid_time, :'trip leg kid - time' column_alias :trip_leg_kid_user, :'trip leg kid - user' #### END GENERATED SECTION #### end