1 # This file has been auto-generated. Do not modify it; it will be overwritten
2 # by rose_auto_create_model.pl automatically.
3 package SL::DB::PeriodicInvoicesConfig;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('periodic_invoices_configs');
11 __PACKAGE__->meta->columns(
12 active => { type => 'boolean', default => 'true' },
13 ar_chart_id => { type => 'integer', not_null => 1 },
14 copies => { type => 'integer' },
15 direct_debit => { type => 'boolean', default => 'false', not_null => 1 },
16 email_body => { type => 'text' },
17 email_recipient_address => { type => 'text' },
18 email_recipient_contact_id => { type => 'integer' },
19 email_sender => { type => 'text' },
20 email_subject => { type => 'text' },
21 end_date => { type => 'date' },
22 extend_automatically_by => { type => 'integer' },
23 first_billing_date => { type => 'date' },
24 id => { type => 'integer', not_null => 1, sequence => 'id' },
25 oe_id => { type => 'integer', not_null => 1 },
26 order_value_periodicity => { type => 'varchar', length => 1, not_null => 1 },
27 periodicity => { type => 'varchar', length => 1, not_null => 1 },
28 print => { type => 'boolean', default => 'false' },
29 printer_id => { type => 'integer' },
30 send_email => { type => 'boolean', default => 'false', not_null => 1 },
31 start_date => { type => 'date' },
32 terminated => { type => 'boolean', default => 'false' },
35 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
37 __PACKAGE__->meta->foreign_keys(
39 class => 'SL::DB::Chart',
40 key_columns => { ar_chart_id => 'id' },
43 email_recipient_contact => {
44 class => 'SL::DB::Contact',
45 key_columns => { email_recipient_contact_id => 'cp_id' },
49 class => 'SL::DB::Order',
50 key_columns => { oe_id => 'id' },
54 class => 'SL::DB::Printer',
55 key_columns => { printer_id => 'id' },