X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FSchema.pm;h=2eb8d37ff26691ef6f2451dbc9a085dfac1ea4df;hb=038df36a543789c14adce6bc0838dd257c26ab79;hp=d32e112c417ecdf007e5ee53efaba489e9854591;hpb=a912375a38058ff179a4d2cbfe80bc564e7d3e52;p=freeside.git diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index d32e112c4..2eb8d37ff 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -771,6 +771,8 @@ sub tables_hashref { 'credit_limit', @money_typen, '', '', 'archived', 'char', 'NULL', 1, '', '', 'email_csv_cdr', 'char', 'NULL', 1, '', '', + 'accountcode_cdr', 'char', 'NULL', 1, '', '', + 'billday', 'int', 'NULL', '', '', '', ], 'primary_key' => 'custnum', 'unique' => [ [ 'agentnum', 'agent_custid' ] ], @@ -1300,6 +1302,16 @@ sub tables_hashref { 'index' => [ ['batchnum'], ['invnum'], ['custnum'] ], }, + 'fcc477map' => { + 'columns' => [ + 'formkey', 'varchar', '', 255, '', '', + 'formvalue', 'text', 'NULL', '', '', '', + ], + 'primary_key' => 'formkey', + 'unique' => [], + 'index' => [], + }, + 'cust_pkg' => { 'columns' => [ 'pkgnum', 'serial', '', '', '', '', @@ -1327,14 +1339,15 @@ sub tables_hashref { 'no_auto', 'char', 'NULL', 1, '', '', 'quantity', 'int', 'NULL', '', '', '', 'agent_pkgid', 'int', 'NULL', '', '', '', + 'waive_setup', 'char', 'NULL', 1, '', '', ], 'primary_key' => 'pkgnum', 'unique' => [], 'index' => [ ['custnum'], ['pkgpart'], [ 'pkgbatch' ], [ 'locationnum' ], [ 'usernum' ], [ 'agent_pkgid' ], - [ 'start_date' ], ['setup'], ['last_bill'], ['bill'], - ['susp'], ['adjourn'], ['expire'], ['cancel'], - ['change_date'], ['order_date'], + ['order_date'], [ 'start_date' ], ['setup'], ['bill'], + ['last_bill'], ['susp'], ['adjourn'], ['cancel'], + ['expire'], ['contract_end'], ['change_date'], ['no_auto'], ], }, @@ -1416,6 +1429,7 @@ sub tables_hashref { 'percent', 'decimal', '', '', '', '', 'months', 'decimal', 'NULL', '', '', '', 'disabled', 'char', 'NULL', 1, '', '', + 'setup', 'char', 'NULL', 1, '', '', ], 'primary_key' => 'discountnum', 'unique' => [], @@ -1512,7 +1526,7 @@ sub tables_hashref { 'primary_key' => 'pkgpart', 'unique' => [], 'index' => [ [ 'promo_code' ], [ 'disabled' ], [ 'classnum' ], - [ 'agentnum' ], + [ 'agentnum' ], ['no_auto'], ], }, @@ -2529,7 +2543,7 @@ sub tables_hashref { 'disposition', 'varchar', '', 45, \"''", '', 'amaflags', 'int', '', '', 0, '', 'accountcode', 'varchar', '', 20, \"''", '', - 'uniqueid', 'varchar', '', $char_d, \"''", '', + 'uniqueid', 'varchar', '', 32, \"''", '', 'userfield', 'varchar', '', 255, \"''", '', 'max_callers', 'int', 'NULL', '', '', '', @@ -2538,7 +2552,7 @@ 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 + # charged_party, upstream_price, rated_price, carrierid, cdrtypenum ### #cdr_type: Usage = 1, S&E = 7, OC&C = 8 @@ -2584,10 +2598,14 @@ sub tables_hashref { #an indexed place to put big numbers 'cdrid', 'bigint', 'NULL', '', '', '', + #for taqua accountcode rewriting, for starters + 'sessionnum', 'int', 'NULL', '', '', '', + 'subscriber', 'varchar', 'NULL', $char_d, '', '', + #old - 'cdrbatch', 'varchar', 'NULL', 255, '', '', + 'cdrbatch', 'varchar', 'NULL', 255, '', '', #new - 'cdrbatchnum', 'int', 'NULL', '', '', '', + 'cdrbatchnum', 'int', 'NULL', '', '', '', ], 'primary_key' => 'acctid', @@ -2595,6 +2613,7 @@ sub tables_hashref { 'index' => [ [ 'calldate' ], [ 'src' ], [ 'dst' ], [ 'dcontext' ], [ 'charged_party' ], [ 'accountcode' ], [ 'carrierid' ], [ 'cdrid' ], + [ 'sessionnum' ], [ 'subscriber' ], [ 'freesidestatus' ], [ 'freesiderewritestatus' ], [ 'cdrbatch' ], [ 'cdrbatchnum' ], ], @@ -2842,7 +2861,7 @@ sub tables_hashref { 'name', 'varchar', 'NULL', $char_d, '', '', 'rate_center_abbrev', 'varchar', 'NULL', $char_d, '', '', 'latanum', 'int', 'NULL', '', '', '', - 'msa', 'varchar', 'NULL', $char_d, '', '', + 'msanum', 'int', 'NULL', '', '', '', 'ordernum', 'int', 'NULL', '', '', '', 'svcnum', 'int', 'NULL', '', '', '', 'availbatch', 'varchar', 'NULL', $char_d, '', '', @@ -2868,6 +2887,26 @@ sub tables_hashref { 'index' => [], }, + 'msa' => { + 'columns' => [ + 'msanum', 'int', '', '', '', '', + 'description', 'varchar', '', $char_d, '', '', + ], + 'primary_key' => 'msanum', + 'unique' => [], + 'index' => [], + }, + + 'rate_center' => { + 'columns' => [ + 'ratecenternum', 'serial', '', '', '', '', + 'description', 'varchar', '', $char_d, '', '', + ], + 'primary_key' => 'ratecenternum', + 'unique' => [], + 'index' => [], + }, + 'did_vendor' => { 'columns' => [ 'vendornum', 'serial', '', '', '', '', @@ -2882,10 +2921,10 @@ sub tables_hashref { 'columns' => [ 'orderitemnum', 'serial', '', '', '', '', 'ordernum', 'int', '', '', '', '', - 'msa', 'varchar', 'NULL', $char_d, '', '', + 'msanum', 'int', 'NULL', '', '', '', 'npa', 'int', 'NULL', '', '', '', 'latanum', 'int', 'NULL', '', '', '', - 'rate_center', 'varchar', 'NULL', $char_d, '', '', + 'ratecenternum', 'int', 'NULL', '', '', '', 'state', 'char', 'NULL', 2, '', '', 'quantity', 'int', '', '', '', '', ],