sub tables_hashref {
- my($char_d) = 80; #default maxlength for text fields
+ my $char_d = 80; #default maxlength for text fields
#my(@date_type) = ( 'timestamp', '', '' );
- my(@date_type) = ( 'int', 'NULL', '' );
- my(@perl_type) = ( 'text', 'NULL', '' );
+ my @date_type = ( 'int', 'NULL', '' );
+ my @perl_type = ( 'text', 'NULL', '' );
my @money_type = ( 'decimal', '', '10,2' );
+ my $username_len = 32; #usernamemax config file
+
return {
'agent' => {
'disabled', 'char', 'NULL', 1,
'username', 'varchar', 'NULL', $char_d,
'_password','varchar', 'NULL', $char_d,
+ 'ticketing_queueid', 'int', 'NULL', '',
],
'primary_key' => 'agentnum',
'unique' => [],
],
'primary_key' => 'pkgnum',
'unique' => [],
- 'index' => [ ['custnum'] ],
+ 'index' => [ ['custnum'], ['pkgpart'] ],
},
'cust_refund' => {
],
'primary_key' => 'ratedetailnum',
'unique' => [ [ 'ratenum', 'orig_regionnum', 'dest_regionnum' ] ],
- 'index' => [],
+ 'index' => [ [ 'ratenum', 'dest_regionnum' ] ],
},
'rate_region' => {