kivitendo/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm @ 2d7e4203
250fa402 | Moritz Bunkus | # This file has been auto-generated. Do not modify it; it will be overwritten
|
||
# by rose_auto_create_model.pl automatically.
|
||||
package SL::DB::PeriodicInvoicesConfig;
|
||||
use strict;
|
||||
use base qw(SL::DB::Object);
|
||||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->table('periodic_invoices_configs');
|
||
__PACKAGE__->meta->columns(
|
||||
id => { type => 'integer', not_null => 1, sequence => 'id' },
|
||||
oe_id => { type => 'integer', not_null => 1 },
|
||||
periodicity => { type => 'varchar', length => 10, not_null => 1 },
|
||||
print => { type => 'boolean', default => 'false' },
|
||||
printer_id => { type => 'integer' },
|
||||
copies => { type => 'integer' },
|
||||
active => { type => 'boolean', default => 'true' },
|
||||
terminated => { type => 'boolean', default => 'false' },
|
||||
start_date => { type => 'date' },
|
||||
end_date => { type => 'date' },
|
||||
ar_chart_id => { type => 'integer', not_null => 1 },
|
||||
extend_automatically_by => { type => 'integer' },
|
||||
250fa402 | Moritz Bunkus | );
|
||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->primary_key_columns([ 'id' ]);
|
||
__PACKAGE__->meta->foreign_keys(
|
||||
ar_chart => {
|
||||
class => 'SL::DB::Chart',
|
||||
key_columns => { ar_chart_id => 'id' },
|
||||
},
|
||||
oe => {
|
||||
class => 'SL::DB::Order',
|
||||
key_columns => { oe_id => 'id' },
|
||||
},
|
||||
);
|
||||
__PACKAGE__->meta->relationships(
|
||||
ars => {
|
||||
map_class => 'SL::DB::PeriodicInvoice',
|
||||
map_from => 'config',
|
||||
map_to => 'ar',
|
||||
type => 'many to many',
|
||||
},
|
||||
);
|
||||
# __PACKAGE__->meta->initialize;
|
||||
250fa402 | Moritz Bunkus | 1;
|
||
;
|