kivitendo/SL/DB/MetaSetup/TaxKey.pm @ 1d1f3140
f97b0778 | Sven Schöling | # This file has been auto-generated. Do not modify it; it will be overwritten
|
||
# by rose_auto_create_model.pl automatically.
|
||||
package SL::DB::TaxKey;
|
||||
use strict;
|
||||
2ea07c13 | Sven Schöling | use parent qw(SL::DB::Object);
|
||
f97b0778 | Sven Schöling | |||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->table('taxkeys');
|
||
__PACKAGE__->meta->columns(
|
||||
chart_id => { type => 'integer', not_null => 1 },
|
||||
3eb3d1b1 | Moritz Bunkus | id => { type => 'integer', not_null => 1, sequence => 'id' },
|
||
b8b112a3 | Sven Schöling | pos_ustva => { type => 'integer' },
|
||
startdate => { type => 'date', not_null => 1 },
|
||||
3eb3d1b1 | Moritz Bunkus | tax_id => { type => 'integer', not_null => 1 },
|
||
taxkey_id => { type => 'integer', not_null => 1 },
|
||||
f97b0778 | Sven Schöling | );
|
||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->primary_key_columns([ 'id' ]);
|
||
__PACKAGE__->meta->unique_keys([ 'chart_id', 'startdate' ]);
|
||||
__PACKAGE__->meta->foreign_keys(
|
||||
chart => {
|
||||
class => 'SL::DB::Chart',
|
||||
key_columns => { chart_id => 'id' },
|
||||
},
|
||||
tax => {
|
||||
class => 'SL::DB::Tax',
|
||||
key_columns => { tax_id => 'id' },
|
||||
},
|
||||
);
|
||||
f97b0778 | Sven Schöling | 1;
|
||
;
|