__PACKAGE__->meta->allow_inline_column_values(1);
__PACKAGE__->meta->foreign_keys(
- created_for => {
+ created_by => {
class => 'SL::DB::Employee',
- key_columns => { created_for_user => 'id' },
+ key_columns => { created_by => 'id' },
},
- employee => {
+ created_for => {
class => 'SL::DB::Employee',
- key_columns => { created_by => 'id' },
+ key_columns => { created_for_user => 'id' },
},
note => {
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
__PACKAGE__->meta->foreign_keys(
- employee => {
+ to_follow_ups_by => {
class => 'SL::DB::Employee',
key_columns => { what => 'id' },
},
- employee_obj => {
+ with_access => {
class => 'SL::DB::Employee',
key_columns => { who => 'id' },
},
orderitems => { parts_id => 'part', trans_id => 'order', },
delivery_order_items => { parts_id => 'part' },
invoice => { parts_id => 'part' },
- follow_ups => { created_for_user => 'created_for', created_by => 'employee', },
+ follow_ups => { created_for_user => 'created_for', created_by => 'created_by', },
+ follow_up_access => { who => 'with_access', what => 'to_follow_ups_by', },
periodic_invoices_configs => { oe_id => 'order' },
},