e914a6449650302c8de2012fc0282d741620d87e
[kivitendo-erp.git] / SL / DB / MetaSetup / PeriodicInvoicesConfig.pm
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;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('periodic_invoices_configs');
10
11 __PACKAGE__->meta->columns(
12   active                  => { type => 'boolean', default => 'true' },
13   ar_chart_id             => { type => 'integer', not_null => 1 },
14   copies                  => { type => 'integer' },
15   end_date                => { type => 'date' },
16   extend_automatically_by => { type => 'integer' },
17   id                      => { type => 'integer', not_null => 1, sequence => 'id' },
18   oe_id                   => { type => 'integer', not_null => 1 },
19   periodicity             => { type => 'varchar', length => 10, not_null => 1 },
20   print                   => { type => 'boolean', default => 'false' },
21   printer_id              => { type => 'integer' },
22   start_date              => { type => 'date' },
23   terminated              => { type => 'boolean', default => 'false' },
24 );
25
26 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
27
28 __PACKAGE__->meta->foreign_keys(
29   ar_chart => {
30     class       => 'SL::DB::Chart',
31     key_columns => { ar_chart_id => 'id' },
32   },
33
34   order => {
35     class       => 'SL::DB::Order',
36     key_columns => { oe_id => 'id' },
37   },
38
39   printer => {
40     class       => 'SL::DB::Printer',
41     key_columns => { printer_id => 'id' },
42   },
43 );
44
45 1;
46 ;