diff --git a/database/seeds/CurrenciesSeeder.php b/database/seeds/CurrenciesSeeder.php index a66d72c297e8..161a53cf0616 100644 --- a/database/seeds/CurrenciesSeeder.php +++ b/database/seeds/CurrenciesSeeder.php @@ -75,6 +75,7 @@ class CurrenciesSeeder extends Seeder ['name' => 'Icelandic Króna', 'code' => 'ISK', 'symbol' => 'kr', 'precision' => '2', 'thousand_separator' => '.', 'decimal_separator' => ',', 'swap_currency_symbol' => true], ['name' => 'Papua New Guinean Kina', 'code' => 'PGK', 'symbol' => 'K', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['name' => 'Jordanian Dinar', 'code' => 'JOD', 'symbol' => '', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], + ['name' => 'Myanmar Kyat', 'code' => 'MMK', 'symbol' => 'K', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ]; foreach ($currencies as $currency) { diff --git a/database/setup.sql b/database/setup.sql index cbcc9367126c..67538f103cd9 100644 --- a/database/setup.sql +++ b/database/setup.sql @@ -843,7 +843,7 @@ CREATE TABLE `currencies` ( `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `swap_currency_symbol` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -852,7 +852,7 @@ CREATE TABLE `currencies` ( LOCK TABLES `currencies` WRITE; /*!40000 ALTER TABLE `currencies` DISABLE KEYS */; -INSERT INTO `currencies` VALUES (1,'US Dollar','$','2',',','.','USD',0),(2,'British Pound','£','2',',','.','GBP',0),(3,'Euro','€','2','.',',','EUR',0),(4,'South African Rand','R','2','.',',','ZAR',0),(5,'Danish Krone','kr','2','.',',','DKK',1),(6,'Israeli Shekel','NIS ','2',',','.','ILS',0),(7,'Swedish Krona','kr','2','.',',','SEK',1),(8,'Kenyan Shilling','KSh ','2',',','.','KES',0),(9,'Canadian Dollar','C$','2',',','.','CAD',0),(10,'Philippine Peso','P ','2',',','.','PHP',0),(11,'Indian Rupee','Rs. ','2',',','.','INR',0),(12,'Australian Dollar','$','2',',','.','AUD',0),(13,'Singapore Dollar','','2',',','.','SGD',0),(14,'Norske Kroner','kr','2','.',',','NOK',1),(15,'New Zealand Dollar','$','2',',','.','NZD',0),(16,'Vietnamese Dong','','0','.',',','VND',0),(17,'Swiss Franc','','2','\'','.','CHF',0),(18,'Guatemalan Quetzal','Q','2',',','.','GTQ',0),(19,'Malaysian Ringgit','RM','2',',','.','MYR',0),(20,'Brazilian Real','R$','2','.',',','BRL',0),(21,'Thai Baht','','2',',','.','THB',0),(22,'Nigerian Naira','','2',',','.','NGN',0),(23,'Argentine Peso','$','2','.',',','ARS',0),(24,'Bangladeshi Taka','Tk','2',',','.','BDT',0),(25,'United Arab Emirates Dirham','DH ','2',',','.','AED',0),(26,'Hong Kong Dollar','','2',',','.','HKD',0),(27,'Indonesian Rupiah','Rp','2',',','.','IDR',0),(28,'Mexican Peso','$','2',',','.','MXN',0),(29,'Egyptian Pound','E£','2',',','.','EGP',0),(30,'Colombian Peso','$','2','.',',','COP',0),(31,'West African Franc','CFA ','2',',','.','XOF',0),(32,'Chinese Renminbi','RMB ','2',',','.','CNY',0),(33,'Rwandan Franc','RF ','2',',','.','RWF',0),(34,'Tanzanian Shilling','TSh ','2',',','.','TZS',0),(35,'Netherlands Antillean Guilder','','2','.',',','ANG',0),(36,'Trinidad and Tobago Dollar','TT$','2',',','.','TTD',0),(37,'East Caribbean Dollar','EC$','2',',','.','XCD',0),(38,'Ghanaian Cedi','','2',',','.','GHS',0),(39,'Bulgarian Lev','','2',' ','.','BGN',0),(40,'Aruban Florin','Afl. ','2',' ','.','AWG',0),(41,'Turkish Lira','TL ','2','.',',','TRY',0),(42,'Romanian New Leu','','2',',','.','RON',0),(43,'Croatian Kuna','kn','2','.',',','HRK',0),(44,'Saudi Riyal','','2',',','.','SAR',0),(45,'Japanese Yen','¥','0',',','.','JPY',0),(46,'Maldivian Rufiyaa','','2',',','.','MVR',0),(47,'Costa Rican Colón','','2',',','.','CRC',0),(48,'Pakistani Rupee','Rs ','0',',','.','PKR',0),(49,'Polish Zloty','zł','2',' ',',','PLN',1),(50,'Sri Lankan Rupee','LKR','2',',','.','LKR',1),(51,'Czech Koruna','Kč','2',' ',',','CZK',1),(52,'Uruguayan Peso','$','2','.',',','UYU',0),(53,'Namibian Dollar','$','2',',','.','NAD',0),(54,'Tunisian Dinar','','2',',','.','TND',0),(55,'Russian Ruble','','2',',','.','RUB',0),(56,'Mozambican Metical','MT','2','.',',','MZN',1),(57,'Omani Rial','','2',',','.','OMR',0),(58,'Ukrainian Hryvnia','','2',',','.','UAH',0),(59,'Macanese Pataca','MOP$','2',',','.','MOP',0),(60,'Taiwan New Dollar','NT$','2',',','.','TWD',0),(61,'Dominican Peso','RD$','2',',','.','DOP',0),(62,'Chilean Peso','$','2','.',',','CLP',0),(63,'Icelandic Króna','kr','2','.',',','ISK',1),(64,'Papua New Guinean Kina','K','2',',','.','PGK',0),(65,'Jordanian Dinar','','2',',','.','JOD',0); +INSERT INTO `currencies` VALUES (1,'US Dollar','$','2',',','.','USD',0),(2,'British Pound','£','2',',','.','GBP',0),(3,'Euro','€','2','.',',','EUR',0),(4,'South African Rand','R','2','.',',','ZAR',0),(5,'Danish Krone','kr','2','.',',','DKK',1),(6,'Israeli Shekel','NIS ','2',',','.','ILS',0),(7,'Swedish Krona','kr','2','.',',','SEK',1),(8,'Kenyan Shilling','KSh ','2',',','.','KES',0),(9,'Canadian Dollar','C$','2',',','.','CAD',0),(10,'Philippine Peso','P ','2',',','.','PHP',0),(11,'Indian Rupee','Rs. ','2',',','.','INR',0),(12,'Australian Dollar','$','2',',','.','AUD',0),(13,'Singapore Dollar','','2',',','.','SGD',0),(14,'Norske Kroner','kr','2','.',',','NOK',1),(15,'New Zealand Dollar','$','2',',','.','NZD',0),(16,'Vietnamese Dong','','0','.',',','VND',0),(17,'Swiss Franc','','2','\'','.','CHF',0),(18,'Guatemalan Quetzal','Q','2',',','.','GTQ',0),(19,'Malaysian Ringgit','RM','2',',','.','MYR',0),(20,'Brazilian Real','R$','2','.',',','BRL',0),(21,'Thai Baht','','2',',','.','THB',0),(22,'Nigerian Naira','','2',',','.','NGN',0),(23,'Argentine Peso','$','2','.',',','ARS',0),(24,'Bangladeshi Taka','Tk','2',',','.','BDT',0),(25,'United Arab Emirates Dirham','DH ','2',',','.','AED',0),(26,'Hong Kong Dollar','','2',',','.','HKD',0),(27,'Indonesian Rupiah','Rp','2',',','.','IDR',0),(28,'Mexican Peso','$','2',',','.','MXN',0),(29,'Egyptian Pound','E£','2',',','.','EGP',0),(30,'Colombian Peso','$','2','.',',','COP',0),(31,'West African Franc','CFA ','2',',','.','XOF',0),(32,'Chinese Renminbi','RMB ','2',',','.','CNY',0),(33,'Rwandan Franc','RF ','2',',','.','RWF',0),(34,'Tanzanian Shilling','TSh ','2',',','.','TZS',0),(35,'Netherlands Antillean Guilder','','2','.',',','ANG',0),(36,'Trinidad and Tobago Dollar','TT$','2',',','.','TTD',0),(37,'East Caribbean Dollar','EC$','2',',','.','XCD',0),(38,'Ghanaian Cedi','','2',',','.','GHS',0),(39,'Bulgarian Lev','','2',' ','.','BGN',0),(40,'Aruban Florin','Afl. ','2',' ','.','AWG',0),(41,'Turkish Lira','TL ','2','.',',','TRY',0),(42,'Romanian New Leu','','2',',','.','RON',0),(43,'Croatian Kuna','kn','2','.',',','HRK',0),(44,'Saudi Riyal','','2',',','.','SAR',0),(45,'Japanese Yen','¥','0',',','.','JPY',0),(46,'Maldivian Rufiyaa','','2',',','.','MVR',0),(47,'Costa Rican Colón','','2',',','.','CRC',0),(48,'Pakistani Rupee','Rs ','0',',','.','PKR',0),(49,'Polish Zloty','zł','2',' ',',','PLN',1),(50,'Sri Lankan Rupee','LKR','2',',','.','LKR',1),(51,'Czech Koruna','Kč','2',' ',',','CZK',1),(52,'Uruguayan Peso','$','2','.',',','UYU',0),(53,'Namibian Dollar','$','2',',','.','NAD',0),(54,'Tunisian Dinar','','2',',','.','TND',0),(55,'Russian Ruble','','2',',','.','RUB',0),(56,'Mozambican Metical','MT','2','.',',','MZN',1),(57,'Omani Rial','','2',',','.','OMR',0),(58,'Ukrainian Hryvnia','','2',',','.','UAH',0),(59,'Macanese Pataca','MOP$','2',',','.','MOP',0),(60,'Taiwan New Dollar','NT$','2',',','.','TWD',0),(61,'Dominican Peso','RD$','2',',','.','DOP',0),(62,'Chilean Peso','$','2','.',',','CLP',0),(63,'Icelandic Króna','kr','2','.',',','ISK',1),(64,'Papua New Guinean Kina','K','2',',','.','PGK',0),(65,'Jordanian Dinar','','2',',','.','JOD',0),(66,'Myanmar Kyat','K','2',',','.','MMK',0); /*!40000 ALTER TABLE `currencies` ENABLE KEYS */; UNLOCK TABLES; @@ -1051,6 +1051,7 @@ CREATE TABLE `expenses` ( `payment_date` date DEFAULT NULL, `transaction_reference` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `invoice_documents` tinyint(1) NOT NULL DEFAULT '1', + `recurring_expense_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `expenses_account_id_public_id_unique` (`account_id`,`public_id`), KEY `expenses_user_id_foreign` (`user_id`), @@ -1218,7 +1219,7 @@ CREATE TABLE `gateways` ( LOCK TABLES `gateways` WRITE; /*!40000 ALTER TABLE `gateways` DISABLE KEYS */; -INSERT INTO `gateways` VALUES (1,'2017-06-20 15:29:46','2017-06-20 15:29:46','Authorize.Net AIM','AuthorizeNet_AIM',1,1,4,0,NULL,0,0),(2,'2017-06-20 15:29:46','2017-06-20 15:29:46','Authorize.Net SIM','AuthorizeNet_SIM',1,2,10000,0,NULL,0,0),(3,'2017-06-20 15:29:46','2017-06-20 15:29:46','CardSave','CardSave',1,1,10000,0,NULL,0,0),(4,'2017-06-20 15:29:46','2017-06-20 15:29:46','Eway Rapid','Eway_RapidShared',1,1,10000,0,NULL,1,0),(5,'2017-06-20 15:29:46','2017-06-20 15:29:46','FirstData Connect','FirstData_Connect',1,1,10000,0,NULL,0,0),(6,'2017-06-20 15:29:46','2017-06-20 15:29:46','GoCardless','GoCardless',1,1,10000,0,NULL,1,0),(7,'2017-06-20 15:29:46','2017-06-20 15:29:46','Migs ThreeParty','Migs_ThreeParty',1,1,10000,0,NULL,0,0),(8,'2017-06-20 15:29:46','2017-06-20 15:29:46','Migs TwoParty','Migs_TwoParty',1,1,10000,0,NULL,0,0),(9,'2017-06-20 15:29:46','2017-06-20 15:29:46','Mollie','Mollie',1,1,7,0,NULL,1,0),(10,'2017-06-20 15:29:46','2017-06-20 15:29:46','MultiSafepay','MultiSafepay',1,1,10000,0,NULL,0,0),(11,'2017-06-20 15:29:46','2017-06-20 15:29:46','Netaxept','Netaxept',1,1,10000,0,NULL,0,0),(12,'2017-06-20 15:29:46','2017-06-20 15:29:46','NetBanx','NetBanx',1,1,10000,0,NULL,0,0),(13,'2017-06-20 15:29:46','2017-06-20 15:29:46','PayFast','PayFast',1,1,10000,0,NULL,1,0),(14,'2017-06-20 15:29:46','2017-06-20 15:29:46','Payflow Pro','Payflow_Pro',1,1,10000,0,NULL,0,0),(15,'2017-06-20 15:29:46','2017-06-20 15:29:46','PaymentExpress PxPay','PaymentExpress_PxPay',1,1,10000,0,NULL,0,0),(16,'2017-06-20 15:29:46','2017-06-20 15:29:46','PaymentExpress PxPost','PaymentExpress_PxPost',1,1,10000,0,NULL,0,0),(17,'2017-06-20 15:29:46','2017-06-20 15:29:46','PayPal Express','PayPal_Express',1,1,3,0,NULL,1,0),(18,'2017-06-20 15:29:46','2017-06-20 15:29:46','PayPal Pro','PayPal_Pro',1,1,10000,0,NULL,0,0),(19,'2017-06-20 15:29:46','2017-06-20 15:29:46','Pin','Pin',1,1,10000,0,NULL,0,0),(20,'2017-06-20 15:29:46','2017-06-20 15:29:46','SagePay Direct','SagePay_Direct',1,1,10000,0,NULL,0,0),(21,'2017-06-20 15:29:46','2017-06-20 15:29:46','SagePay Server','SagePay_Server',1,1,10000,0,NULL,0,0),(22,'2017-06-20 15:29:46','2017-06-20 15:29:46','SecurePay DirectPost','SecurePay_DirectPost',1,1,10000,0,NULL,0,0),(23,'2017-06-20 15:29:46','2017-06-20 15:29:46','Stripe','Stripe',1,1,1,0,NULL,0,0),(24,'2017-06-20 15:29:46','2017-06-20 15:29:46','TargetPay Direct eBanking','TargetPay_Directebanking',1,1,10000,0,NULL,0,0),(25,'2017-06-20 15:29:46','2017-06-20 15:29:46','TargetPay Ideal','TargetPay_Ideal',1,1,10000,0,NULL,0,0),(26,'2017-06-20 15:29:46','2017-06-20 15:29:46','TargetPay Mr Cash','TargetPay_Mrcash',1,1,10000,0,NULL,0,0),(27,'2017-06-20 15:29:46','2017-06-20 15:29:46','TwoCheckout','TwoCheckout',1,1,10000,0,NULL,1,0),(28,'2017-06-20 15:29:46','2017-06-20 15:29:46','WorldPay','WorldPay',1,1,10000,0,NULL,0,0),(29,'2017-06-20 15:29:46','2017-06-20 15:29:46','BeanStream','BeanStream',1,2,10000,0,NULL,0,0),(30,'2017-06-20 15:29:46','2017-06-20 15:29:46','Psigate','Psigate',1,2,10000,0,NULL,0,0),(31,'2017-06-20 15:29:46','2017-06-20 15:29:46','moolah','AuthorizeNet_AIM',1,1,10000,0,NULL,0,0),(32,'2017-06-20 15:29:46','2017-06-20 15:29:46','Alipay','Alipay_Express',1,1,10000,0,NULL,0,0),(33,'2017-06-20 15:29:46','2017-06-20 15:29:46','Buckaroo','Buckaroo_CreditCard',1,1,10000,0,NULL,0,0),(34,'2017-06-20 15:29:46','2017-06-20 15:29:46','Coinbase','Coinbase',1,1,10000,0,NULL,0,0),(35,'2017-06-20 15:29:46','2017-06-20 15:29:46','DataCash','DataCash',1,1,10000,0,NULL,0,0),(36,'2017-06-20 15:29:46','2017-06-20 15:29:46','Neteller','Neteller',1,2,10000,0,NULL,0,0),(37,'2017-06-20 15:29:46','2017-06-20 15:29:46','Pacnet','Pacnet',1,1,10000,0,NULL,0,0),(38,'2017-06-20 15:29:46','2017-06-20 15:29:46','PaymentSense','PaymentSense',1,2,10000,0,NULL,0,0),(39,'2017-06-20 15:29:46','2017-06-20 15:29:46','Realex','Realex_Remote',1,1,10000,0,NULL,0,0),(40,'2017-06-20 15:29:46','2017-06-20 15:29:46','Sisow','Sisow',1,1,10000,0,NULL,0,0),(41,'2017-06-20 15:29:46','2017-06-20 15:29:46','Skrill','Skrill',1,1,10000,0,NULL,1,0),(42,'2017-06-20 15:29:46','2017-06-20 15:29:46','BitPay','BitPay',1,1,6,0,NULL,1,0),(43,'2017-06-20 15:29:46','2017-06-20 15:29:46','Dwolla','Dwolla',1,1,5,0,NULL,1,0),(44,'2017-06-20 15:29:46','2017-06-20 15:29:46','AGMS','Agms',1,1,10000,0,NULL,0,0),(45,'2017-06-20 15:29:46','2017-06-20 15:29:46','Barclays','BarclaysEpdq\\Essential',1,1,10000,0,NULL,0,0),(46,'2017-06-20 15:29:46','2017-06-20 15:29:46','Cardgate','Cardgate',1,1,10000,0,NULL,0,0),(47,'2017-06-20 15:29:46','2017-06-20 15:29:46','Checkout.com','CheckoutCom',1,1,10000,0,NULL,0,0),(48,'2017-06-20 15:29:46','2017-06-20 15:29:46','Creditcall','Creditcall',1,1,10000,0,NULL,0,0),(49,'2017-06-20 15:29:46','2017-06-20 15:29:46','Cybersource','Cybersource',1,1,10000,0,NULL,0,0),(50,'2017-06-20 15:29:46','2017-06-20 15:29:46','ecoPayz','Ecopayz',1,1,10000,0,NULL,0,0),(51,'2017-06-20 15:29:46','2017-06-20 15:29:46','Fasapay','Fasapay',1,1,10000,0,NULL,0,0),(52,'2017-06-20 15:29:46','2017-06-20 15:29:46','Komoju','Komoju',1,1,10000,0,NULL,0,0),(53,'2017-06-20 15:29:46','2017-06-20 15:29:46','Multicards','Multicards',1,1,10000,0,NULL,0,0),(54,'2017-06-20 15:29:46','2017-06-20 15:29:46','Pagar.Me','Pagarme',1,2,10000,0,NULL,0,0),(55,'2017-06-20 15:29:46','2017-06-20 15:29:46','Paysafecard','Paysafecard',1,1,10000,0,NULL,0,0),(56,'2017-06-20 15:29:46','2017-06-20 15:29:46','Paytrace','Paytrace_CreditCard',1,1,10000,0,NULL,0,0),(57,'2017-06-20 15:29:46','2017-06-20 15:29:46','Secure Trading','SecureTrading',1,1,10000,0,NULL,0,0),(58,'2017-06-20 15:29:46','2017-06-20 15:29:46','SecPay','SecPay',1,1,10000,0,NULL,0,0),(59,'2017-06-20 15:29:46','2017-06-20 15:29:46','WeChat Express','WeChat_Express',1,2,10000,0,NULL,0,0),(60,'2017-06-20 15:29:46','2017-06-20 15:29:46','WePay','WePay',1,1,10000,0,NULL,0,0),(61,'2017-06-20 15:29:46','2017-06-20 15:29:46','Braintree','Braintree',1,1,2,0,NULL,0,0),(62,'2017-06-20 15:29:46','2017-06-20 15:29:46','Custom','Custom',1,1,8,0,NULL,1,0); +INSERT INTO `gateways` VALUES (1,'2017-06-26 11:22:59','2017-06-26 11:22:59','Authorize.Net AIM','AuthorizeNet_AIM',1,1,4,0,NULL,0,0),(2,'2017-06-26 11:22:59','2017-06-26 11:22:59','Authorize.Net SIM','AuthorizeNet_SIM',1,2,10000,0,NULL,0,0),(3,'2017-06-26 11:22:59','2017-06-26 11:22:59','CardSave','CardSave',1,1,10000,0,NULL,0,0),(4,'2017-06-26 11:22:59','2017-06-26 11:22:59','Eway Rapid','Eway_RapidShared',1,1,10000,0,NULL,1,0),(5,'2017-06-26 11:22:59','2017-06-26 11:22:59','FirstData Connect','FirstData_Connect',1,1,10000,0,NULL,0,0),(6,'2017-06-26 11:22:59','2017-06-26 11:22:59','GoCardless','GoCardless',1,1,10000,0,NULL,1,0),(7,'2017-06-26 11:22:59','2017-06-26 11:22:59','Migs ThreeParty','Migs_ThreeParty',1,1,10000,0,NULL,0,0),(8,'2017-06-26 11:22:59','2017-06-26 11:22:59','Migs TwoParty','Migs_TwoParty',1,1,10000,0,NULL,0,0),(9,'2017-06-26 11:22:59','2017-06-26 11:22:59','Mollie','Mollie',1,1,7,0,NULL,1,0),(10,'2017-06-26 11:22:59','2017-06-26 11:22:59','MultiSafepay','MultiSafepay',1,1,10000,0,NULL,0,0),(11,'2017-06-26 11:22:59','2017-06-26 11:22:59','Netaxept','Netaxept',1,1,10000,0,NULL,0,0),(12,'2017-06-26 11:22:59','2017-06-26 11:22:59','NetBanx','NetBanx',1,1,10000,0,NULL,0,0),(13,'2017-06-26 11:22:59','2017-06-26 11:22:59','PayFast','PayFast',1,1,10000,0,NULL,1,0),(14,'2017-06-26 11:22:59','2017-06-26 11:22:59','Payflow Pro','Payflow_Pro',1,1,10000,0,NULL,0,0),(15,'2017-06-26 11:22:59','2017-06-26 11:22:59','PaymentExpress PxPay','PaymentExpress_PxPay',1,1,10000,0,NULL,0,0),(16,'2017-06-26 11:22:59','2017-06-26 11:22:59','PaymentExpress PxPost','PaymentExpress_PxPost',1,1,10000,0,NULL,0,0),(17,'2017-06-26 11:22:59','2017-06-26 11:22:59','PayPal Express','PayPal_Express',1,1,3,0,NULL,1,0),(18,'2017-06-26 11:22:59','2017-06-26 11:22:59','PayPal Pro','PayPal_Pro',1,1,10000,0,NULL,0,0),(19,'2017-06-26 11:22:59','2017-06-26 11:22:59','Pin','Pin',1,1,10000,0,NULL,0,0),(20,'2017-06-26 11:22:59','2017-06-26 11:22:59','SagePay Direct','SagePay_Direct',1,1,10000,0,NULL,0,0),(21,'2017-06-26 11:22:59','2017-06-26 11:22:59','SagePay Server','SagePay_Server',1,1,10000,0,NULL,0,0),(22,'2017-06-26 11:22:59','2017-06-26 11:22:59','SecurePay DirectPost','SecurePay_DirectPost',1,1,10000,0,NULL,0,0),(23,'2017-06-26 11:22:59','2017-06-26 11:22:59','Stripe','Stripe',1,1,1,0,NULL,0,0),(24,'2017-06-26 11:22:59','2017-06-26 11:22:59','TargetPay Direct eBanking','TargetPay_Directebanking',1,1,10000,0,NULL,0,0),(25,'2017-06-26 11:22:59','2017-06-26 11:22:59','TargetPay Ideal','TargetPay_Ideal',1,1,10000,0,NULL,0,0),(26,'2017-06-26 11:22:59','2017-06-26 11:22:59','TargetPay Mr Cash','TargetPay_Mrcash',1,1,10000,0,NULL,0,0),(27,'2017-06-26 11:22:59','2017-06-26 11:22:59','TwoCheckout','TwoCheckout',1,1,10000,0,NULL,1,0),(28,'2017-06-26 11:22:59','2017-06-26 11:22:59','WorldPay','WorldPay',1,1,10000,0,NULL,0,0),(29,'2017-06-26 11:22:59','2017-06-26 11:22:59','BeanStream','BeanStream',1,2,10000,0,NULL,0,0),(30,'2017-06-26 11:22:59','2017-06-26 11:22:59','Psigate','Psigate',1,2,10000,0,NULL,0,0),(31,'2017-06-26 11:22:59','2017-06-26 11:22:59','moolah','AuthorizeNet_AIM',1,1,10000,0,NULL,0,0),(32,'2017-06-26 11:22:59','2017-06-26 11:22:59','Alipay','Alipay_Express',1,1,10000,0,NULL,0,0),(33,'2017-06-26 11:22:59','2017-06-26 11:22:59','Buckaroo','Buckaroo_CreditCard',1,1,10000,0,NULL,0,0),(34,'2017-06-26 11:22:59','2017-06-26 11:22:59','Coinbase','Coinbase',1,1,10000,0,NULL,0,0),(35,'2017-06-26 11:22:59','2017-06-26 11:22:59','DataCash','DataCash',1,1,10000,0,NULL,0,0),(36,'2017-06-26 11:22:59','2017-06-26 11:22:59','Neteller','Neteller',1,2,10000,0,NULL,0,0),(37,'2017-06-26 11:22:59','2017-06-26 11:22:59','Pacnet','Pacnet',1,1,10000,0,NULL,0,0),(38,'2017-06-26 11:22:59','2017-06-26 11:22:59','PaymentSense','PaymentSense',1,2,10000,0,NULL,0,0),(39,'2017-06-26 11:22:59','2017-06-26 11:22:59','Realex','Realex_Remote',1,1,10000,0,NULL,0,0),(40,'2017-06-26 11:22:59','2017-06-26 11:22:59','Sisow','Sisow',1,1,10000,0,NULL,0,0),(41,'2017-06-26 11:22:59','2017-06-26 11:22:59','Skrill','Skrill',1,1,10000,0,NULL,1,0),(42,'2017-06-26 11:22:59','2017-06-26 11:22:59','BitPay','BitPay',1,1,6,0,NULL,1,0),(43,'2017-06-26 11:22:59','2017-06-26 11:22:59','Dwolla','Dwolla',1,1,5,0,NULL,1,0),(44,'2017-06-26 11:22:59','2017-06-26 11:22:59','AGMS','Agms',1,1,10000,0,NULL,0,0),(45,'2017-06-26 11:22:59','2017-06-26 11:22:59','Barclays','BarclaysEpdq\\Essential',1,1,10000,0,NULL,0,0),(46,'2017-06-26 11:22:59','2017-06-26 11:22:59','Cardgate','Cardgate',1,1,10000,0,NULL,0,0),(47,'2017-06-26 11:22:59','2017-06-26 11:22:59','Checkout.com','CheckoutCom',1,1,10000,0,NULL,0,0),(48,'2017-06-26 11:22:59','2017-06-26 11:22:59','Creditcall','Creditcall',1,1,10000,0,NULL,0,0),(49,'2017-06-26 11:22:59','2017-06-26 11:22:59','Cybersource','Cybersource',1,1,10000,0,NULL,0,0),(50,'2017-06-26 11:22:59','2017-06-26 11:22:59','ecoPayz','Ecopayz',1,1,10000,0,NULL,0,0),(51,'2017-06-26 11:22:59','2017-06-26 11:22:59','Fasapay','Fasapay',1,1,10000,0,NULL,0,0),(52,'2017-06-26 11:22:59','2017-06-26 11:22:59','Komoju','Komoju',1,1,10000,0,NULL,0,0),(53,'2017-06-26 11:22:59','2017-06-26 11:22:59','Multicards','Multicards',1,1,10000,0,NULL,0,0),(54,'2017-06-26 11:22:59','2017-06-26 11:22:59','Pagar.Me','Pagarme',1,2,10000,0,NULL,0,0),(55,'2017-06-26 11:22:59','2017-06-26 11:22:59','Paysafecard','Paysafecard',1,1,10000,0,NULL,0,0),(56,'2017-06-26 11:22:59','2017-06-26 11:22:59','Paytrace','Paytrace_CreditCard',1,1,10000,0,NULL,0,0),(57,'2017-06-26 11:22:59','2017-06-26 11:22:59','Secure Trading','SecureTrading',1,1,10000,0,NULL,0,0),(58,'2017-06-26 11:22:59','2017-06-26 11:22:59','SecPay','SecPay',1,1,10000,0,NULL,0,0),(59,'2017-06-26 11:22:59','2017-06-26 11:22:59','WeChat Express','WeChat_Express',1,2,10000,0,NULL,0,0),(60,'2017-06-26 11:22:59','2017-06-26 11:22:59','WePay','WePay',1,1,10000,0,NULL,0,0),(61,'2017-06-26 11:22:59','2017-06-26 11:22:59','Braintree','Braintree',1,1,2,0,NULL,0,0),(62,'2017-06-26 11:22:59','2017-06-26 11:22:59','Custom','Custom',1,1,8,0,NULL,1,0); /*!40000 ALTER TABLE `gateways` ENABLE KEYS */; UNLOCK TABLES; @@ -1810,7 +1811,7 @@ CREATE TABLE `payment_libraries` ( LOCK TABLES `payment_libraries` WRITE; /*!40000 ALTER TABLE `payment_libraries` DISABLE KEYS */; -INSERT INTO `payment_libraries` VALUES (1,'2017-06-20 15:29:44','2017-06-20 15:29:44','Omnipay',1),(2,'2017-06-20 15:29:44','2017-06-20 15:29:44','PHP-Payments [Deprecated]',1); +INSERT INTO `payment_libraries` VALUES (1,'2017-06-26 11:22:58','2017-06-26 11:22:58','Omnipay',1),(2,'2017-06-26 11:22:58','2017-06-26 11:22:58','PHP-Payments [Deprecated]',1); /*!40000 ALTER TABLE `payment_libraries` ENABLE KEYS */; UNLOCK TABLES; @@ -1920,7 +1921,7 @@ CREATE TABLE `payment_terms` ( LOCK TABLES `payment_terms` WRITE; /*!40000 ALTER TABLE `payment_terms` DISABLE KEYS */; -INSERT INTO `payment_terms` VALUES (1,7,'Net 7','2017-06-20 15:29:44','2017-06-20 15:29:44',NULL,0,0,1),(2,10,'Net 10','2017-06-20 15:29:44','2017-06-20 15:29:44',NULL,0,0,2),(3,14,'Net 14','2017-06-20 15:29:44','2017-06-20 15:29:44',NULL,0,0,3),(4,15,'Net 15','2017-06-20 15:29:44','2017-06-20 15:29:44',NULL,0,0,4),(5,30,'Net 30','2017-06-20 15:29:44','2017-06-20 15:29:44',NULL,0,0,5),(6,60,'Net 60','2017-06-20 15:29:44','2017-06-20 15:29:44',NULL,0,0,6),(7,90,'Net 90','2017-06-20 15:29:44','2017-06-20 15:29:44',NULL,0,0,7),(8,-1,'Net 0','2017-06-20 15:29:48','2017-06-20 15:29:48',NULL,0,0,0); +INSERT INTO `payment_terms` VALUES (1,7,'Net 7','2017-06-26 11:22:58','2017-06-26 11:22:58',NULL,0,0,1),(2,10,'Net 10','2017-06-26 11:22:58','2017-06-26 11:22:58',NULL,0,0,2),(3,14,'Net 14','2017-06-26 11:22:58','2017-06-26 11:22:58',NULL,0,0,3),(4,15,'Net 15','2017-06-26 11:22:58','2017-06-26 11:22:58',NULL,0,0,4),(5,30,'Net 30','2017-06-26 11:22:58','2017-06-26 11:22:58',NULL,0,0,5),(6,60,'Net 60','2017-06-26 11:22:58','2017-06-26 11:22:58',NULL,0,0,6),(7,90,'Net 90','2017-06-26 11:22:58','2017-06-26 11:22:58',NULL,0,0,7),(8,-1,'Net 0','2017-06-26 11:23:01','2017-06-26 11:23:01',NULL,0,0,0); /*!40000 ALTER TABLE `payment_terms` ENABLE KEYS */; UNLOCK TABLES; @@ -2105,6 +2106,64 @@ LOCK TABLES `projects` WRITE; /*!40000 ALTER TABLE `projects` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `recurring_expenses` +-- + +DROP TABLE IF EXISTS `recurring_expenses`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `recurring_expenses` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL, + `account_id` int(10) unsigned NOT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `user_id` int(10) unsigned NOT NULL, + `client_id` int(10) unsigned DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT '0', + `amount` decimal(13,2) NOT NULL, + `private_notes` text COLLATE utf8_unicode_ci NOT NULL, + `public_notes` text COLLATE utf8_unicode_ci NOT NULL, + `invoice_currency_id` int(10) unsigned DEFAULT NULL, + `expense_currency_id` int(10) unsigned DEFAULT NULL, + `should_be_invoiced` tinyint(1) NOT NULL DEFAULT '1', + `expense_category_id` int(10) unsigned DEFAULT NULL, + `tax_name1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `tax_rate1` decimal(13,3) NOT NULL, + `tax_name2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `tax_rate2` decimal(13,3) NOT NULL, + `frequency_id` int(10) unsigned NOT NULL, + `start_date` date DEFAULT NULL, + `end_date` date DEFAULT NULL, + `last_sent_date` timestamp NULL DEFAULT NULL, + `public_id` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `recurring_expenses_account_id_public_id_unique` (`account_id`,`public_id`), + KEY `recurring_expenses_user_id_foreign` (`user_id`), + KEY `recurring_expenses_account_id_index` (`account_id`), + KEY `recurring_expenses_invoice_currency_id_index` (`invoice_currency_id`), + KEY `recurring_expenses_expense_currency_id_index` (`expense_currency_id`), + KEY `recurring_expenses_expense_category_id_index` (`expense_category_id`), + KEY `recurring_expenses_public_id_index` (`public_id`), + CONSTRAINT `recurring_expenses_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE, + CONSTRAINT `recurring_expenses_expense_category_id_foreign` FOREIGN KEY (`expense_category_id`) REFERENCES `expense_categories` (`id`) ON DELETE CASCADE, + CONSTRAINT `recurring_expenses_expense_currency_id_foreign` FOREIGN KEY (`expense_currency_id`) REFERENCES `currencies` (`id`), + CONSTRAINT `recurring_expenses_invoice_currency_id_foreign` FOREIGN KEY (`invoice_currency_id`) REFERENCES `currencies` (`id`), + CONSTRAINT `recurring_expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `recurring_expenses` +-- + +LOCK TABLES `recurring_expenses` WRITE; +/*!40000 ALTER TABLE `recurring_expenses` DISABLE KEYS */; +/*!40000 ALTER TABLE `recurring_expenses` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `security_codes` -- @@ -2520,4 +2579,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2017-06-20 21:29:48 +-- Dump completed on 2017-06-26 17:23:02