fax => { type => 'varchar', length => 30 },
greeting => { type => 'text' },
homepage => { type => 'text' },
- hourly_rate => { type => 'numeric', precision => 2, scale => 8 },
+ hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
iban => { type => 'varchar', length => 100 },
id => { type => 'integer', not_null => 1, sequence => 'id' },
itime => { type => 'timestamp', default => 'now()' },
coa => { type => 'text' },
company => { type => 'text' },
currency_id => { type => 'integer', not_null => 1 },
- customer_hourly_rate => { type => 'numeric', precision => 2, scale => 8 },
+ customer_hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
customernumber => { type => 'text' },
datev_check_on_ap_transaction => { type => 'boolean', default => 'true' },
datev_check_on_ar_transaction => { type => 'boolean', default => 'true' },
__PACKAGE__->meta->columns(
active => { type => 'boolean', default => 'true' },
billable_customer_id => { type => 'integer' },
- budget_cost => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 },
+ budget_cost => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
budget_minutes => { type => 'integer', default => '0', not_null => 1 },
customer_id => { type => 'integer' },
description => { type => 'text' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
- order_value => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 },
+ order_value => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
project_status_id => { type => 'integer', not_null => 1 },
project_type_id => { type => 'integer', not_null => 1 },
projectnumber => { type => 'text' },
__PACKAGE__->meta->table('project_participants');
__PACKAGE__->meta->columns(
- cost_per_hour => { type => 'numeric', precision => 5, scale => 15 },
+ cost_per_hour => { type => 'numeric', precision => 15, scale => 5 },
employee_id => { type => 'integer', not_null => 1 },
id => { type => 'serial', not_null => 1 },
itime => { type => 'timestamp', default => 'now()' },
__PACKAGE__->meta->table('project_phases');
__PACKAGE__->meta->columns(
- budget_cost => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 },
+ budget_cost => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
budget_minutes => { type => 'integer', default => '0', not_null => 1 },
description => { type => 'text', not_null => 1 },
end_date => { type => 'date' },
- general_cost_per_hour => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 },
+ general_cost_per_hour => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
general_minutes => { type => 'integer', default => '0', not_null => 1 },
id => { type => 'serial', not_null => 1 },
itime => { type => 'timestamp', default => 'now()' },
__PACKAGE__->meta->table('project_phase_participants');
__PACKAGE__->meta->columns(
- cost_per_hour => { type => 'numeric', precision => 5, scale => 15 },
+ cost_per_hour => { type => 'numeric', precision => 15, scale => 5 },
employee_id => { type => 'integer', not_null => 1 },
id => { type => 'serial', not_null => 1 },
itime => { type => 'timestamp', default => 'now()' },
__PACKAGE__->meta->columns(
description => { type => 'text', not_null => 1 },
- id => { type => 'serial', not_null => 1 },
+ id => { type => 'integer', not_null => 1, sequence => 'project_status_id_seq' },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
name => { type => 'text', not_null => 1 },
__PACKAGE__->meta->columns(
customer_id => { type => 'integer' },
- hourly_rate => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 8 },
+ hourly_rate => { type => 'numeric', default => '0', not_null => 1, precision => 8, scale => 2 },
id => { type => 'serial', not_null => 1 },
is_template => { type => 'boolean', default => 'false' },
itime => { type => 'timestamp', default => 'now()' },
previous_section_number => { type => 'integer', not_null => 1 },
project_id => { type => 'integer' },
status_id => { type => 'integer' },
- time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 },
+ time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 12, scale => 2 },
title => { type => 'text', not_null => 1 },
type_id => { type => 'integer' },
working_copy_id => { type => 'integer' },
position => { type => 'integer', not_null => 1 },
requirement_spec_id => { type => 'integer', not_null => 1 },
risk_id => { type => 'integer' },
- time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 },
+ time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 12, scale => 2 },
title => { type => 'text' },
);