a055c02ab1745aedf1ad59ed3551e18335543e82
[kivitendo-erp.git] / SL / DB / MetaSetup / Note.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::Note;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->setup(
10   table   => 'notes',
11
12   columns => [
13     id           => { type => 'integer', not_null => 1, sequence => 'note_id' },
14     subject      => { type => 'text' },
15     body         => { type => 'text' },
16     created_by   => { type => 'integer', not_null => 1 },
17     trans_id     => { type => 'integer' },
18     trans_module => { type => 'varchar', length => 10 },
19     itime        => { type => 'timestamp', default => 'now()' },
20     mtime        => { type => 'timestamp' },
21   ],
22
23   primary_key_columns => [ 'id' ],
24
25   allow_inline_column_values => 1,
26
27   foreign_keys => [
28     employee => {
29       class       => 'SL::DB::Employee',
30       key_columns => { created_by => 'id' },
31     },
32   ],
33 );
34
35 1;
36 ;