Datenbankupgradescript, Rose-Models für Wiederkehrende Rechnungen
[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->setup(
10   table   => 'periodic_invoices_configs',
11
12   columns => [
13     id          => { type => 'integer', not_null => 1, sequence => 'id' },
14     oe_id       => { type => 'integer', not_null => 1 },
15     periodicity => { type => 'varchar', length => 10, not_null => 1 },
16     print       => { type => 'boolean', default => 'false' },
17     printer_id  => { type => 'integer' },
18     copies      => { type => 'integer' },
19     active      => { type => 'boolean', default => 'true' },
20     start_date  => { type => 'date' },
21     ar_chart_id => { type => 'integer', not_null => 1 },
22   ],
23
24   primary_key_columns => [ 'id' ],
25
26   foreign_keys => [
27     ar_chart => {
28       class       => 'SL::DB::Chart',
29       key_columns => { ar_chart_id => 'id' },
30     },
31
32     oe => {
33       class       => 'SL::DB::Order',
34       key_columns => { oe_id => 'id' },
35     },
36
37     printer => {
38       class       => 'SL::DB::Printer',
39       key_columns => { printer_id => 'id' },
40     },
41   ],
42 );
43
44 1;
45 ;