Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / SL / DB / MetaSetup / TimeRecordingArticle.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::TimeRecordingArticle;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('time_recording_articles');
10
11 __PACKAGE__->meta->columns(
12   id       => { type => 'serial', not_null => 1 },
13   part_id  => { type => 'integer', not_null => 1 },
14   position => { type => 'integer', not_null => 1 },
15 );
16
17 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
18
19 __PACKAGE__->meta->unique_keys([ 'part_id' ]);
20
21 __PACKAGE__->meta->foreign_keys(
22   part => {
23     class       => 'SL::DB::Part',
24     key_columns => { part_id => 'id' },
25     rel_type    => 'one to one',
26   },
27 );
28
29 1;
30 ;