74a3840700388ddf286c98faafd4fdd21a4512f5
[kivitendo-erp.git] / SL / DB / MetaSetup / TransferType.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::TransferType;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('transfer_type');
10
11 __PACKAGE__->meta->columns(
12   id          => { type => 'integer', not_null => 1, sequence => 'id' },
13   direction   => { type => 'varchar', length => 10, not_null => 1 },
14   description => { type => 'text' },
15   sortkey     => { type => 'integer' },
16   itime       => { type => 'timestamp', default => 'now()' },
17   mtime       => { type => 'timestamp' },
18 );
19
20 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
21
22 __PACKAGE__->meta->allow_inline_column_values(1);
23
24 __PACKAGE__->meta->relationships(
25   inventory => {
26     class      => 'SL::DB::Inventory',
27     column_map => { id => 'trans_type_id' },
28     type       => 'one to many',
29   },
30 );
31
32 # __PACKAGE__->meta->initialize;
33
34 1;
35 ;