2016-10-01 04:25:33 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
//application details
|
|
|
|
|
$apps[$x]['name'] = 'Database Transactions';
|
|
|
|
|
$apps[$x]['uuid'] = 'de47783c-1caa-4b3e-9b51-ad6c9e69215c';
|
|
|
|
|
$apps[$x]['category'] = '';
|
|
|
|
|
$apps[$x]['subcategory'] = '';
|
|
|
|
|
$apps[$x]['version'] = '';
|
|
|
|
|
$apps[$x]['license'] = 'Mozilla Public License 1.1';
|
|
|
|
|
$apps[$x]['url'] = 'http://www.fusionpbx.com';
|
|
|
|
|
$apps[$x]['description']['en-us'] = '';
|
|
|
|
|
|
|
|
|
|
//permission details
|
2017-02-16 06:18:58 +01:00
|
|
|
$y=0;
|
2016-10-01 04:25:33 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = 'database_transaction_view';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
|
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'user';
|
|
|
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
|
|
|
$y++;
|
|
|
|
|
$apps[$x]['permissions'][$y]['name'] = 'database_transaction_add';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
|
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
|
|
|
$y++;
|
|
|
|
|
$apps[$x]['permissions'][$y]['name'] = 'database_transaction_edit';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
|
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
|
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'user';
|
|
|
|
|
$y++;
|
|
|
|
|
$apps[$x]['permissions'][$y]['name'] = 'database_transaction_delete';
|
|
|
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
|
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
|
|
|
$y++;
|
|
|
|
|
|
|
|
|
|
//schema details
|
2017-02-16 06:18:58 +01:00
|
|
|
$y=0;
|
|
|
|
|
$apps[$x]['db'][$y]['table']['name'] = "v_database_transactions";
|
|
|
|
|
$apps[$x]['db'][$y]['table']['parent'] = "";
|
|
|
|
|
$z=0;
|
2016-10-01 04:25:33 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'database_transaction_uuid';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_uuid';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'User transaction.';
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'app_name';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Application name.';
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'app_uuid';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Application ID';
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'transaction_code';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Transaction code.';
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'transaction_address';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'IP address of the user.';
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'transaction_type';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Type: insert, update, delete, select';
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'transaction_date';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'timestamp';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Transaction date.';
|
|
|
|
|
$z++;
|
2016-10-02 03:44:29 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'transaction_old';
|
2017-06-02 07:26:11 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'longtext';
|
2016-10-02 03:44:29 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Before the transaction.';
|
2016-10-01 04:25:33 +02:00
|
|
|
$z++;
|
2016-10-02 03:44:29 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'transaction_new';
|
2017-06-02 07:26:11 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'longtext';
|
2016-10-02 03:44:29 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'After the transaction.';
|
2016-10-01 04:25:33 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'transaction_result';
|
2017-06-02 07:26:11 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'longtext';
|
2016-10-01 04:25:33 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Result of the transaction.';
|
|
|
|
|
$z++;
|
|
|
|
|
|
2016-10-02 03:44:29 +02:00
|
|
|
?>
|