X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FSchema.pm;h=e8b3309e2f670b4fd8d7aeba1858115b45adc83f;hb=71c4c439c4a5b414802802beabc8060986d4a065;hp=327c96c4aa340ca8210ab842ed81e3bcd40b55d2;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 327c96c4a..e8b3309e2 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -1428,11 +1428,12 @@ sub tables_hashref { 'manual_flag', 'char', 'NULL', 1, '', '', 'no_auto', 'char', 'NULL', 1, '', '', 'quantity', 'int', 'NULL', '', '', '', + 'agent_pkgid', 'int', 'NULL', '', '', '', ], 'primary_key' => 'pkgnum', 'unique' => [], 'index' => [ ['custnum'], ['pkgpart'], [ 'pkgbatch' ], [ 'locationnum' ], - [ 'usernum' ], + [ 'usernum' ], [ 'agent_pkgid' ], [ 'start_date' ], ['setup'], ['last_bill'], ['bill'], ['susp'], ['adjourn'], ['expire'], ['cancel'], ['change_date'], ['order_date'], @@ -3267,6 +3268,29 @@ sub tables_hashref { %{ tables_hashref_torrus() }, + # tables of ours for doing torrus virtual port combining + 'torrus_srvderive' => { + 'columns' => [ + 'derivenum', 'serial', '', '', '', '', + 'serviceid', 'varchar', '', 64, '', '', #srvexport / reportfields + #'func', 'varchar', '', $char_d, '', '', + ], + 'primary_key' => 'derivenum', + 'unique' => [ ['serviceid'] ], + 'index' => [], + }, + + 'torrus_srvderive_component' => { + 'columns' => [ + 'componentnum', 'serial', '', '', '', '', + 'derivenum', 'int', '', '', '', '', + 'serviceid', 'varchar', '', 64, '', '', #srvexport / reportfields + ], + 'primary_key' => 'componentnum', + 'unique' => [ [ 'derivenum', 'serviceid' ], ], + 'index' => [ [ 'derivenum', ], ], + }, + # name type nullability length default local