4746572ddfd2454d4586bc8b75b75118d4a9f93e
[kivitendo-erp.git] / SL / DB / MetaSetup / SepaExportItem.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::SepaExportItem;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('sepa_export_items');
10
11 __PACKAGE__->meta->columns(
12   amount                   => { type => 'numeric', precision => 5, scale => 25 },
13   ap_id                    => { type => 'integer' },
14   ar_id                    => { type => 'integer' },
15   chart_id                 => { type => 'integer', not_null => 1 },
16   end_to_end_id            => { type => 'varchar', length => 35 },
17   executed                 => { type => 'boolean', default => 'false' },
18   execution_date           => { type => 'date' },
19   id                       => { type => 'integer', not_null => 1, sequence => 'id' },
20   our_bic                  => { type => 'varchar', length => 100 },
21   our_depositor            => { type => 'text' },
22   our_iban                 => { type => 'varchar', length => 100 },
23   reference                => { type => 'varchar', length => 35 },
24   requested_execution_date => { type => 'date' },
25   sepa_export_id           => { type => 'integer', not_null => 1 },
26   vc_bic                   => { type => 'varchar', length => 100 },
27   vc_depositor             => { type => 'text' },
28   vc_iban                  => { type => 'varchar', length => 100 },
29 );
30
31 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
32
33 __PACKAGE__->meta->foreign_keys(
34   ap => {
35     class       => 'SL::DB::PurchaseInvoice',
36     key_columns => { ap_id => 'id' },
37   },
38
39   ar => {
40     class       => 'SL::DB::Invoice',
41     key_columns => { ar_id => 'id' },
42   },
43
44   chart => {
45     class       => 'SL::DB::Chart',
46     key_columns => { chart_id => 'id' },
47   },
48
49   sepa_export => {
50     class       => 'SL::DB::SepaExport',
51     key_columns => { sepa_export_id => 'id' },
52   },
53 );
54
55 1;
56 ;