Projekt

Allgemein

Profil

Herunterladen (3,42 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;

use base qw(SL::DB::Object);

b8b112a3 Sven Schöling
__PACKAGE__->meta->table('parts');
82515b2d Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->columns(
alternate => { type => 'boolean', default => 'false' },
3eb3d1b1 Moritz Bunkus
assembly => { type => 'boolean', default => 'false' },
bin_id => { type => 'integer' },
b8b112a3 Sven Schöling
bom => { type => 'boolean', default => 'false' },
3eb3d1b1 Moritz Bunkus
buchungsgruppen_id => { type => 'integer' },
description => { type => 'text' },
b8b112a3 Sven Schöling
drawing => { type => 'text' },
3eb3d1b1 Moritz Bunkus
ean => { type => 'text' },
expense_accno_id => { type => 'integer' },
formel => { type => 'text' },
b8b112a3 Sven Schöling
gv => { type => 'numeric', precision => 5, scale => 15 },
3eb3d1b1 Moritz Bunkus
has_sernumber => { type => 'boolean', default => 'false' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
image => { type => 'text' },
income_accno_id => { type => 'integer' },
inventory_accno_id => { type => 'integer' },
b8b112a3 Sven Schöling
itime => { type => 'timestamp', default => 'now()' },
3eb3d1b1 Moritz Bunkus
lastcost => { type => 'numeric', precision => 5, scale => 15 },
listprice => { type => 'numeric', precision => 5, scale => 15 },
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' },
onhand => { type => 'numeric', default => '0', precision => 5, scale => 25 },
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' },
rop => { type => 'float', precision => 4 },
sellprice => { type => 'numeric', precision => 5, scale => 15 },
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' },
3eb3d1b1 Moritz Bunkus
weight => { type => 'float', precision => 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
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;
;