X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FTimeRecordingArticle.pm;fp=SL%2FDB%2FMetaSetup%2FTimeRecordingArticle.pm;h=5d7bd84122442622d56866389dde03296002787e;hp=0000000000000000000000000000000000000000;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/SL/DB/MetaSetup/TimeRecordingArticle.pm b/SL/DB/MetaSetup/TimeRecordingArticle.pm new file mode 100644 index 000000000..5d7bd8412 --- /dev/null +++ b/SL/DB/MetaSetup/TimeRecordingArticle.pm @@ -0,0 +1,30 @@ +# This file has been auto-generated. Do not modify it; it will be overwritten +# by rose_auto_create_model.pl automatically. +package SL::DB::TimeRecordingArticle; + +use strict; + +use parent qw(SL::DB::Object); + +__PACKAGE__->meta->table('time_recording_articles'); + +__PACKAGE__->meta->columns( + id => { type => 'serial', not_null => 1 }, + part_id => { type => 'integer', not_null => 1 }, + position => { type => 'integer', not_null => 1 }, +); + +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + +__PACKAGE__->meta->unique_keys([ 'part_id' ]); + +__PACKAGE__->meta->foreign_keys( + part => { + class => 'SL::DB::Part', + key_columns => { part_id => 'id' }, + rel_type => 'one to one', + }, +); + +1; +;