Projekt

Allgemein

Profil

Herunterladen (3,5 KB) Statistiken
| Zweig: | Markierung: | Revision:
82515b2d 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::Part;

use strict;

2ea07c13 Sven Schöling
use parent qw(SL::DB::Object);
82515b2d Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->table('parts');
82515b2d Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->columns(
3eb3d1b1 Moritz Bunkus
bin_id => { type => 'integer' },
b8b112a3 Sven Schöling
bom => { type => 'boolean', default => 'false' },
3eb3d1b1 Moritz Bunkus
buchungsgruppen_id => { type => 'integer' },
65d2537d Martin Helmling
classification_id => { type => 'integer', default => '0' },
3eb3d1b1 Moritz Bunkus
description => { type => 'text' },
b8b112a3 Sven Schöling
drawing => { type => 'text' },
3eb3d1b1 Moritz Bunkus
ean => { type => 'text' },
formel => { type => 'text' },
a3511b2d Moritz Bunkus
gv => { type => 'numeric', precision => 15, scale => 5 },
3eb3d1b1 Moritz Bunkus
has_sernumber => { type => 'boolean', default => 'false' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
image => { type => 'text' },
b8b112a3 Sven Schöling
itime => { type => 'timestamp', default => 'now()' },
a3511b2d Moritz Bunkus
lastcost => { type => 'numeric', precision => 15, scale => 5 },
listprice => { type => 'numeric', precision => 15, scale => 5 },
3eb3d1b1 Moritz Bunkus
makemodel => { type => 'boolean', default => 'false' },
microfiche => { type => 'text' },
b8b112a3 Sven Schöling
mtime => { type => 'timestamp' },
not_discountable => { type => 'boolean', default => 'false' },
3eb3d1b1 Moritz Bunkus
notes => { type => 'text' },
obsolete => { type => 'boolean', default => 'false' },
a3511b2d Moritz Bunkus
onhand => { type => 'numeric', default => '0', precision => 25, scale => 5 },
71041661 Geoffrey Richardson
part_type => { type => 'enum', check_in => [ 'part', 'service', 'assembly', 'assortment' ], db_type => 'part_type_enum', not_null => 1 },
3eb3d1b1 Moritz Bunkus
partnumber => { type => 'text', not_null => 1 },
partsgroup_id => { type => 'integer' },
b8b112a3 Sven Schöling
payment_id => { type => 'integer' },
price_factor_id => { type => 'integer' },
3eb3d1b1 Moritz Bunkus
priceupdate => { type => 'date', default => 'now' },
62f21410 Martin Helmling
rop => { type => 'float', precision => 4, scale => 4 },
a3511b2d Moritz Bunkus
sellprice => { type => 'numeric', precision => 15, scale => 5 },
3eb3d1b1 Moritz Bunkus
shop => { type => 'boolean', default => 'false' },
b8b112a3 Sven Schöling
stockable => { type => 'boolean', default => 'false' },
3eb3d1b1 Moritz Bunkus
unit => { type => 'varchar', length => 20, not_null => 1 },
ve => { type => 'integer' },
b8b112a3 Sven Schöling
warehouse_id => { type => 'integer' },
62f21410 Martin Helmling
weight => { type => 'float', precision => 4, scale => 4 },
b8b112a3 Sven Schöling
);
4fd22b56 Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
82c4717d Jan Büren
b8b112a3 Sven Schöling
__PACKAGE__->meta->unique_keys([ 'partnumber' ]);
968894aa Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->allow_inline_column_values(1);
4f15333b Moritz Bunkus
b8b112a3 Sven Schöling
__PACKAGE__->meta->foreign_keys(
bin => {
class => 'SL::DB::Bin',
key_columns => { bin_id => 'id' },
},
4f15333b Moritz Bunkus
b8b112a3 Sven Schöling
buchungsgruppen => {
class => 'SL::DB::Buchungsgruppe',
key_columns => { buchungsgruppen_id => 'id' },
},
4f15333b Moritz Bunkus
65d2537d Martin Helmling
classification => {
class => 'SL::DB::PartClassification',
key_columns => { classification_id => 'id' },
},

4bcf8804 Sven Schöling
partsgroup => {
class => 'SL::DB::PartsGroup',
key_columns => { partsgroup_id => 'id' },
},

payment => {
class => 'SL::DB::PaymentTerm',
key_columns => { payment_id => 'id' },
},

price_factor => {
class => 'SL::DB::PriceFactor',
key_columns => { price_factor_id => 'id' },
},

b8b112a3 Sven Schöling
unit_obj => {
class => 'SL::DB::Unit',
key_columns => { unit => 'name' },
},
82c4717d Jan Büren
b8b112a3 Sven Schöling
warehouse => {
class => 'SL::DB::Warehouse',
key_columns => { warehouse_id => 'id' },
},
82515b2d Sven Schöling
);

1;
;