'_date', @date_type, '', '',
'status', 'varchar', '', $char_d, '', '',
'statustext', 'text', 'NULL', '', '', '',
+ 'no_action', 'char', 'NULL', 1, '', '',
],
'primary_key' => 'eventnum',
#no... there are retries now #'unique' => [ [ 'eventpart', 'invnum' ] ],
'unique' => [],
'index' => [ ['eventpart'], ['tablenum'], ['status'],
- ['statustext'], ['_date'],
+ ['statustext'], ['_date'], ['no_action'],
],
'foreign_keys' => [
{ columns => [ 'eventpart' ],
'gatewaynum', 'int', 'NULL', '', '', '', # payment_gateway FK
'processor', 'varchar', 'NULL', $char_d, '', '', # module name
'auth', 'varchar', 'NULL', 16, '', '', # CC auth number
- 'order_number','varchar', 'NULL', $char_d, '', '', # transaction number
+ 'order_number','varchar', 'NULL', 256, '', '', # transaction number
],
'primary_key' => 'paynum',
#i guess not now, with cust_pay_pending, if we actually make it here, we _do_ want to record it# 'unique' => [ [ 'payunique' ] ],
'gatewaynum', 'int', 'NULL', '', '', '', # payment_gateway FK
'processor', 'varchar', 'NULL', $char_d, '', '', # module name
'auth', 'varchar', 'NULL', 16, '', '', # CC auth number
- 'order_number','varchar', 'NULL', $char_d, '', '', # transaction number
+ 'order_number','varchar', 'NULL', 256, '', '', # transaction number
#void fields
'void_date', @date_type, '', '',
'refnum', 'serial', '', '', '', '',
'referral', 'varchar', '', $char_d, '', '',
'disabled', 'char', 'NULL', 1, '', '',
- 'agentnum', 'int', 'NULL', '', '', '',
+ 'agentnum', 'int', 'NULL', '', '', '',
+ 'title', 'varchar', 'NULL', $char_d, '', '',
],
'primary_key' => 'refnum',
- 'unique' => [],
+ 'unique' => [ ['agentnum', 'title'] ],
'index' => [ ['disabled'], ['agentnum'], ],
'foreign_keys' => [
{ columns => [ 'agentnum' ],
'unique' => [],
'index' => [ ['svcnum', 'transaction_id'] ],
'foreign_keys' => [
- { columns => [ 'svcnum' ],
- table => 'svc_acct', #'cust_svc',
- },
+ # problems w/deleted services, and as per below, this
+ # is our internal hack, not a customer-facing feature
+ #{ columns => [ 'svcnum' ],
+ # table => 'svc_acct', #'cust_svc',
+ #},
+
# 1. RT tables aren't part of our data structure, so
# we can't make sure Queue is created already
# 2. This is our internal hack for time tracking, not
],
},
+ 'export_cust_svc' => {
+ 'columns' => [
+ 'exportcustsvcnum', 'serial', '', '', '', '',
+ 'exportnum', 'int', '', '', '', '',
+ 'svcnum', 'int', '', '', '', '',
+ 'remoteid', 'varchar', '', 512, '', '',
+ ],
+ 'primary_key' => 'exportcustsvcnum',
+ 'unique' => [ [ 'exportnum', 'svcnum' ] ],
+ 'index' => [ [ 'exportnum', 'svcnum' ] ],
+ 'foreign_keys' => [
+ { columns => [ 'exportnum' ],
+ table => 'part_export',
+ },
+ { columns => [ 'svcnum' ],
+ table => 'cust_svc',
+ },
+ ],
+ },
+
'export_device' => {
'columns' => [
'exportdevicenum' => 'serial', '', '', '', '',
'freq_mhz', 'int', 'NULL', '', '', '',
'direction', 'int', 'NULL', '', '', '',
'width', 'int', 'NULL', '', '', '',
- #downtilt etc? rfpath has profile files for devices/antennas you upload?
'sector_range', 'decimal', 'NULL', '', '', '', #?
- ],
+ 'downtilt', 'decimal', 'NULL', '', '', '',
+ 'v_width', 'int', 'NULL', '', '', '',
+ 'margin', 'decimal', 'NULL', '', '', '',
+ 'image', 'blob', 'NULL', '', '', '',
+ 'west', 'decimal', 'NULL', '10,7', '', '',
+ 'east', 'decimal', 'NULL', '10,7', '', '',
+ 'south', 'decimal', 'NULL', '10,7', '', '',
+ 'north', 'decimal', 'NULL', '10,7', '', '',
+ ],
'primary_key' => 'sectornum',
'unique' => [ [ 'towernum', 'sectorname' ], [ 'ip_addr' ], ],
'index' => [ [ 'towernum' ] ],
'index' => [ ['usernum'], ['path'], ['_date'] ],
},
+ 'access_user_page_pref' => {
+ 'columns' => [
+ 'prefnum' => 'serial', '', '', '', '',
+ 'usernum' => 'int', '', '', '', '',
+ 'path' => 'text', '', '', '', '',
+ 'tablenum' => 'int', 'NULL', '', '', '',
+ '_date' => @date_type, '', '',
+ 'prefname' => 'varchar', '', $char_d, '', '',
+ 'prefvalue' => 'text', '', '', '', '',
+ ],
+ 'primary_key' => 'prefnum',
+ 'unique' => [ [ 'usernum', 'path', 'tablenum', 'prefname' ] ],
+ 'index' => [],
+ 'foreign_keys' => [
+ { columns => [ 'usernum' ],
+ table => 'access_user'
+ },
+ ],
+ },
+
'sched_item' => {
'columns' => [
'itemnum', 'serial', '', '', '', '',
],
},
+ 'webservice_log' => {
+ 'columns' => [
+ 'webservicelognum', 'serial', '', '', '', '', #big? hubrus
+ 'svcnum', 'int', 'NULL', '', '', '', #just in case
+ 'custnum', 'int', '', '', '', '',
+ 'method', 'varchar', '', $char_d, '', '',
+ 'quantity', 'int', '', '', '', '', #i.e. pages
+ '_date', @date_type, '', '',
+ 'status', 'varchar', 'NULL', $char_d, '', '',
+ 'rated_price', 'decimal', 'NULL', '10,2', '', '',
+ ],
+ 'primary_key' => 'webservicelognum',
+ 'unique' => [],
+ 'index' => [ ['custnum'], ['status'] ],
+ 'foreign_keys' => [
+ { columns => [ 'custnum' ],
+ table => 'cust_main',
+ },
+ #no FK on svcnum... we don't want to purge these on
+ # service deletion
+ ],
+ },
+
# name type nullability length default local
#'new_table' => {