X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FSchema.pm;h=dfa33288dbef4345296a8cd56da8496e649d9353;hb=09d3b99715ac707d64b1a06d8a2432b76ddb173d;hp=ba8dcdeaed7ed91ab8065970618811079abeb90a;hpb=f7cbd3b930667f32e8b7413a22b1cf8b2d7cbd81;p=freeside.git diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index ba8dcdeae..dfa33288d 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -1274,6 +1274,7 @@ sub tables_hashref { 'custom', 'char', 'NULL', 1, '', '', 'taxclass', 'varchar', 'NULL', $char_d, '', '', 'classnum', 'int', 'NULL', '', '', '', + 'addon_classnum','int', 'NULL', '', '', '', 'taxproductnum', 'int', 'NULL', '', '', '', 'setup_cost', @money_typen, '', '', 'recur_cost', @money_typen, '', '', @@ -1284,7 +1285,9 @@ sub tables_hashref { ], 'primary_key' => 'pkgpart', 'unique' => [], - 'index' => [ [ 'promo_code' ], [ 'disabled' ], [ 'agentnum' ], ], + 'index' => [ [ 'promo_code' ], [ 'disabled' ], [ 'classnum' ], + [ 'agentnum' ], + ], }, 'part_pkg_link' => { @@ -2149,6 +2152,8 @@ sub tables_hashref { ### # fields for unitel/RSLCOM/convergent that don't map well to asterisk # defaults + # though these are now used elsewhere: + # charged_party, upstream_price, rated_price, carrierid ### #cdr_type: Usage = 1, S&E = 7, OC&C = 8 @@ -2191,19 +2196,35 @@ sub tables_hashref { #NULL, done (or something) 'freesiderewritestatus', 'varchar', 'NULL', 32, '', '', + #an indexed place to put big numbers + 'cdrid', 'bigint', 'NULL', '', '', '', + + #i should become a table 'cdrbatch', 'varchar', 'NULL', 255, '', '', + #'cdrbatchnum', 'int', 'NULL', '', '', '', ], 'primary_key' => 'acctid', 'unique' => [], 'index' => [ [ 'calldate' ], [ 'src' ], [ 'dst' ], [ 'dcontext' ], [ 'charged_party' ], - [ 'accountcode' ], [ 'carrierid' ], + [ 'accountcode' ], [ 'carrierid' ], [ 'cdrid' ], [ 'freesidestatus' ], [ 'freesiderewritestatus' ], [ 'cdrbatch' ], ], }, + #'cdr_batch' => { + # 'columns' => [ + # 'cdrbatchnum', 'serial', '', '', '', '', + # 'cdrbatch', 'varchar', 'NULL', 255, '', '', + # '_date', @date_type, '', '', + # ], + # 'primary_key' => 'cdrbatchnum', + # 'unique' => [ [ 'cdrbatch' ] ], + # 'index' => [], + #}, + 'cdr_termination' => { 'columns' => [ 'cdrtermnum', 'bigserial', '', '', '', '',