diff --git a/composer.lock b/composer.lock index ee703998a3c0..11886053a2b4 100644 --- a/composer.lock +++ b/composer.lock @@ -434,16 +434,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.220.3", + "version": "3.222.20", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "fbb2d7349916c15758ee02dfd001a714883a9adf" + "reference": "ae742d2ae4caa9410ad4dfe97551c68064c0cc54" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/fbb2d7349916c15758ee02dfd001a714883a9adf", - "reference": "fbb2d7349916c15758ee02dfd001a714883a9adf", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/ae742d2ae4caa9410ad4dfe97551c68064c0cc54", + "reference": "ae742d2ae4caa9410ad4dfe97551c68064c0cc54", "shasum": "" }, "require": { @@ -519,9 +519,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.220.3" + "source": "https://github.com/aws/aws-sdk-php/tree/3.222.20" }, - "time": "2022-04-22T18:18:31+00:00" + "time": "2022-05-25T18:20:20+00:00" }, { "name": "bacon/bacon-qr-code", @@ -1003,16 +1003,16 @@ }, { "name": "composer/ca-bundle", - "version": "1.3.1", + "version": "1.3.2", "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "4c679186f2aca4ab6a0f1b0b9cf9252decb44d0b" + "reference": "fd5dd441932a7e10ca6e5b490e272d34c8430640" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/4c679186f2aca4ab6a0f1b0b9cf9252decb44d0b", - "reference": "4c679186f2aca4ab6a0f1b0b9cf9252decb44d0b", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/fd5dd441932a7e10ca6e5b490e272d34c8430640", + "reference": "fd5dd441932a7e10ca6e5b490e272d34c8430640", "shasum": "" }, "require": { @@ -1059,7 +1059,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/ca-bundle/issues", - "source": "https://github.com/composer/ca-bundle/tree/1.3.1" + "source": "https://github.com/composer/ca-bundle/tree/1.3.2" }, "funding": [ { @@ -1075,7 +1075,7 @@ "type": "tidelift" } ], - "time": "2021-10-28T20:44:15+00:00" + "time": "2022-05-24T11:56:16+00:00" }, { "name": "dasprid/enum", @@ -1201,16 +1201,16 @@ }, { "name": "doctrine/cache", - "version": "2.1.1", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/doctrine/cache.git", - "reference": "331b4d5dbaeab3827976273e9356b3b453c300ce" + "reference": "1ca8f21980e770095a31456042471a57bc4c68fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/cache/zipball/331b4d5dbaeab3827976273e9356b3b453c300ce", - "reference": "331b4d5dbaeab3827976273e9356b3b453c300ce", + "url": "https://api.github.com/repos/doctrine/cache/zipball/1ca8f21980e770095a31456042471a57bc4c68fb", + "reference": "1ca8f21980e770095a31456042471a57bc4c68fb", "shasum": "" }, "require": { @@ -1220,18 +1220,12 @@ "doctrine/common": ">2.2,<2.4" }, "require-dev": { - "alcaeus/mongo-php-adapter": "^1.1", "cache/integration-tests": "dev-master", - "doctrine/coding-standard": "^8.0", - "mongodb/mongodb": "^1.1", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", - "predis/predis": "~1.0", + "doctrine/coding-standard": "^9", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", "psr/cache": "^1.0 || ^2.0 || ^3.0", - "symfony/cache": "^4.4 || ^5.2 || ^6.0@dev", - "symfony/var-exporter": "^4.4 || ^5.2 || ^6.0@dev" - }, - "suggest": { - "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver" + "symfony/cache": "^4.4 || ^5.4 || ^6", + "symfony/var-exporter": "^4.4 || ^5.4 || ^6" }, "type": "library", "autoload": { @@ -1280,7 +1274,7 @@ ], "support": { "issues": "https://github.com/doctrine/cache/issues", - "source": "https://github.com/doctrine/cache/tree/2.1.1" + "source": "https://github.com/doctrine/cache/tree/2.2.0" }, "funding": [ { @@ -1296,26 +1290,26 @@ "type": "tidelift" } ], - "time": "2021-07-17T14:49:29+00:00" + "time": "2022-05-20T20:07:39+00:00" }, { "name": "doctrine/dbal", - "version": "3.3.5", + "version": "3.3.6", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "719663b15983278227669c8595151586a2ff3327" + "reference": "9e7f76dd1cde81c62574fdffa5a9c655c847ad21" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/719663b15983278227669c8595151586a2ff3327", - "reference": "719663b15983278227669c8595151586a2ff3327", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/9e7f76dd1cde81c62574fdffa5a9c655c847ad21", + "reference": "9e7f76dd1cde81c62574fdffa5a9c655c847ad21", "shasum": "" }, "require": { "composer-runtime-api": "^2", "doctrine/cache": "^1.11|^2.0", - "doctrine/deprecations": "^0.5.3", + "doctrine/deprecations": "^0.5.3|^1", "doctrine/event-manager": "^1.0", "php": "^7.3 || ^8.0", "psr/cache": "^1|^2|^3", @@ -1323,15 +1317,15 @@ }, "require-dev": { "doctrine/coding-standard": "9.0.0", - "jetbrains/phpstorm-stubs": "2021.1", - "phpstan/phpstan": "1.5.3", - "phpstan/phpstan-strict-rules": "^1.1", - "phpunit/phpunit": "9.5.16", + "jetbrains/phpstorm-stubs": "2022.1", + "phpstan/phpstan": "1.6.3", + "phpstan/phpstan-strict-rules": "^1.2", + "phpunit/phpunit": "9.5.20", "psalm/plugin-phpunit": "0.16.1", "squizlabs/php_codesniffer": "3.6.2", "symfony/cache": "^5.2|^6.0", "symfony/console": "^2.7|^3.0|^4.0|^5.0|^6.0", - "vimeo/psalm": "4.22.0" + "vimeo/psalm": "4.23.0" }, "suggest": { "symfony/console": "For helpful console commands such as SQL execution and import of files." @@ -1391,7 +1385,7 @@ ], "support": { "issues": "https://github.com/doctrine/dbal/issues", - "source": "https://github.com/doctrine/dbal/tree/3.3.5" + "source": "https://github.com/doctrine/dbal/tree/3.3.6" }, "funding": [ { @@ -1407,29 +1401,29 @@ "type": "tidelift" } ], - "time": "2022-04-05T09:50:18+00:00" + "time": "2022-05-02T17:21:01+00:00" }, { "name": "doctrine/deprecations", - "version": "v0.5.3", + "version": "v1.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/deprecations.git", - "reference": "9504165960a1f83cc1480e2be1dd0a0478561314" + "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/9504165960a1f83cc1480e2be1dd0a0478561314", - "reference": "9504165960a1f83cc1480e2be1dd0a0478561314", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", "shasum": "" }, "require": { "php": "^7.1|^8.0" }, "require-dev": { - "doctrine/coding-standard": "^6.0|^7.0|^8.0", - "phpunit/phpunit": "^7.0|^8.0|^9.0", - "psr/log": "^1.0" + "doctrine/coding-standard": "^9", + "phpunit/phpunit": "^7.5|^8.5|^9.5", + "psr/log": "^1|^2|^3" }, "suggest": { "psr/log": "Allows logging deprecations via PSR-3 logger implementation" @@ -1448,9 +1442,9 @@ "homepage": "https://www.doctrine-project.org/", "support": { "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/v0.5.3" + "source": "https://github.com/doctrine/deprecations/tree/v1.0.0" }, - "time": "2021-03-21T12:59:47+00:00" + "time": "2022-05-02T15:47:09+00:00" }, { "name": "doctrine/event-manager", @@ -2025,23 +2019,28 @@ }, { "name": "firebase/php-jwt", - "version": "v6.1.2", + "version": "v6.2.0", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", - "reference": "c297139da7c6873dbd67cbd1093f09ec0bbd0c50" + "reference": "d28e6df83830252650da4623c78aaaf98fb385f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/c297139da7c6873dbd67cbd1093f09ec0bbd0c50", - "reference": "c297139da7c6873dbd67cbd1093f09ec0bbd0c50", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/d28e6df83830252650da4623c78aaaf98fb385f3", + "reference": "d28e6df83830252650da4623c78aaaf98fb385f3", "shasum": "" }, "require": { "php": "^7.1||^8.0" }, "require-dev": { - "phpunit/phpunit": "^7.5||9.5" + "guzzlehttp/guzzle": "^6.5||^7.4", + "phpspec/prophecy-phpunit": "^1.1", + "phpunit/phpunit": "^7.5||^9.5", + "psr/cache": "^1.0||^2.0", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0" }, "suggest": { "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" @@ -2076,9 +2075,9 @@ ], "support": { "issues": "https://github.com/firebase/php-jwt/issues", - "source": "https://github.com/firebase/php-jwt/tree/v6.1.2" + "source": "https://github.com/firebase/php-jwt/tree/v6.2.0" }, - "time": "2022-04-21T14:37:18+00:00" + "time": "2022-05-13T20:54:50+00:00" }, { "name": "fruitcake/laravel-cors", @@ -2161,16 +2160,16 @@ }, { "name": "gocardless/gocardless-pro", - "version": "4.15.0", + "version": "4.16.0", "source": { "type": "git", "url": "https://github.com/gocardless/gocardless-pro-php.git", - "reference": "ff6e8f46e8018fabc7d432f4a64389e003394429" + "reference": "31116c4a47b7815cbe25e411a1e0382e42006691" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/gocardless/gocardless-pro-php/zipball/ff6e8f46e8018fabc7d432f4a64389e003394429", - "reference": "ff6e8f46e8018fabc7d432f4a64389e003394429", + "url": "https://api.github.com/repos/gocardless/gocardless-pro-php/zipball/31116c4a47b7815cbe25e411a1e0382e42006691", + "reference": "31116c4a47b7815cbe25e411a1e0382e42006691", "shasum": "" }, "require": { @@ -2210,9 +2209,9 @@ ], "support": { "issues": "https://github.com/gocardless/gocardless-pro-php/issues", - "source": "https://github.com/gocardless/gocardless-pro-php/tree/v4.15.0" + "source": "https://github.com/gocardless/gocardless-pro-php/tree/v4.16.0" }, - "time": "2021-12-31T15:22:38+00:00" + "time": "2022-04-25T14:24:52+00:00" }, { "name": "google/apiclient", @@ -2287,16 +2286,16 @@ }, { "name": "google/apiclient-services", - "version": "v0.245.0", + "version": "v0.250.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-api-php-client-services.git", - "reference": "500a4c056bf1e115142688418fa2f0a12b4dcfd0" + "reference": "3db4c0db2a5452e623b54f06dd993c432e6d6f8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/500a4c056bf1e115142688418fa2f0a12b4dcfd0", - "reference": "500a4c056bf1e115142688418fa2f0a12b4dcfd0", + "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/3db4c0db2a5452e623b54f06dd993c432e6d6f8c", + "reference": "3db4c0db2a5452e623b54f06dd993c432e6d6f8c", "shasum": "" }, "require": { @@ -2325,9 +2324,9 @@ ], "support": { "issues": "https://github.com/googleapis/google-api-php-client-services/issues", - "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.245.0" + "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.250.0" }, - "time": "2022-04-22T18:49:18+00:00" + "time": "2022-05-22T01:16:11+00:00" }, { "name": "google/auth", @@ -2509,16 +2508,16 @@ }, { "name": "guzzlehttp/guzzle", - "version": "7.4.2", + "version": "7.4.3", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "ac1ec1cd9b5624694c3a40be801d94137afb12b4" + "reference": "74a8602c6faec9ef74b7a9391ac82c5e65b1cdab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ac1ec1cd9b5624694c3a40be801d94137afb12b4", - "reference": "ac1ec1cd9b5624694c3a40be801d94137afb12b4", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab", + "reference": "74a8602c6faec9ef74b7a9391ac82c5e65b1cdab", "shasum": "" }, "require": { @@ -2613,7 +2612,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.4.2" + "source": "https://github.com/guzzle/guzzle/tree/7.4.3" }, "funding": [ { @@ -2629,7 +2628,7 @@ "type": "tidelift" } ], - "time": "2022-03-20T14:16:28+00:00" + "time": "2022-05-25T13:24:33+00:00" }, { "name": "guzzlehttp/promises", @@ -3069,16 +3068,16 @@ }, { "name": "intervention/image", - "version": "2.7.1", + "version": "2.7.2", "source": { "type": "git", "url": "https://github.com/Intervention/image.git", - "reference": "744ebba495319501b873a4e48787759c72e3fb8c" + "reference": "04be355f8d6734c826045d02a1079ad658322dad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Intervention/image/zipball/744ebba495319501b873a4e48787759c72e3fb8c", - "reference": "744ebba495319501b873a4e48787759c72e3fb8c", + "url": "https://api.github.com/repos/Intervention/image/zipball/04be355f8d6734c826045d02a1079ad658322dad", + "reference": "04be355f8d6734c826045d02a1079ad658322dad", "shasum": "" }, "require": { @@ -3121,8 +3120,8 @@ "authors": [ { "name": "Oliver Vogel", - "email": "oliver@olivervogel.com", - "homepage": "http://olivervogel.com/" + "email": "oliver@intervention.io", + "homepage": "https://intervention.io/" } ], "description": "Image handling and manipulation library with support for Laravel integration", @@ -3137,11 +3136,11 @@ ], "support": { "issues": "https://github.com/Intervention/image/issues", - "source": "https://github.com/Intervention/image/tree/2.7.1" + "source": "https://github.com/Intervention/image/tree/2.7.2" }, "funding": [ { - "url": "https://www.paypal.me/interventionphp", + "url": "https://paypal.me/interventionio", "type": "custom" }, { @@ -3149,7 +3148,7 @@ "type": "github" } ], - "time": "2021-12-16T16:49:26+00:00" + "time": "2022-05-21T17:30:32+00:00" }, { "name": "invoiceninja/inspector", @@ -3325,16 +3324,16 @@ }, { "name": "laravel/framework", - "version": "v8.83.9", + "version": "v8.83.14", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "ac6e16bb56510eda2e373c6365d5c92da3fd559d" + "reference": "141cf126f1746c7264f59aa78c923a84eaab501e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/ac6e16bb56510eda2e373c6365d5c92da3fd559d", - "reference": "ac6e16bb56510eda2e373c6365d5c92da3fd559d", + "url": "https://api.github.com/repos/laravel/framework/zipball/141cf126f1746c7264f59aa78c923a84eaab501e", + "reference": "141cf126f1746c7264f59aa78c923a84eaab501e", "shasum": "" }, "require": { @@ -3494,20 +3493,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-04-19T15:01:38+00:00" + "time": "2022-05-24T14:04:02+00:00" }, { "name": "laravel/serializable-closure", - "version": "v1.1.1", + "version": "v1.2.0", "source": { "type": "git", "url": "https://github.com/laravel/serializable-closure.git", - "reference": "9e4b005daa20b0c161f3845040046dc9ddc1d74e" + "reference": "09f0e9fb61829f628205b7c94906c28740ff9540" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/9e4b005daa20b0c161f3845040046dc9ddc1d74e", - "reference": "9e4b005daa20b0c161f3845040046dc9ddc1d74e", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/09f0e9fb61829f628205b7c94906c28740ff9540", + "reference": "09f0e9fb61829f628205b7c94906c28740ff9540", "shasum": "" }, "require": { @@ -3553,7 +3552,7 @@ "issues": "https://github.com/laravel/serializable-closure/issues", "source": "https://github.com/laravel/serializable-closure" }, - "time": "2022-02-11T19:23:53+00:00" + "time": "2022-05-16T17:09:47+00:00" }, { "name": "laravel/slack-notification-channel", @@ -3755,16 +3754,16 @@ }, { "name": "laravel/ui", - "version": "v3.4.5", + "version": "v3.4.6", "source": { "type": "git", "url": "https://github.com/laravel/ui.git", - "reference": "f11d295de1508c5bb56206a620b00b6616de414c" + "reference": "65ec5c03f7fee2c8ecae785795b829a15be48c2c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/ui/zipball/f11d295de1508c5bb56206a620b00b6616de414c", - "reference": "f11d295de1508c5bb56206a620b00b6616de414c", + "url": "https://api.github.com/repos/laravel/ui/zipball/65ec5c03f7fee2c8ecae785795b829a15be48c2c", + "reference": "65ec5c03f7fee2c8ecae785795b829a15be48c2c", "shasum": "" }, "require": { @@ -3810,22 +3809,22 @@ "ui" ], "support": { - "source": "https://github.com/laravel/ui/tree/v3.4.5" + "source": "https://github.com/laravel/ui/tree/v3.4.6" }, - "time": "2022-02-21T14:59:16+00:00" + "time": "2022-05-20T13:38:08+00:00" }, { "name": "league/commonmark", - "version": "2.3.0", + "version": "2.3.1", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "32a49eb2b38fe5e5c417ab748a45d0beaab97955" + "reference": "cb36fee279f7fca01d5d9399ddd1b37e48e2eca1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/32a49eb2b38fe5e5c417ab748a45d0beaab97955", - "reference": "32a49eb2b38fe5e5c417ab748a45d0beaab97955", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/cb36fee279f7fca01d5d9399ddd1b37e48e2eca1", + "reference": "cb36fee279f7fca01d5d9399ddd1b37e48e2eca1", "shasum": "" }, "require": { @@ -3918,7 +3917,7 @@ "type": "tidelift" } ], - "time": "2022-04-07T22:37:05+00:00" + "time": "2022-05-14T15:37:39+00:00" }, { "name": "league/config", @@ -4620,16 +4619,16 @@ }, { "name": "mollie/mollie-api-php", - "version": "v2.42.1", + "version": "v2.44.1", "source": { "type": "git", "url": "https://github.com/mollie/mollie-api-php.git", - "reference": "1ced5854c98af5cffca09b1093156ebdac277285" + "reference": "5906cf9ff3133a4f47fea47624f3839ac07d0805" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mollie/mollie-api-php/zipball/1ced5854c98af5cffca09b1093156ebdac277285", - "reference": "1ced5854c98af5cffca09b1093156ebdac277285", + "url": "https://api.github.com/repos/mollie/mollie-api-php/zipball/5906cf9ff3133a4f47fea47624f3839ac07d0805", + "reference": "5906cf9ff3133a4f47fea47624f3839ac07d0805", "shasum": "" }, "require": { @@ -4706,9 +4705,9 @@ ], "support": { "issues": "https://github.com/mollie/mollie-api-php/issues", - "source": "https://github.com/mollie/mollie-api-php/tree/v2.42.1" + "source": "https://github.com/mollie/mollie-api-php/tree/v2.44.1" }, - "time": "2022-04-21T11:21:14+00:00" + "time": "2022-05-24T14:03:01+00:00" }, { "name": "moneyphp/money", @@ -4798,16 +4797,16 @@ }, { "name": "monolog/monolog", - "version": "2.5.0", + "version": "2.6.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "4192345e260f1d51b365536199744b987e160edc" + "reference": "247918972acd74356b0a91dfaa5adcaec069b6c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/4192345e260f1d51b365536199744b987e160edc", - "reference": "4192345e260f1d51b365536199744b987e160edc", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/247918972acd74356b0a91dfaa5adcaec069b6c0", + "reference": "247918972acd74356b0a91dfaa5adcaec069b6c0", "shasum": "" }, "require": { @@ -4820,18 +4819,23 @@ "require-dev": { "aws/aws-sdk-php": "^2.4.9 || ^3.0", "doctrine/couchdb": "~1.0@dev", - "elasticsearch/elasticsearch": "^7", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", "graylog2/gelf-php": "^1.4.2", + "guzzlehttp/guzzle": "^7.4", + "guzzlehttp/psr7": "^2.2", "mongodb/mongodb": "^1.8", "php-amqplib/php-amqplib": "~2.4 || ^3", "php-console/php-console": "^3.1.3", - "phpspec/prophecy": "^1.6.1", + "phpspec/prophecy": "^1.15", "phpstan/phpstan": "^0.12.91", - "phpunit/phpunit": "^8.5", + "phpunit/phpunit": "^8.5.14", "predis/predis": "^1.1", "rollbar/rollbar": "^1.3 || ^2 || ^3", - "ruflin/elastica": ">=0.90@dev", - "swiftmailer/swiftmailer": "^5.3|^6.0" + "ruflin/elastica": "^7", + "swiftmailer/swiftmailer": "^5.3|^6.0", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" }, "suggest": { "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", @@ -4881,7 +4885,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/2.5.0" + "source": "https://github.com/Seldaek/monolog/tree/2.6.0" }, "funding": [ { @@ -4893,7 +4897,7 @@ "type": "tidelift" } ], - "time": "2022-04-08T15:43:54+00:00" + "time": "2022-05-10T09:36:00+00:00" }, { "name": "mtdowling/jmespath.php", @@ -5031,16 +5035,16 @@ }, { "name": "nesbot/carbon", - "version": "2.57.0", + "version": "2.58.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "4a54375c21eea4811dbd1149fe6b246517554e78" + "reference": "97a34af22bde8d0ac20ab34b29d7bfe360902055" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4a54375c21eea4811dbd1149fe6b246517554e78", - "reference": "4a54375c21eea4811dbd1149fe6b246517554e78", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/97a34af22bde8d0ac20ab34b29d7bfe360902055", + "reference": "97a34af22bde8d0ac20ab34b29d7bfe360902055", "shasum": "" }, "require": { @@ -5058,7 +5062,8 @@ "phpmd/phpmd": "^2.9", "phpstan/extension-installer": "^1.0", "phpstan/phpstan": "^0.12.54 || ^1.0", - "phpunit/phpunit": "^7.5.20 || ^8.5.14", + "phpunit/php-file-iterator": "^2.0.5", + "phpunit/phpunit": "^7.5.20 || ^8.5.23", "squizlabs/php_codesniffer": "^3.4" }, "bin": [ @@ -5123,7 +5128,7 @@ "type": "tidelift" } ], - "time": "2022-02-13T18:13:33+00:00" + "time": "2022-04-25T19:31:17+00:00" }, { "name": "nette/schema", @@ -5952,16 +5957,16 @@ }, { "name": "php-http/discovery", - "version": "1.14.1", + "version": "1.14.2", "source": { "type": "git", "url": "https://github.com/php-http/discovery.git", - "reference": "de90ab2b41d7d61609f504e031339776bc8c7223" + "reference": "c8d48852fbc052454af42f6de27635ddd916b959" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/discovery/zipball/de90ab2b41d7d61609f504e031339776bc8c7223", - "reference": "de90ab2b41d7d61609f504e031339776bc8c7223", + "url": "https://api.github.com/repos/php-http/discovery/zipball/c8d48852fbc052454af42f6de27635ddd916b959", + "reference": "c8d48852fbc052454af42f6de27635ddd916b959", "shasum": "" }, "require": { @@ -5974,8 +5979,7 @@ "graham-campbell/phpspec-skip-example-extension": "^5.0", "php-http/httplug": "^1.0 || ^2.0", "php-http/message-factory": "^1.0", - "phpspec/phpspec": "^5.1 || ^6.1", - "puli/composer-plugin": "1.0.0-beta10" + "phpspec/phpspec": "^5.1 || ^6.1" }, "suggest": { "php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories" @@ -6014,9 +6018,9 @@ ], "support": { "issues": "https://github.com/php-http/discovery/issues", - "source": "https://github.com/php-http/discovery/tree/1.14.1" + "source": "https://github.com/php-http/discovery/tree/1.14.2" }, - "time": "2021-09-18T07:57:46+00:00" + "time": "2022-05-25T07:26:05+00:00" }, { "name": "php-http/guzzle7-adapter", @@ -7035,16 +7039,16 @@ }, { "name": "psy/psysh", - "version": "v0.11.2", + "version": "v0.11.4", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "7f7da640d68b9c9fec819caae7c744a213df6514" + "reference": "05c544b339b112226ad14803e1e5b09a61957454" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/7f7da640d68b9c9fec819caae7c744a213df6514", - "reference": "7f7da640d68b9c9fec819caae7c744a213df6514", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/05c544b339b112226ad14803e1e5b09a61957454", + "reference": "05c544b339b112226ad14803e1e5b09a61957454", "shasum": "" }, "require": { @@ -7059,15 +7063,13 @@ "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.2", - "hoa/console": "3.17.05.02" + "bamarni/composer-bin-plugin": "^1.2" }, "suggest": { "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", "ext-pdo-sqlite": "The doc command requires SQLite to work.", "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.", - "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history.", - "hoa/console": "A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit." + "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history." }, "bin": [ "bin/psysh" @@ -7107,9 +7109,9 @@ ], "support": { "issues": "https://github.com/bobthecow/psysh/issues", - "source": "https://github.com/bobthecow/psysh/tree/v0.11.2" + "source": "https://github.com/bobthecow/psysh/tree/v0.11.4" }, - "time": "2022-02-28T15:28:54+00:00" + "time": "2022-05-06T12:49:14+00:00" }, { "name": "ralouphie/getallheaders", @@ -7334,29 +7336,32 @@ }, { "name": "razorpay/razorpay", - "version": "v2.8.2", + "version": "v2.8.3", "source": { "type": "git", "url": "https://github.com/razorpay/razorpay-php.git", - "reference": "f36ad5ec74522d2930ffad3b160dddc454e42f4d" + "reference": "1ae60f9142f63cb01e6f9b843dd0a3573976fd40" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/razorpay/razorpay-php/zipball/f36ad5ec74522d2930ffad3b160dddc454e42f4d", - "reference": "f36ad5ec74522d2930ffad3b160dddc454e42f4d", + "url": "https://api.github.com/repos/razorpay/razorpay-php/zipball/1ae60f9142f63cb01e6f9b843dd0a3573976fd40", + "reference": "1ae60f9142f63cb01e6f9b843dd0a3573976fd40", "shasum": "" }, "require": { "ext-json": "*", "php": ">=5.3.0", - "rmccue/requests": "v1.8.0" + "rmccue/requests": "^2.0" }, "require-dev": { - "phpunit/phpunit": "~4.8|~5.0", + "phpunit/phpunit": "^9", "raveren/kint": "1.*" }, "type": "library", "autoload": { + "files": [ + "Deprecated.php" + ], "psr-4": { "Razorpay\\Api\\": "src/", "Razorpay\\Tests\\": "tests/" @@ -7392,40 +7397,48 @@ "issues": "https://github.com/Razorpay/razorpay-php/issues", "source": "https://github.com/Razorpay/razorpay-php" }, - "time": "2022-03-08T13:36:42+00:00" + "time": "2022-04-29T11:11:00+00:00" }, { "name": "rmccue/requests", - "version": "v1.8.0", + "version": "v2.0.3", "source": { "type": "git", "url": "https://github.com/WordPress/Requests.git", - "reference": "afbe4790e4def03581c4a0963a1e8aa01f6030f1" + "reference": "b290dd974051bf1ead51d1947a5a56357e5b80ff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WordPress/Requests/zipball/afbe4790e4def03581c4a0963a1e8aa01f6030f1", - "reference": "afbe4790e4def03581c4a0963a1e8aa01f6030f1", + "url": "https://api.github.com/repos/WordPress/Requests/zipball/b290dd974051bf1ead51d1947a5a56357e5b80ff", + "reference": "b290dd974051bf1ead51d1947a5a56357e5b80ff", "shasum": "" }, "require": { - "php": ">=5.2" + "ext-json": "*", + "php": ">=5.6" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^0.7", "php-parallel-lint/php-console-highlighter": "^0.5.0", - "php-parallel-lint/php-parallel-lint": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.3.1", "phpcompatibility/php-compatibility": "^9.0", - "phpunit/phpunit": "^4.8 || ^5.7 || ^6.5 || ^7.5", - "requests/test-server": "dev-master", - "squizlabs/php_codesniffer": "^3.5", - "wp-coding-standards/wpcs": "^2.0" + "requests/test-server": "dev-main", + "roave/security-advisories": "dev-latest", + "squizlabs/php_codesniffer": "^3.6", + "wp-coding-standards/wpcs": "^2.0", + "yoast/phpunit-polyfills": "^1.0.0" }, "type": "library", "autoload": { - "psr-0": { - "Requests": "library/" - } + "files": [ + "library/Deprecated.php" + ], + "psr-4": { + "WpOrg\\Requests\\": "src/" + }, + "classmap": [ + "library/Requests.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -7434,11 +7447,23 @@ "authors": [ { "name": "Ryan McCue", - "homepage": "http://ryanmccue.info" + "homepage": "https://rmccue.io/" + }, + { + "name": "Alain Schlesser", + "homepage": "https://github.com/schlessera" + }, + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl" + }, + { + "name": "Contributors", + "homepage": "https://github.com/WordPress/Requests/graphs/contributors" } ], "description": "A HTTP library written in PHP, for human beings.", - "homepage": "http://github.com/WordPress/Requests", + "homepage": "https://requests.ryanmccue.info/", "keywords": [ "curl", "fsockopen", @@ -7449,10 +7474,11 @@ "sockets" ], "support": { + "docs": "https://requests.ryanmccue.info/", "issues": "https://github.com/WordPress/Requests/issues", - "source": "https://github.com/WordPress/Requests/tree/v1.8.0" + "source": "https://github.com/WordPress/Requests" }, - "time": "2021-04-27T11:05:25+00:00" + "time": "2022-05-10T08:42:27+00:00" }, { "name": "sabre/uri", @@ -7581,21 +7607,21 @@ }, { "name": "sentry/sdk", - "version": "3.1.1", + "version": "3.2.0", "source": { "type": "git", "url": "https://github.com/getsentry/sentry-php-sdk.git", - "reference": "2de7de3233293f80d1e244bd950adb2121a3731c" + "reference": "6d78bd83b43efbb52f81d6824f4af344fa9ba292" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/getsentry/sentry-php-sdk/zipball/2de7de3233293f80d1e244bd950adb2121a3731c", - "reference": "2de7de3233293f80d1e244bd950adb2121a3731c", + "url": "https://api.github.com/repos/getsentry/sentry-php-sdk/zipball/6d78bd83b43efbb52f81d6824f4af344fa9ba292", + "reference": "6d78bd83b43efbb52f81d6824f4af344fa9ba292", "shasum": "" }, "require": { "http-interop/http-factory-guzzle": "^1.0", - "sentry/sentry": "^3.1", + "sentry/sentry": "^3.5", "symfony/http-client": "^4.3|^5.0|^6.0" }, "type": "metapackage", @@ -7621,7 +7647,8 @@ "sentry" ], "support": { - "source": "https://github.com/getsentry/sentry-php-sdk/tree/3.1.1" + "issues": "https://github.com/getsentry/sentry-php-sdk/issues", + "source": "https://github.com/getsentry/sentry-php-sdk/tree/3.2.0" }, "funding": [ { @@ -7633,27 +7660,27 @@ "type": "custom" } ], - "time": "2021-11-30T11:54:41+00:00" + "time": "2022-05-21T11:10:11+00:00" }, { "name": "sentry/sentry", - "version": "3.4.0", + "version": "3.5.0", "source": { "type": "git", "url": "https://github.com/getsentry/sentry-php.git", - "reference": "a92443883df6a55cbe7a062f76949f23dda66772" + "reference": "5b611e3f09035f5ad5edf494443e3236bd5ea482" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/a92443883df6a55cbe7a062f76949f23dda66772", - "reference": "a92443883df6a55cbe7a062f76949f23dda66772", + "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/5b611e3f09035f5ad5edf494443e3236bd5ea482", + "reference": "5b611e3f09035f5ad5edf494443e3236bd5ea482", "shasum": "" }, "require": { "ext-json": "*", "ext-mbstring": "*", "guzzlehttp/promises": "^1.4", - "guzzlehttp/psr7": "^1.7|^2.0", + "guzzlehttp/psr7": "^1.8.4|^2.1.1", "jean85/pretty-package-versions": "^1.5|^2.0.4", "php": "^7.2|^8.0", "php-http/async-client-implementation": "^1.0", @@ -7692,7 +7719,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.4.x-dev" + "dev-master": "3.5.x-dev" } }, "autoload": { @@ -7726,7 +7753,7 @@ ], "support": { "issues": "https://github.com/getsentry/sentry-php/issues", - "source": "https://github.com/getsentry/sentry-php/tree/3.4.0" + "source": "https://github.com/getsentry/sentry-php/tree/3.5.0" }, "funding": [ { @@ -7738,7 +7765,7 @@ "type": "custom" } ], - "time": "2022-03-13T12:38:01+00:00" + "time": "2022-05-19T07:14:12+00:00" }, { "name": "sentry/sentry-laravel", @@ -7890,16 +7917,16 @@ }, { "name": "stripe/stripe-php", - "version": "v7.125.0", + "version": "v7.128.0", "source": { "type": "git", "url": "https://github.com/stripe/stripe-php.git", - "reference": "822c00aa380c10c2a3c55d105c5da72ad577b7c4" + "reference": "c704949c49b72985c76cc61063aa26fefbd2724e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stripe/stripe-php/zipball/822c00aa380c10c2a3c55d105c5da72ad577b7c4", - "reference": "822c00aa380c10c2a3c55d105c5da72ad577b7c4", + "url": "https://api.github.com/repos/stripe/stripe-php/zipball/c704949c49b72985c76cc61063aa26fefbd2724e", + "reference": "c704949c49b72985c76cc61063aa26fefbd2724e", "shasum": "" }, "require": { @@ -7944,9 +7971,9 @@ ], "support": { "issues": "https://github.com/stripe/stripe-php/issues", - "source": "https://github.com/stripe/stripe-php/tree/v7.125.0" + "source": "https://github.com/stripe/stripe-php/tree/v7.128.0" }, - "time": "2022-04-21T22:31:37+00:00" + "time": "2022-05-05T17:18:02+00:00" }, { "name": "swiftmailer/swiftmailer", @@ -8026,16 +8053,16 @@ }, { "name": "symfony/console", - "version": "v5.4.7", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "900275254f0a1a2afff1ab0e11abd5587a10e1d6" + "reference": "ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/900275254f0a1a2afff1ab0e11abd5587a10e1d6", - "reference": "900275254f0a1a2afff1ab0e11abd5587a10e1d6", + "url": "https://api.github.com/repos/symfony/console/zipball/ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b", + "reference": "ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b", "shasum": "" }, "require": { @@ -8105,7 +8132,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.7" + "source": "https://github.com/symfony/console/tree/v5.4.8" }, "funding": [ { @@ -8121,7 +8148,7 @@ "type": "tidelift" } ], - "time": "2022-03-31T17:09:19+00:00" + "time": "2022-04-12T16:02:29+00:00" }, { "name": "symfony/css-selector", @@ -8258,16 +8285,16 @@ }, { "name": "symfony/error-handler", - "version": "v5.4.7", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "060bc01856a1846e3e4385261bc9ed11a1dd7b6a" + "reference": "c1fcde614dfe99d62a83b796a53b8bad358b266a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/060bc01856a1846e3e4385261bc9ed11a1dd7b6a", - "reference": "060bc01856a1846e3e4385261bc9ed11a1dd7b6a", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/c1fcde614dfe99d62a83b796a53b8bad358b266a", + "reference": "c1fcde614dfe99d62a83b796a53b8bad358b266a", "shasum": "" }, "require": { @@ -8309,7 +8336,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v5.4.7" + "source": "https://github.com/symfony/error-handler/tree/v5.4.8" }, "funding": [ { @@ -8325,7 +8352,7 @@ "type": "tidelift" } ], - "time": "2022-03-18T16:21:29+00:00" + "time": "2022-04-12T15:48:08+00:00" }, { "name": "symfony/event-dispatcher", @@ -8557,16 +8584,16 @@ }, { "name": "symfony/finder", - "version": "v5.4.3", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "231313534dded84c7ecaa79d14bc5da4ccb69b7d" + "reference": "9b630f3427f3ebe7cd346c277a1408b00249dad9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/231313534dded84c7ecaa79d14bc5da4ccb69b7d", - "reference": "231313534dded84c7ecaa79d14bc5da4ccb69b7d", + "url": "https://api.github.com/repos/symfony/finder/zipball/9b630f3427f3ebe7cd346c277a1408b00249dad9", + "reference": "9b630f3427f3ebe7cd346c277a1408b00249dad9", "shasum": "" }, "require": { @@ -8600,7 +8627,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.3" + "source": "https://github.com/symfony/finder/tree/v5.4.8" }, "funding": [ { @@ -8616,20 +8643,20 @@ "type": "tidelift" } ], - "time": "2022-01-26T16:34:36+00:00" + "time": "2022-04-15T08:07:45+00:00" }, { "name": "symfony/http-client", - "version": "v5.4.7", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "88b6909f74fd1f2147e068411f71870a3b27ac56" + "reference": "0dabec4e3898d3e00451dd47b5ef839168f9bbf5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/88b6909f74fd1f2147e068411f71870a3b27ac56", - "reference": "88b6909f74fd1f2147e068411f71870a3b27ac56", + "url": "https://api.github.com/repos/symfony/http-client/zipball/0dabec4e3898d3e00451dd47b5ef839168f9bbf5", + "reference": "0dabec4e3898d3e00451dd47b5ef839168f9bbf5", "shasum": "" }, "require": { @@ -8687,7 +8714,7 @@ "description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-client/tree/v5.4.7" + "source": "https://github.com/symfony/http-client/tree/v5.4.8" }, "funding": [ { @@ -8703,7 +8730,7 @@ "type": "tidelift" } ], - "time": "2022-04-01T12:27:37+00:00" + "time": "2022-04-12T16:02:29+00:00" }, { "name": "symfony/http-client-contracts", @@ -8785,16 +8812,16 @@ }, { "name": "symfony/http-foundation", - "version": "v5.4.6", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "34e89bc147633c0f9dd6caaaf56da3b806a21465" + "reference": "ff2818d1c3d49860bcae1f2cbb5eb00fcd3bf9e2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/34e89bc147633c0f9dd6caaaf56da3b806a21465", - "reference": "34e89bc147633c0f9dd6caaaf56da3b806a21465", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/ff2818d1c3d49860bcae1f2cbb5eb00fcd3bf9e2", + "reference": "ff2818d1c3d49860bcae1f2cbb5eb00fcd3bf9e2", "shasum": "" }, "require": { @@ -8838,7 +8865,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v5.4.6" + "source": "https://github.com/symfony/http-foundation/tree/v5.4.8" }, "funding": [ { @@ -8854,20 +8881,20 @@ "type": "tidelift" } ], - "time": "2022-03-05T21:03:43+00:00" + "time": "2022-04-22T08:14:12+00:00" }, { "name": "symfony/http-kernel", - "version": "v5.4.7", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "509243b9b3656db966284c45dffce9316c1ecc5c" + "reference": "cf7e61106abfc19b305ca0aedc41724ced89a02a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/509243b9b3656db966284c45dffce9316c1ecc5c", - "reference": "509243b9b3656db966284c45dffce9316c1ecc5c", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/cf7e61106abfc19b305ca0aedc41724ced89a02a", + "reference": "cf7e61106abfc19b305ca0aedc41724ced89a02a", "shasum": "" }, "require": { @@ -8950,7 +8977,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v5.4.7" + "source": "https://github.com/symfony/http-kernel/tree/v5.4.8" }, "funding": [ { @@ -8966,20 +8993,20 @@ "type": "tidelift" } ], - "time": "2022-04-02T06:04:20+00:00" + "time": "2022-04-27T17:22:21+00:00" }, { "name": "symfony/mime", - "version": "v5.4.7", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "92d27a34dea2e199fa9b687e3fff3a7d169b7b1c" + "reference": "af49bc163ec3272f677bde3bc44c0d766c1fd662" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/92d27a34dea2e199fa9b687e3fff3a7d169b7b1c", - "reference": "92d27a34dea2e199fa9b687e3fff3a7d169b7b1c", + "url": "https://api.github.com/repos/symfony/mime/zipball/af49bc163ec3272f677bde3bc44c0d766c1fd662", + "reference": "af49bc163ec3272f677bde3bc44c0d766c1fd662", "shasum": "" }, "require": { @@ -9033,7 +9060,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v5.4.7" + "source": "https://github.com/symfony/mime/tree/v5.4.8" }, "funding": [ { @@ -9049,7 +9076,7 @@ "type": "tidelift" } ], - "time": "2022-03-11T16:08:05+00:00" + "time": "2022-04-12T15:48:08+00:00" }, { "name": "symfony/options-resolver", @@ -10021,16 +10048,16 @@ }, { "name": "symfony/process", - "version": "v5.4.7", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "38a44b2517b470a436e1c944bf9b9ba3961137fb" + "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/38a44b2517b470a436e1c944bf9b9ba3961137fb", - "reference": "38a44b2517b470a436e1c944bf9b9ba3961137fb", + "url": "https://api.github.com/repos/symfony/process/zipball/597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", + "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", "shasum": "" }, "require": { @@ -10063,7 +10090,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.4.7" + "source": "https://github.com/symfony/process/tree/v5.4.8" }, "funding": [ { @@ -10079,7 +10106,7 @@ "type": "tidelift" } ], - "time": "2022-03-18T16:18:52+00:00" + "time": "2022-04-08T05:07:18+00:00" }, { "name": "symfony/psr-http-message-bridge", @@ -10171,16 +10198,16 @@ }, { "name": "symfony/routing", - "version": "v5.4.3", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "44b29c7a94e867ccde1da604792f11a469958981" + "reference": "e07817bb6244ea33ef5ad31abc4a9288bef3f2f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/44b29c7a94e867ccde1da604792f11a469958981", - "reference": "44b29c7a94e867ccde1da604792f11a469958981", + "url": "https://api.github.com/repos/symfony/routing/zipball/e07817bb6244ea33ef5ad31abc4a9288bef3f2f7", + "reference": "e07817bb6244ea33ef5ad31abc4a9288bef3f2f7", "shasum": "" }, "require": { @@ -10241,7 +10268,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v5.4.3" + "source": "https://github.com/symfony/routing/tree/v5.4.8" }, "funding": [ { @@ -10257,7 +10284,7 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2022-04-18T21:45:37+00:00" }, { "name": "symfony/service-contracts", @@ -10344,16 +10371,16 @@ }, { "name": "symfony/string", - "version": "v5.4.3", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "92043b7d8383e48104e411bc9434b260dbeb5a10" + "reference": "3c061a76bff6d6ea427d85e12ad1bb8ed8cd43e8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/92043b7d8383e48104e411bc9434b260dbeb5a10", - "reference": "92043b7d8383e48104e411bc9434b260dbeb5a10", + "url": "https://api.github.com/repos/symfony/string/zipball/3c061a76bff6d6ea427d85e12ad1bb8ed8cd43e8", + "reference": "3c061a76bff6d6ea427d85e12ad1bb8ed8cd43e8", "shasum": "" }, "require": { @@ -10410,7 +10437,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.4.3" + "source": "https://github.com/symfony/string/tree/v5.4.8" }, "funding": [ { @@ -10426,20 +10453,20 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2022-04-19T10:40:37+00:00" }, { "name": "symfony/translation", - "version": "v5.4.7", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "e1eb790575202ee3ac2659f55b93b05853726f8e" + "reference": "f5c0f6d1f20993b2606f3a5f36b1dc8c1899170b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/e1eb790575202ee3ac2659f55b93b05853726f8e", - "reference": "e1eb790575202ee3ac2659f55b93b05853726f8e", + "url": "https://api.github.com/repos/symfony/translation/zipball/f5c0f6d1f20993b2606f3a5f36b1dc8c1899170b", + "reference": "f5c0f6d1f20993b2606f3a5f36b1dc8c1899170b", "shasum": "" }, "require": { @@ -10507,7 +10534,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v5.4.7" + "source": "https://github.com/symfony/translation/tree/v5.4.8" }, "funding": [ { @@ -10523,7 +10550,7 @@ "type": "tidelift" } ], - "time": "2022-03-24T17:09:09+00:00" + "time": "2022-04-22T08:14:12+00:00" }, { "name": "symfony/translation-contracts", @@ -10605,16 +10632,16 @@ }, { "name": "symfony/var-dumper", - "version": "v5.4.6", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "294e9da6e2e0dd404e983daa5aa74253d92c05d0" + "reference": "cdcadd343d31ad16fc5e006b0de81ea307435053" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/294e9da6e2e0dd404e983daa5aa74253d92c05d0", - "reference": "294e9da6e2e0dd404e983daa5aa74253d92c05d0", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/cdcadd343d31ad16fc5e006b0de81ea307435053", + "reference": "cdcadd343d31ad16fc5e006b0de81ea307435053", "shasum": "" }, "require": { @@ -10674,7 +10701,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v5.4.6" + "source": "https://github.com/symfony/var-dumper/tree/v5.4.8" }, "funding": [ { @@ -10690,7 +10717,7 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:42:23+00:00" + "time": "2022-04-26T13:19:20+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -12418,16 +12445,16 @@ }, { "name": "laravel/dusk", - "version": "v6.23.0", + "version": "v6.24.0", "source": { "type": "git", "url": "https://github.com/laravel/dusk.git", - "reference": "98901d49176977c96330fd8c2ca5460eee50a246" + "reference": "7fed3695741787d9998c5f04c94adfd62d70e766" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/dusk/zipball/98901d49176977c96330fd8c2ca5460eee50a246", - "reference": "98901d49176977c96330fd8c2ca5460eee50a246", + "url": "https://api.github.com/repos/laravel/dusk/zipball/7fed3695741787d9998c5f04c94adfd62d70e766", + "reference": "7fed3695741787d9998c5f04c94adfd62d70e766", "shasum": "" }, "require": { @@ -12485,9 +12512,9 @@ ], "support": { "issues": "https://github.com/laravel/dusk/issues", - "source": "https://github.com/laravel/dusk/tree/v6.23.0" + "source": "https://github.com/laravel/dusk/tree/v6.24.0" }, - "time": "2022-04-11T18:55:12+00:00" + "time": "2022-05-09T13:43:52+00:00" }, { "name": "maximebf/debugbar", @@ -12941,16 +12968,16 @@ }, { "name": "php-webdriver/webdriver", - "version": "1.12.0", + "version": "1.12.1", "source": { "type": "git", "url": "https://github.com/php-webdriver/php-webdriver.git", - "reference": "99d4856ed7dffcdf6a52eccd6551e83d8d557ceb" + "reference": "b27ddf458d273c7d4602106fcaf978aa0b7fe15a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-webdriver/php-webdriver/zipball/99d4856ed7dffcdf6a52eccd6551e83d8d557ceb", - "reference": "99d4856ed7dffcdf6a52eccd6551e83d8d557ceb", + "url": "https://api.github.com/repos/php-webdriver/php-webdriver/zipball/b27ddf458d273c7d4602106fcaf978aa0b7fe15a", + "reference": "b27ddf458d273c7d4602106fcaf978aa0b7fe15a", "shasum": "" }, "require": { @@ -13000,9 +13027,9 @@ ], "support": { "issues": "https://github.com/php-webdriver/php-webdriver/issues", - "source": "https://github.com/php-webdriver/php-webdriver/tree/1.12.0" + "source": "https://github.com/php-webdriver/php-webdriver/tree/1.12.1" }, - "time": "2021-10-14T09:30:02+00:00" + "time": "2022-05-03T12:16:34+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -14679,16 +14706,16 @@ }, { "name": "symfony/debug", - "version": "v4.4.37", + "version": "v4.4.41", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "5de6c6e7f52b364840e53851c126be4d71e60470" + "reference": "6637e62480b60817b9a6984154a533e8e64c6bd5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/5de6c6e7f52b364840e53851c126be4d71e60470", - "reference": "5de6c6e7f52b364840e53851c126be4d71e60470", + "url": "https://api.github.com/repos/symfony/debug/zipball/6637e62480b60817b9a6984154a533e8e64c6bd5", + "reference": "6637e62480b60817b9a6984154a533e8e64c6bd5", "shasum": "" }, "require": { @@ -14727,7 +14754,7 @@ "description": "Provides tools to ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/debug/tree/v4.4.37" + "source": "https://github.com/symfony/debug/tree/v4.4.41" }, "funding": [ { @@ -14743,7 +14770,7 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:41:36+00:00" + "time": "2022-04-12T15:19:55+00:00" }, { "name": "symfony/polyfill-php70", @@ -15002,16 +15029,16 @@ }, { "name": "zircote/swagger-php", - "version": "3.3.4", + "version": "3.3.6", "source": { "type": "git", "url": "https://github.com/zircote/swagger-php.git", - "reference": "7313ff7d1991d00e52d0e852087693d4482df631" + "reference": "5016342f966fca29dda84455de066c5c90d37941" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zircote/swagger-php/zipball/7313ff7d1991d00e52d0e852087693d4482df631", - "reference": "7313ff7d1991d00e52d0e852087693d4482df631", + "url": "https://api.github.com/repos/zircote/swagger-php/zipball/5016342f966fca29dda84455de066c5c90d37941", + "reference": "5016342f966fca29dda84455de066c5c90d37941", "shasum": "" }, "require": { @@ -15069,9 +15096,9 @@ ], "support": { "issues": "https://github.com/zircote/swagger-php/issues", - "source": "https://github.com/zircote/swagger-php/tree/3.3.4" + "source": "https://github.com/zircote/swagger-php/tree/3.3.6" }, - "time": "2022-02-22T21:09:06+00:00" + "time": "2022-05-21T01:52:14+00:00" } ], "aliases": [], @@ -15091,5 +15118,5 @@ "platform-dev": { "php": "^7.4|^8.0" }, - "plugin-api-version": "2.0.0" + "plugin-api-version": "2.1.0" } diff --git a/database/schema/mysql-schema.dump b/database/schema/mysql-schema.dump new file mode 100644 index 000000000000..bb4351fe5ebd --- /dev/null +++ b/database/schema/mysql-schema.dump @@ -0,0 +1,2184 @@ +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +DROP TABLE IF EXISTS `accounts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `accounts` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `plan` enum('pro','enterprise','white_label') COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `plan_term` enum('month','year') COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `plan_started` date DEFAULT NULL, + `plan_paid` date DEFAULT NULL, + `plan_expires` date DEFAULT NULL, + `user_agent` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `key` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `payment_id` int(10) unsigned DEFAULT NULL, + `default_company_id` int(10) unsigned NOT NULL, + `trial_started` date DEFAULT NULL, + `trial_plan` enum('pro','enterprise') COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `plan_price` decimal(7,2) DEFAULT NULL, + `num_users` smallint(6) NOT NULL DEFAULT 1, + `utm_source` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `utm_medium` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `utm_campaign` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `utm_term` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `utm_content` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `latest_version` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0.0.0', + `report_errors` tinyint(1) NOT NULL DEFAULT 0, + `referral_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `is_scheduler_running` tinyint(1) NOT NULL DEFAULT 0, + `trial_duration` int(10) unsigned DEFAULT NULL, + `is_onboarding` tinyint(1) NOT NULL DEFAULT 0, + `onboarding` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_migrated` tinyint(1) NOT NULL DEFAULT 0, + `platform` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `hosted_client_count` int(10) unsigned DEFAULT NULL, + `hosted_company_count` int(10) unsigned DEFAULT NULL, + `inapp_transaction_id` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `accounts_payment_id_index` (`payment_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `activities`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `activities` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `client_id` int(10) unsigned DEFAULT NULL, + `client_contact_id` int(10) unsigned DEFAULT NULL, + `account_id` int(10) unsigned DEFAULT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `payment_id` int(10) unsigned DEFAULT NULL, + `invoice_id` int(10) unsigned DEFAULT NULL, + `credit_id` int(10) unsigned DEFAULT NULL, + `invitation_id` int(10) unsigned DEFAULT NULL, + `task_id` int(10) unsigned DEFAULT NULL, + `expense_id` int(10) unsigned DEFAULT NULL, + `activity_type_id` int(10) unsigned DEFAULT NULL, + `ip` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `is_system` tinyint(1) NOT NULL DEFAULT 0, + `notes` text COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `token_id` int(10) unsigned DEFAULT NULL, + `quote_id` int(10) unsigned DEFAULT NULL, + `subscription_id` int(10) unsigned DEFAULT NULL, + `recurring_invoice_id` int(10) unsigned DEFAULT NULL, + `recurring_expense_id` int(10) unsigned DEFAULT NULL, + `recurring_quote_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `activities_vendor_id_company_id_index` (`vendor_id`,`company_id`), + KEY `activities_project_id_company_id_index` (`project_id`,`company_id`), + KEY `activities_user_id_company_id_index` (`user_id`,`company_id`), + KEY `activities_client_id_company_id_index` (`client_id`,`company_id`), + KEY `activities_payment_id_company_id_index` (`payment_id`,`company_id`), + KEY `activities_invoice_id_company_id_index` (`invoice_id`,`company_id`), + KEY `activities_credit_id_company_id_index` (`credit_id`,`company_id`), + KEY `activities_invitation_id_company_id_index` (`invitation_id`,`company_id`), + KEY `activities_task_id_company_id_index` (`task_id`,`company_id`), + KEY `activities_expense_id_company_id_index` (`expense_id`,`company_id`), + KEY `activities_client_contact_id_company_id_index` (`client_contact_id`,`company_id`), + KEY `activities_company_id_foreign` (`company_id`), + CONSTRAINT `activities_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `backups`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `backups` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `activity_id` int(10) unsigned NOT NULL, + `json_backup` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `html_backup` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `amount` decimal(16,4) NOT NULL, + `filename` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `backups_activity_id_foreign` (`activity_id`), + CONSTRAINT `backups_activity_id_foreign` FOREIGN KEY (`activity_id`) REFERENCES `activities` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `bank_companies`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `bank_companies` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `bank_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `username` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `bank_companies_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `bank_companies_user_id_foreign` (`user_id`), + KEY `bank_companies_bank_id_foreign` (`bank_id`), + CONSTRAINT `bank_companies_bank_id_foreign` FOREIGN KEY (`bank_id`) REFERENCES `banks` (`id`), + CONSTRAINT `bank_companies_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `bank_companies_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `bank_subcompanies`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `bank_subcompanies` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `bank_company_id` int(10) unsigned NOT NULL, + `account_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `website` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `account_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `bank_subcompanies_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `bank_subcompanies_user_id_foreign` (`user_id`), + KEY `bank_subcompanies_bank_company_id_foreign` (`bank_company_id`), + CONSTRAINT `bank_subcompanies_bank_company_id_foreign` FOREIGN KEY (`bank_company_id`) REFERENCES `bank_companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `bank_subcompanies_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `bank_subcompanies_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `banks`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `banks` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `remote_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `bank_library_id` int(11) NOT NULL DEFAULT 1, + `config` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `client_contacts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `client_contacts` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `client_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `first_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_verified_at` timestamp NULL DEFAULT NULL, + `confirmation_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_primary` tinyint(1) NOT NULL DEFAULT 0, + `confirmed` tinyint(1) NOT NULL DEFAULT 0, + `last_login` timestamp NULL DEFAULT NULL, + `failed_logins` smallint(6) DEFAULT NULL, + `oauth_user_id` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `oauth_provider_id` int(10) unsigned DEFAULT NULL, + `google_2fa_secret` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `accepted_terms_version` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `avatar_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `avatar_size` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_locked` tinyint(1) NOT NULL DEFAULT 0, + `send_email` tinyint(1) NOT NULL DEFAULT 1, + `contact_key` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `client_contacts_oauth_user_id_unique` (`oauth_user_id`), + UNIQUE KEY `client_contacts_oauth_provider_id_unique` (`oauth_provider_id`), + KEY `client_contacts_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `client_contacts_company_id_email_deleted_at_index` (`company_id`,`email`,`deleted_at`), + KEY `client_contacts_company_id_index` (`company_id`), + KEY `client_contacts_client_id_index` (`client_id`), + KEY `client_contacts_user_id_index` (`user_id`), + CONSTRAINT `client_contacts_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `client_gateway_tokens`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `client_gateway_tokens` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `client_id` int(10) unsigned DEFAULT NULL, + `token` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `routing_number` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `company_gateway_id` int(10) unsigned NOT NULL, + `gateway_customer_reference` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `gateway_type_id` int(10) unsigned NOT NULL, + `is_default` tinyint(1) NOT NULL DEFAULT 0, + `meta` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `client_gateway_tokens_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `client_gateway_tokens_client_id_foreign` (`client_id`), + CONSTRAINT `client_gateway_tokens_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `client_gateway_tokens_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `client_subscriptions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `client_subscriptions` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `subscription_id` int(10) unsigned NOT NULL, + `recurring_invoice_id` int(10) unsigned DEFAULT NULL, + `client_id` int(10) unsigned NOT NULL, + `trial_started` int(10) unsigned DEFAULT NULL, + `trial_ends` int(10) unsigned DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `invoice_id` int(10) unsigned DEFAULT NULL, + `quantity` int(10) unsigned NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `client_subscriptions_subscription_id_foreign` (`subscription_id`), + KEY `client_subscriptions_recurring_invoice_id_foreign` (`recurring_invoice_id`), + KEY `client_subscriptions_client_id_foreign` (`client_id`), + KEY `client_subscriptions_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `client_subscriptions_invoice_id_foreign` (`invoice_id`), + CONSTRAINT `client_subscriptions_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`), + CONSTRAINT `client_subscriptions_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE, + CONSTRAINT `client_subscriptions_invoice_id_foreign` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `client_subscriptions_recurring_invoice_id_foreign` FOREIGN KEY (`recurring_invoice_id`) REFERENCES `recurring_invoices` (`id`), + CONSTRAINT `client_subscriptions_subscription_id_foreign` FOREIGN KEY (`subscription_id`) REFERENCES `subscriptions` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `clients`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clients` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `website` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `private_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `client_hash` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `balance` decimal(20,6) NOT NULL DEFAULT 0.000000, + `paid_to_date` decimal(20,6) NOT NULL DEFAULT 0.000000, + `credit_balance` decimal(20,6) NOT NULL DEFAULT 0.000000, + `last_login` timestamp NULL DEFAULT NULL, + `industry_id` int(10) unsigned DEFAULT NULL, + `size_id` int(10) unsigned DEFAULT NULL, + `address1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `address2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `city` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `postal_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `country_id` int(10) unsigned DEFAULT NULL, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `shipping_address1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `shipping_address2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `shipping_city` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `shipping_state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `shipping_postal_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `shipping_country_id` int(10) unsigned DEFAULT NULL, + `settings` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `group_settings_id` int(10) unsigned DEFAULT NULL, + `vat_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `id_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `clients_company_id_number_unique` (`company_id`,`number`), + KEY `clients_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `clients_industry_id_foreign` (`industry_id`), + KEY `clients_size_id_foreign` (`size_id`), + KEY `clients_company_id_index` (`company_id`), + KEY `clients_user_id_index` (`user_id`), + CONSTRAINT `clients_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `clients_industry_id_foreign` FOREIGN KEY (`industry_id`) REFERENCES `industries` (`id`), + CONSTRAINT `clients_size_id_foreign` FOREIGN KEY (`size_id`) REFERENCES `sizes` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `companies`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `companies` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `account_id` int(10) unsigned NOT NULL, + `industry_id` int(10) unsigned DEFAULT NULL, + `ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `company_key` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `convert_products` tinyint(1) NOT NULL DEFAULT 0, + `fill_products` tinyint(1) NOT NULL DEFAULT 1, + `update_products` tinyint(1) NOT NULL DEFAULT 1, + `show_product_details` tinyint(1) NOT NULL DEFAULT 1, + `client_can_register` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_taxes1` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_taxes2` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_taxes3` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_taxes4` tinyint(1) NOT NULL DEFAULT 0, + `show_product_cost` tinyint(1) NOT NULL DEFAULT 0, + `enabled_tax_rates` int(10) unsigned NOT NULL DEFAULT 0, + `enabled_modules` int(10) unsigned NOT NULL DEFAULT 0, + `enable_product_cost` tinyint(1) NOT NULL DEFAULT 0, + `enable_product_quantity` tinyint(1) NOT NULL DEFAULT 1, + `default_quantity` tinyint(1) NOT NULL DEFAULT 1, + `subdomain` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `db` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `size_id` int(10) unsigned DEFAULT NULL, + `first_day_of_week` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `first_month_of_year` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `portal_mode` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'subdomain', + `portal_domain` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `enable_modules` smallint(6) NOT NULL DEFAULT 0, + `custom_fields` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, + `settings` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, + `slack_webhook_url` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `google_analytics_key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `enabled_item_tax_rates` int(11) NOT NULL DEFAULT 0, + `is_large` tinyint(1) NOT NULL DEFAULT 0, + `enable_shop_api` tinyint(1) NOT NULL DEFAULT 0, + `default_auto_bill` enum('off','always','optin','optout') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'off', + `mark_expenses_invoiceable` tinyint(1) NOT NULL DEFAULT 0, + `mark_expenses_paid` tinyint(1) NOT NULL DEFAULT 0, + `invoice_expense_documents` tinyint(1) NOT NULL DEFAULT 0, + `auto_start_tasks` tinyint(1) NOT NULL DEFAULT 0, + `invoice_task_timelog` tinyint(1) NOT NULL DEFAULT 1, + `invoice_task_documents` tinyint(1) NOT NULL DEFAULT 0, + `show_tasks_table` tinyint(1) NOT NULL DEFAULT 0, + `is_disabled` tinyint(1) NOT NULL DEFAULT 0, + `default_task_is_date_based` tinyint(1) NOT NULL DEFAULT 0, + `enable_product_discount` tinyint(1) NOT NULL DEFAULT 0, + `calculate_expense_tax_by_amount` tinyint(1) NOT NULL, + `expense_inclusive_taxes` tinyint(1) NOT NULL DEFAULT 0, + `session_timeout` int(11) NOT NULL DEFAULT 0, + `oauth_password_required` tinyint(1) NOT NULL DEFAULT 0, + `invoice_task_datelog` tinyint(1) NOT NULL DEFAULT 1, + `default_password_timeout` int(11) NOT NULL DEFAULT 30, + `show_task_end_date` tinyint(1) NOT NULL DEFAULT 0, + `markdown_enabled` tinyint(1) NOT NULL DEFAULT 1, + `use_comma_as_decimal_place` tinyint(1) NOT NULL DEFAULT 0, + `report_include_drafts` tinyint(1) NOT NULL DEFAULT 0, + `client_registration_fields` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `convert_rate_to_client` tinyint(1) NOT NULL DEFAULT 1, + `markdown_email_enabled` tinyint(1) NOT NULL DEFAULT 0, + `stop_on_unpaid_recurring` tinyint(1) NOT NULL DEFAULT 0, + `use_quote_terms_on_conversion` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `companies_company_key_unique` (`company_key`), + KEY `companies_industry_id_foreign` (`industry_id`), + KEY `companies_size_id_foreign` (`size_id`), + KEY `companies_account_id_index` (`account_id`), + CONSTRAINT `companies_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `companies_industry_id_foreign` FOREIGN KEY (`industry_id`) REFERENCES `industries` (`id`), + CONSTRAINT `companies_size_id_foreign` FOREIGN KEY (`size_id`) REFERENCES `sizes` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `company_gateways`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `company_gateways` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `gateway_key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `accepted_credit_cards` int(10) unsigned NOT NULL, + `require_cvv` tinyint(1) NOT NULL DEFAULT 1, + `require_billing_address` tinyint(1) DEFAULT 1, + `require_shipping_address` tinyint(1) DEFAULT 1, + `update_details` tinyint(1) DEFAULT 0, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `config` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, + `fees_and_limits` text COLLATE utf8mb4_unicode_ci NOT NULL, + `custom_value1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `token_billing` enum('off','always','optin','optout') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'off', + `label` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `require_client_name` tinyint(1) NOT NULL DEFAULT 0, + `require_postal_code` tinyint(1) NOT NULL DEFAULT 0, + `require_client_phone` tinyint(1) NOT NULL DEFAULT 0, + `require_contact_name` tinyint(1) NOT NULL DEFAULT 0, + `require_contact_email` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `company_gateways_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `company_gateways_gateway_key_foreign` (`gateway_key`), + KEY `company_gateways_user_id_foreign` (`user_id`), + CONSTRAINT `company_gateways_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `company_gateways_gateway_key_foreign` FOREIGN KEY (`gateway_key`) REFERENCES `gateways` (`key`), + CONSTRAINT `company_gateways_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `company_ledgers`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `company_ledgers` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `client_id` int(10) unsigned DEFAULT NULL, + `user_id` int(10) unsigned DEFAULT NULL, + `activity_id` int(10) unsigned DEFAULT NULL, + `adjustment` decimal(20,6) DEFAULT NULL, + `balance` decimal(20,6) DEFAULT NULL, + `notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `hash` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `company_ledgerable_id` int(10) unsigned NOT NULL, + `company_ledgerable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `company_ledgers_company_id_foreign` (`company_id`), + KEY `company_ledgers_client_id_foreign` (`client_id`), + CONSTRAINT `company_ledgers_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `company_ledgers_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `company_tokens`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `company_tokens` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `account_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `token` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `is_system` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `company_tokens_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `company_tokens_account_id_foreign` (`account_id`), + KEY `company_tokens_user_id_foreign` (`user_id`), + KEY `company_tokens_company_id_index` (`company_id`), + CONSTRAINT `company_tokens_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `company_tokens_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `company_tokens_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `company_user`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `company_user` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `account_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `permissions` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `notifications` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `settings` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `slack_webhook_url` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `is_owner` tinyint(1) NOT NULL DEFAULT 0, + `is_admin` tinyint(1) NOT NULL DEFAULT 0, + `is_locked` tinyint(1) NOT NULL DEFAULT 0, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `permissions_updated_at` timestamp NOT NULL DEFAULT current_timestamp(), + `ninja_portal_url` text COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + UNIQUE KEY `company_user_company_id_user_id_unique` (`company_id`,`user_id`), + KEY `company_user_account_id_company_id_deleted_at_index` (`account_id`,`company_id`,`deleted_at`), + KEY `company_user_user_id_index` (`user_id`), + CONSTRAINT `company_user_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE, + CONSTRAINT `company_user_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `countries`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `countries` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `capital` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `citizenship` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `country_code` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `currency` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `currency_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `currency_sub_unit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `full_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `iso_3166_2` varchar(2) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `iso_3166_3` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `region_code` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `sub_region_code` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `eea` tinyint(1) NOT NULL DEFAULT 0, + `swap_postal_code` tinyint(1) NOT NULL DEFAULT 0, + `swap_currency_symbol` tinyint(1) NOT NULL DEFAULT 0, + `thousand_separator` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT '', + `decimal_separator` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT '', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `credit_invitations`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `credit_invitations` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `client_contact_id` int(10) unsigned NOT NULL, + `credit_id` int(10) unsigned NOT NULL, + `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `transaction_reference` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `message_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_error` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `signature_base64` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `signature_date` datetime DEFAULT NULL, + `sent_date` datetime DEFAULT NULL, + `viewed_date` datetime DEFAULT NULL, + `opened_date` datetime DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `signature_ip` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_status` enum('delivered','bounced','spam') COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `credit_invitations_client_contact_id_credit_id_unique` (`client_contact_id`,`credit_id`), + KEY `credit_invitations_user_id_foreign` (`user_id`), + KEY `credit_invitations_company_id_foreign` (`company_id`), + KEY `credit_invitations_deleted_at_credit_id_company_id_index` (`deleted_at`,`credit_id`,`company_id`), + KEY `credit_invitations_credit_id_index` (`credit_id`), + KEY `credit_invitations_key_index` (`key`), + KEY `credit_invitations_message_id_index` (`message_id`), + CONSTRAINT `credit_invitations_client_contact_id_foreign` FOREIGN KEY (`client_contact_id`) REFERENCES `client_contacts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `credit_invitations_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `credit_invitations_credit_id_foreign` FOREIGN KEY (`credit_id`) REFERENCES `credits` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `credit_invitations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `credits`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `credits` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `client_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `status_id` int(10) unsigned NOT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `recurring_id` int(10) unsigned DEFAULT NULL, + `design_id` int(10) unsigned DEFAULT NULL, + `invoice_id` int(10) unsigned DEFAULT NULL, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `discount` double(8,2) NOT NULL DEFAULT 0.00, + `is_amount_discount` tinyint(1) NOT NULL DEFAULT 0, + `po_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `date` date DEFAULT NULL, + `last_sent_date` datetime DEFAULT NULL, + `due_date` date DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `line_items` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `backup` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `footer` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `private_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `terms` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_name1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate1` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate2` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate3` decimal(20,6) NOT NULL DEFAULT 0.000000, + `total_taxes` decimal(20,6) NOT NULL DEFAULT 0.000000, + `uses_inclusive_taxes` tinyint(1) NOT NULL DEFAULT 0, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `next_send_date` datetime DEFAULT NULL, + `custom_surcharge1` decimal(20,6) DEFAULT NULL, + `custom_surcharge2` decimal(20,6) DEFAULT NULL, + `custom_surcharge3` decimal(20,6) DEFAULT NULL, + `custom_surcharge4` decimal(20,6) DEFAULT NULL, + `custom_surcharge_tax1` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax2` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax3` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax4` tinyint(1) NOT NULL DEFAULT 0, + `exchange_rate` decimal(20,6) NOT NULL DEFAULT 1.000000, + `amount` decimal(20,6) NOT NULL, + `balance` decimal(20,6) NOT NULL, + `partial` decimal(20,6) DEFAULT NULL, + `partial_due_date` datetime DEFAULT NULL, + `last_viewed` datetime DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `reminder1_sent` date DEFAULT NULL, + `reminder2_sent` date DEFAULT NULL, + `reminder3_sent` date DEFAULT NULL, + `reminder_last_sent` date DEFAULT NULL, + `paid_to_date` decimal(20,6) NOT NULL DEFAULT 0.000000, + `subscription_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `credits_company_id_number_unique` (`company_id`,`number`), + KEY `credits_user_id_foreign` (`user_id`), + KEY `credits_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `credits_client_id_index` (`client_id`), + KEY `credits_company_id_index` (`company_id`), + CONSTRAINT `credits_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `credits_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `credits_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `currencies`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `currencies` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `symbol` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `precision` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `thousand_separator` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `decimal_separator` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `swap_currency_symbol` tinyint(1) NOT NULL DEFAULT 0, + `exchange_rate` decimal(13,6) NOT NULL DEFAULT 1.000000, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `date_formats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `date_formats` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `format` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `format_moment` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `format_dart` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `datetime_formats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `datetime_formats` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `format` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `format_moment` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `format_dart` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `designs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `designs` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `is_custom` tinyint(1) NOT NULL DEFAULT 1, + `is_active` tinyint(1) NOT NULL DEFAULT 1, + `design` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `designs_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `designs_company_id_index` (`company_id`), + CONSTRAINT `designs_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `documents`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `documents` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `preview` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `disk` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `hash` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `size` int(10) unsigned DEFAULT NULL, + `width` int(10) unsigned DEFAULT NULL, + `height` int(10) unsigned DEFAULT NULL, + `is_default` tinyint(1) NOT NULL DEFAULT 0, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `documentable_id` int(10) unsigned NOT NULL, + `documentable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `is_public` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `documents_company_id_index` (`company_id`), + CONSTRAINT `documents_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `expense_categories`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `expense_categories` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(10) unsigned NOT NULL, + `company_id` int(10) unsigned NOT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `color` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#fff', + PRIMARY KEY (`id`), + KEY `expense_categories_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `expense_categories_company_id_index` (`company_id`), + CONSTRAINT `expense_categories_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `expenses`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `expenses` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `invoice_id` int(10) unsigned DEFAULT NULL, + `client_id` int(10) unsigned DEFAULT NULL, + `bank_id` int(10) unsigned DEFAULT NULL, + `invoice_currency_id` int(10) unsigned DEFAULT NULL, + `currency_id` int(10) unsigned DEFAULT NULL, + `category_id` int(10) unsigned DEFAULT NULL, + `payment_type_id` int(10) unsigned DEFAULT NULL, + `recurring_expense_id` int(10) unsigned DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `amount` decimal(20,6) NOT NULL, + `foreign_amount` decimal(20,6) NOT NULL, + `exchange_rate` decimal(20,6) NOT NULL DEFAULT 1.000000, + `tax_name1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate1` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate2` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate3` decimal(20,6) NOT NULL DEFAULT 0.000000, + `date` date DEFAULT NULL, + `payment_date` date DEFAULT NULL, + `private_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `transaction_reference` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `should_be_invoiced` tinyint(1) NOT NULL DEFAULT 0, + `invoice_documents` tinyint(1) NOT NULL DEFAULT 1, + `transaction_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `tax_amount1` decimal(20,6) NOT NULL DEFAULT 1.000000, + `tax_amount2` decimal(20,6) NOT NULL DEFAULT 1.000000, + `tax_amount3` decimal(20,6) NOT NULL DEFAULT 1.000000, + `uses_inclusive_taxes` tinyint(1) NOT NULL DEFAULT 0, + `calculate_tax_by_amount` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `expenses_company_id_number_unique` (`company_id`,`number`), + KEY `expenses_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `expenses_user_id_foreign` (`user_id`), + KEY `expenses_company_id_index` (`company_id`), + CONSTRAINT `expenses_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `failed_jobs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `failed_jobs` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, + `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, + `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `failed_at` timestamp NOT NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gateway_types`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `gateway_types` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `alias` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `gateways`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `gateways` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `provider` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `visible` tinyint(1) NOT NULL DEFAULT 1, + `sort_order` int(10) unsigned NOT NULL DEFAULT 10000, + `site_url` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_offsite` tinyint(1) NOT NULL DEFAULT 0, + `is_secure` tinyint(1) NOT NULL DEFAULT 0, + `fields` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `default_gateway_type_id` int(10) unsigned NOT NULL DEFAULT 1, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `gateways_key_unique` (`key`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `group_settings`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `group_settings` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `settings` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_default` tinyint(1) NOT NULL DEFAULT 0, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `group_settings_company_id_deleted_at_index` (`company_id`,`deleted_at`), + CONSTRAINT `group_settings_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `industries`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `industries` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `invoice_invitations`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `invoice_invitations` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `client_contact_id` int(10) unsigned NOT NULL, + `invoice_id` int(10) unsigned NOT NULL, + `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `transaction_reference` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `message_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_error` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `signature_base64` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `signature_date` datetime DEFAULT NULL, + `sent_date` datetime DEFAULT NULL, + `viewed_date` datetime DEFAULT NULL, + `opened_date` datetime DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `signature_ip` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_status` enum('delivered','bounced','spam') COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `invoice_invitations_client_contact_id_invoice_id_unique` (`client_contact_id`,`invoice_id`), + KEY `invoice_invitations_user_id_foreign` (`user_id`), + KEY `invoice_invitations_company_id_foreign` (`company_id`), + KEY `invoice_invitations_deleted_at_invoice_id_company_id_index` (`deleted_at`,`invoice_id`,`company_id`), + KEY `invoice_invitations_invoice_id_index` (`invoice_id`), + KEY `invoice_invitations_key_index` (`key`), + KEY `invoice_invitations_message_id_index` (`message_id`), + CONSTRAINT `invoice_invitations_client_contact_id_foreign` FOREIGN KEY (`client_contact_id`) REFERENCES `client_contacts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `invoice_invitations_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `invoice_invitations_invoice_id_foreign` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `invoice_invitations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `invoices`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `invoices` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `client_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `status_id` int(10) unsigned NOT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `recurring_id` int(10) unsigned DEFAULT NULL, + `design_id` int(10) unsigned DEFAULT NULL, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `discount` double(8,2) NOT NULL DEFAULT 0.00, + `is_amount_discount` tinyint(1) NOT NULL DEFAULT 0, + `po_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `date` date DEFAULT NULL, + `last_sent_date` date DEFAULT NULL, + `due_date` datetime DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `line_items` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `backup` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `footer` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `private_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `terms` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_name1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate1` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate2` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate3` decimal(20,6) NOT NULL DEFAULT 0.000000, + `total_taxes` decimal(20,6) NOT NULL DEFAULT 0.000000, + `uses_inclusive_taxes` tinyint(1) NOT NULL DEFAULT 0, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `next_send_date` datetime DEFAULT NULL, + `custom_surcharge1` decimal(20,6) DEFAULT NULL, + `custom_surcharge2` decimal(20,6) DEFAULT NULL, + `custom_surcharge3` decimal(20,6) DEFAULT NULL, + `custom_surcharge4` decimal(20,6) DEFAULT NULL, + `custom_surcharge_tax1` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax2` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax3` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax4` tinyint(1) NOT NULL DEFAULT 0, + `exchange_rate` decimal(20,6) NOT NULL DEFAULT 1.000000, + `amount` decimal(20,6) NOT NULL, + `balance` decimal(20,6) NOT NULL, + `partial` decimal(20,6) DEFAULT NULL, + `partial_due_date` datetime DEFAULT NULL, + `last_viewed` datetime DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `reminder1_sent` date DEFAULT NULL, + `reminder2_sent` date DEFAULT NULL, + `reminder3_sent` date DEFAULT NULL, + `reminder_last_sent` date DEFAULT NULL, + `auto_bill_enabled` tinyint(1) NOT NULL DEFAULT 0, + `paid_to_date` decimal(20,6) NOT NULL DEFAULT 0.000000, + `subscription_id` int(10) unsigned DEFAULT NULL, + `auto_bill_tries` smallint(6) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `invoices_company_id_number_unique` (`company_id`,`number`), + KEY `invoices_user_id_foreign` (`user_id`), + KEY `invoices_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `invoices_client_id_index` (`client_id`), + KEY `invoices_company_id_index` (`company_id`), + CONSTRAINT `invoices_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `invoices_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `invoices_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `jobs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `jobs` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `queue` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `attempts` tinyint(3) unsigned NOT NULL, + `reserved_at` int(10) unsigned DEFAULT NULL, + `available_at` int(10) unsigned NOT NULL, + `created_at` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`), + KEY `jobs_queue_index` (`queue`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `languages`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `languages` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `licenses`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `licenses` ( + `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, + `first_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `license_key` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_claimed` tinyint(1) DEFAULT NULL, + `transaction_reference` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `product_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `licenses_license_key_unique` (`license_key`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `migrations`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `migrations` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `batch` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `password_resets`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `password_resets` ( + `email` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + KEY `password_resets_email_index` (`email`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `payment_hashes`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `payment_hashes` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `hash` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `fee_total` decimal(16,4) NOT NULL, + `fee_invoice_id` int(10) unsigned DEFAULT NULL, + `data` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, + `payment_id` int(10) unsigned DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `payment_hashes_payment_id_foreign` (`payment_id`), + CONSTRAINT `payment_hashes_payment_id_foreign` FOREIGN KEY (`payment_id`) REFERENCES `payments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `payment_libraries`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `payment_libraries` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `visible` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `payment_terms`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `payment_terms` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `num_days` int(11) DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `company_id` int(10) unsigned DEFAULT NULL, + `user_id` int(10) unsigned DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `payment_terms_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `payment_terms_user_id_foreign` (`user_id`), + CONSTRAINT `payment_terms_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `payment_terms_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `payment_types`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `payment_types` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `gateway_type_id` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `paymentables`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `paymentables` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `payment_id` int(10) unsigned NOT NULL, + `paymentable_id` int(10) unsigned NOT NULL, + `amount` decimal(16,4) NOT NULL DEFAULT 0.0000, + `refunded` decimal(16,4) NOT NULL DEFAULT 0.0000, + `paymentable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `paymentables_payment_id_foreign` (`payment_id`), + CONSTRAINT `paymentables_payment_id_foreign` FOREIGN KEY (`payment_id`) REFERENCES `payments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `payments`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `payments` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `client_id` int(10) unsigned NOT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `user_id` int(10) unsigned DEFAULT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `client_contact_id` int(10) unsigned DEFAULT NULL, + `invitation_id` int(10) unsigned DEFAULT NULL, + `company_gateway_id` int(10) unsigned DEFAULT NULL, + `gateway_type_id` int(10) unsigned DEFAULT NULL, + `type_id` int(10) unsigned DEFAULT NULL, + `status_id` int(10) unsigned NOT NULL, + `amount` decimal(20,6) NOT NULL DEFAULT 0.000000, + `refunded` decimal(20,6) NOT NULL DEFAULT 0.000000, + `applied` decimal(20,6) NOT NULL DEFAULT 0.000000, + `date` date DEFAULT NULL, + `transaction_reference` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `payer_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `private_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `is_manual` tinyint(1) NOT NULL DEFAULT 0, + `exchange_rate` decimal(20,6) NOT NULL DEFAULT 1.000000, + `currency_id` int(10) unsigned NOT NULL, + `exchange_currency_id` int(10) unsigned DEFAULT NULL, + `meta` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `payments_company_id_number_unique` (`company_id`,`number`), + KEY `payments_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `payments_client_contact_id_foreign` (`client_contact_id`), + KEY `payments_company_gateway_id_foreign` (`company_gateway_id`), + KEY `payments_user_id_foreign` (`user_id`), + KEY `payments_company_id_index` (`company_id`), + KEY `payments_client_id_index` (`client_id`), + KEY `payments_status_id_index` (`status_id`), + CONSTRAINT `payments_client_contact_id_foreign` FOREIGN KEY (`client_contact_id`) REFERENCES `client_contacts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `payments_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `payments_company_gateway_id_foreign` FOREIGN KEY (`company_gateway_id`) REFERENCES `company_gateways` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `payments_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `payments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `products`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `products` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `product_key` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `cost` decimal(20,6) NOT NULL DEFAULT 0.000000, + `price` decimal(20,6) NOT NULL DEFAULT 0.000000, + `quantity` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate1` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate2` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate3` decimal(20,6) NOT NULL DEFAULT 0.000000, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `products_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `products_user_id_foreign` (`user_id`), + KEY `products_company_id_index` (`company_id`), + CONSTRAINT `products_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `products_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `projects`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `projects` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `client_id` int(10) unsigned DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `task_rate` decimal(20,6) NOT NULL DEFAULT 0.000000, + `due_date` date DEFAULT NULL, + `private_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `budgeted_hours` decimal(20,6) NOT NULL, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL, + `public_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `color` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#fff', + PRIMARY KEY (`id`), + UNIQUE KEY `projects_company_id_number_unique` (`company_id`,`number`), + KEY `projects_user_id_foreign` (`user_id`), + KEY `projects_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `projects_company_id_index` (`company_id`), + CONSTRAINT `projects_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `projects_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quote_invitations`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `quote_invitations` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `client_contact_id` int(10) unsigned NOT NULL, + `quote_id` int(10) unsigned NOT NULL, + `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `transaction_reference` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `message_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_error` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `signature_base64` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `signature_date` datetime DEFAULT NULL, + `sent_date` datetime DEFAULT NULL, + `viewed_date` datetime DEFAULT NULL, + `opened_date` datetime DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `signature_ip` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_status` enum('delivered','bounced','spam') COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `quote_invitations_client_contact_id_quote_id_unique` (`client_contact_id`,`quote_id`), + KEY `quote_invitations_user_id_foreign` (`user_id`), + KEY `quote_invitations_company_id_foreign` (`company_id`), + KEY `quote_invitations_deleted_at_quote_id_company_id_index` (`deleted_at`,`quote_id`,`company_id`), + KEY `quote_invitations_quote_id_index` (`quote_id`), + KEY `quote_invitations_key_index` (`key`), + KEY `quote_invitations_message_id_index` (`message_id`), + CONSTRAINT `quote_invitations_client_contact_id_foreign` FOREIGN KEY (`client_contact_id`) REFERENCES `client_contacts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `quote_invitations_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `quote_invitations_quote_id_foreign` FOREIGN KEY (`quote_id`) REFERENCES `quotes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `quote_invitations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `quotes`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `quotes` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `client_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `status_id` int(10) unsigned NOT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `recurring_id` int(10) unsigned DEFAULT NULL, + `design_id` int(10) unsigned DEFAULT NULL, + `invoice_id` int(10) unsigned DEFAULT NULL, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `discount` double(8,2) NOT NULL DEFAULT 0.00, + `is_amount_discount` tinyint(1) NOT NULL DEFAULT 0, + `po_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `date` date DEFAULT NULL, + `last_sent_date` date DEFAULT NULL, + `due_date` datetime DEFAULT NULL, + `next_send_date` datetime DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `line_items` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `backup` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `footer` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `private_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `terms` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_name1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate1` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate2` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate3` decimal(20,6) NOT NULL DEFAULT 0.000000, + `total_taxes` decimal(20,6) NOT NULL DEFAULT 0.000000, + `uses_inclusive_taxes` tinyint(1) NOT NULL DEFAULT 0, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_surcharge1` decimal(20,6) DEFAULT NULL, + `custom_surcharge2` decimal(20,6) DEFAULT NULL, + `custom_surcharge3` decimal(20,6) DEFAULT NULL, + `custom_surcharge4` decimal(20,6) DEFAULT NULL, + `custom_surcharge_tax1` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax2` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax3` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax4` tinyint(1) NOT NULL DEFAULT 0, + `exchange_rate` decimal(20,6) NOT NULL DEFAULT 1.000000, + `amount` decimal(20,6) NOT NULL, + `balance` decimal(20,6) NOT NULL, + `partial` decimal(20,6) DEFAULT NULL, + `partial_due_date` datetime DEFAULT NULL, + `last_viewed` datetime DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `reminder1_sent` date DEFAULT NULL, + `reminder2_sent` date DEFAULT NULL, + `reminder3_sent` date DEFAULT NULL, + `reminder_last_sent` date DEFAULT NULL, + `paid_to_date` decimal(20,6) NOT NULL DEFAULT 0.000000, + `subscription_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `quotes_company_id_number_unique` (`company_id`,`number`), + KEY `quotes_user_id_foreign` (`user_id`), + KEY `quotes_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `quotes_client_id_index` (`client_id`), + KEY `quotes_company_id_index` (`company_id`), + CONSTRAINT `quotes_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `quotes_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `quotes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +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(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `user_id` int(10) unsigned NOT NULL, + `status_id` int(10) unsigned NOT NULL, + `invoice_id` int(10) unsigned DEFAULT NULL, + `client_id` int(10) unsigned DEFAULT NULL, + `bank_id` int(10) unsigned DEFAULT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `payment_type_id` int(10) unsigned DEFAULT NULL, + `recurring_expense_id` int(10) unsigned DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `uses_inclusive_taxes` tinyint(1) NOT NULL DEFAULT 1, + `tax_name1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_name2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_name3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `date` date DEFAULT NULL, + `payment_date` date DEFAULT NULL, + `should_be_invoiced` tinyint(1) NOT NULL DEFAULT 0, + `invoice_documents` tinyint(1) NOT NULL DEFAULT 0, + `transaction_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `category_id` int(10) unsigned DEFAULT NULL, + `calculate_tax_by_amount` tinyint(1) NOT NULL DEFAULT 0, + `tax_amount1` decimal(20,6) DEFAULT NULL, + `tax_amount2` decimal(20,6) DEFAULT NULL, + `tax_amount3` decimal(20,6) DEFAULT NULL, + `tax_rate1` decimal(20,6) DEFAULT NULL, + `tax_rate2` decimal(20,6) DEFAULT NULL, + `tax_rate3` decimal(20,6) DEFAULT NULL, + `amount` decimal(20,6) DEFAULT NULL, + `foreign_amount` decimal(20,6) DEFAULT NULL, + `exchange_rate` decimal(20,6) NOT NULL DEFAULT 1.000000, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `invoice_currency_id` int(10) unsigned DEFAULT NULL, + `currency_id` int(10) unsigned DEFAULT NULL, + `private_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `transaction_reference` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `frequency_id` int(10) unsigned NOT NULL, + `last_sent_date` datetime DEFAULT NULL, + `next_send_date` datetime DEFAULT NULL, + `remaining_cycles` int(11) DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `recurring_expenses_company_id_number_unique` (`company_id`,`number`), + KEY `recurring_expenses_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `recurring_expenses_user_id_foreign` (`user_id`), + KEY `recurring_expenses_company_id_index` (`company_id`), + CONSTRAINT `recurring_expenses_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `recurring_expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `recurring_invoice_invitations`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `recurring_invoice_invitations` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `client_contact_id` int(10) unsigned NOT NULL, + `recurring_invoice_id` int(10) unsigned NOT NULL, + `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `transaction_reference` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `message_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_error` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `signature_base64` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `signature_date` datetime DEFAULT NULL, + `sent_date` datetime DEFAULT NULL, + `viewed_date` datetime DEFAULT NULL, + `opened_date` datetime DEFAULT NULL, + `email_status` enum('delivered','bounced','spam') COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `cli_rec` (`client_contact_id`,`recurring_invoice_id`), + KEY `recurring_invoice_invitations_user_id_foreign` (`user_id`), + KEY `recurring_invoice_invitations_company_id_foreign` (`company_id`), + KEY `rec_co_del` (`deleted_at`,`recurring_invoice_id`,`company_id`), + KEY `recurring_invoice_invitations_recurring_invoice_id_index` (`recurring_invoice_id`), + KEY `recurring_invoice_invitations_key_index` (`key`), + CONSTRAINT `recurring_invoice_invitations_client_contact_id_foreign` FOREIGN KEY (`client_contact_id`) REFERENCES `client_contacts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `recurring_invoice_invitations_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `recurring_invoice_invitations_recurring_invoice_id_foreign` FOREIGN KEY (`recurring_invoice_id`) REFERENCES `recurring_invoices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `recurring_invoice_invitations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `recurring_invoices`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `recurring_invoices` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `client_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `status_id` int(10) unsigned NOT NULL, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `discount` double(8,2) NOT NULL DEFAULT 0.00, + `is_amount_discount` tinyint(1) NOT NULL DEFAULT 0, + `po_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `date` date DEFAULT NULL, + `due_date` datetime DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `line_items` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `backup` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `footer` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `private_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `terms` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_name1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate1` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate2` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate3` decimal(20,6) NOT NULL DEFAULT 0.000000, + `total_taxes` decimal(20,6) NOT NULL DEFAULT 0.000000, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `amount` decimal(20,6) NOT NULL, + `balance` decimal(20,6) NOT NULL, + `partial` decimal(16,4) DEFAULT NULL, + `last_viewed` datetime DEFAULT NULL, + `frequency_id` int(10) unsigned NOT NULL, + `last_sent_date` datetime DEFAULT NULL, + `next_send_date` datetime DEFAULT NULL, + `remaining_cycles` int(11) DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `auto_bill` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'off', + `auto_bill_enabled` tinyint(1) NOT NULL DEFAULT 0, + `design_id` int(10) unsigned DEFAULT NULL, + `uses_inclusive_taxes` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge1` decimal(20,6) DEFAULT NULL, + `custom_surcharge2` decimal(20,6) DEFAULT NULL, + `custom_surcharge3` decimal(20,6) DEFAULT NULL, + `custom_surcharge4` decimal(20,6) DEFAULT NULL, + `custom_surcharge_tax1` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax2` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax3` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax4` tinyint(1) NOT NULL DEFAULT 0, + `due_date_days` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `partial_due_date` date DEFAULT NULL, + `exchange_rate` decimal(13,6) NOT NULL DEFAULT 1.000000, + `paid_to_date` decimal(20,6) NOT NULL DEFAULT 0.000000, + `subscription_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `recurring_invoices_company_id_number_unique` (`company_id`,`number`), + KEY `recurring_invoices_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `recurring_invoices_user_id_foreign` (`user_id`), + KEY `recurring_invoices_client_id_index` (`client_id`), + KEY `recurring_invoices_company_id_index` (`company_id`), + KEY `recurring_invoices_status_id_index` (`status_id`), + CONSTRAINT `recurring_invoices_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `recurring_invoices_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `recurring_invoices_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `recurring_quote_invitations`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `recurring_quote_invitations` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `client_contact_id` int(10) unsigned NOT NULL, + `recurring_quote_id` int(10) unsigned NOT NULL, + `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `transaction_reference` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `message_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_error` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `signature_base64` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `signature_date` datetime DEFAULT NULL, + `sent_date` datetime DEFAULT NULL, + `viewed_date` datetime DEFAULT NULL, + `opened_date` datetime DEFAULT NULL, + `email_status` enum('delivered','bounced','spam') COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `cli_rec_q` (`client_contact_id`,`recurring_quote_id`), + KEY `recurring_quote_invitations_user_id_foreign` (`user_id`), + KEY `recurring_quote_invitations_company_id_foreign` (`company_id`), + KEY `rec_co_del_q` (`deleted_at`,`recurring_quote_id`,`company_id`), + KEY `recurring_quote_invitations_recurring_quote_id_index` (`recurring_quote_id`), + KEY `recurring_quote_invitations_key_index` (`key`), + CONSTRAINT `recurring_quote_invitations_client_contact_id_foreign` FOREIGN KEY (`client_contact_id`) REFERENCES `client_contacts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `recurring_quote_invitations_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `recurring_quote_invitations_recurring_quote_id_foreign` FOREIGN KEY (`recurring_quote_id`) REFERENCES `recurring_invoices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `recurring_quote_invitations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `recurring_quotes`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `recurring_quotes` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `client_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `vendor_id` int(10) unsigned DEFAULT NULL, + `status_id` int(10) unsigned NOT NULL, + `discount` double(8,2) NOT NULL DEFAULT 0.00, + `is_amount_discount` tinyint(1) NOT NULL DEFAULT 0, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `po_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `date` date DEFAULT NULL, + `due_date` datetime DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `line_items` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `backup` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `footer` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `private_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `terms` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_name1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate1` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate2` decimal(20,6) NOT NULL DEFAULT 0.000000, + `tax_name3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `tax_rate3` decimal(20,6) NOT NULL DEFAULT 0.000000, + `total_taxes` decimal(20,6) NOT NULL DEFAULT 0.000000, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `amount` decimal(20,6) NOT NULL DEFAULT 0.000000, + `balance` decimal(20,6) NOT NULL DEFAULT 0.000000, + `last_viewed` datetime DEFAULT NULL, + `frequency_id` int(10) unsigned NOT NULL, + `last_sent_date` datetime DEFAULT NULL, + `next_send_date` datetime DEFAULT NULL, + `remaining_cycles` int(10) unsigned DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `auto_bill` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'off', + `auto_bill_enabled` tinyint(1) NOT NULL DEFAULT 0, + `paid_to_date` decimal(20,6) NOT NULL DEFAULT 0.000000, + `custom_surcharge1` decimal(20,6) DEFAULT NULL, + `custom_surcharge2` decimal(20,6) DEFAULT NULL, + `custom_surcharge3` decimal(20,6) DEFAULT NULL, + `custom_surcharge4` decimal(20,6) DEFAULT NULL, + `custom_surcharge_tax1` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax2` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax3` tinyint(1) NOT NULL DEFAULT 0, + `custom_surcharge_tax4` tinyint(1) NOT NULL DEFAULT 0, + `due_date_days` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `exchange_rate` decimal(13,6) NOT NULL DEFAULT 1.000000, + `partial` decimal(16,4) DEFAULT NULL, + `partial_due_date` date DEFAULT NULL, + `subscription_id` int(10) unsigned DEFAULT NULL, + `uses_inclusive_taxes` tinyint(1) NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `recurring_quotes_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `recurring_quotes_user_id_foreign` (`user_id`), + KEY `recurring_quotes_client_id_index` (`client_id`), + KEY `recurring_quotes_company_id_index` (`company_id`), + KEY `recurring_quotes_status_id_index` (`status_id`), + CONSTRAINT `recurring_quotes_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `recurring_quotes_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `recurring_quotes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `sizes`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `sizes` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `subscriptions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `subscriptions` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `product_ids` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `frequency_id` int(10) unsigned DEFAULT NULL, + `auto_bill` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `promo_code` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `promo_discount` double(8,2) NOT NULL DEFAULT 0.00, + `is_amount_discount` tinyint(1) NOT NULL DEFAULT 0, + `allow_cancellation` tinyint(1) NOT NULL DEFAULT 1, + `per_seat_enabled` tinyint(1) NOT NULL DEFAULT 0, + `min_seats_limit` int(10) unsigned NOT NULL, + `max_seats_limit` int(10) unsigned NOT NULL, + `trial_enabled` tinyint(1) NOT NULL DEFAULT 0, + `trial_duration` int(10) unsigned NOT NULL, + `allow_query_overrides` tinyint(1) NOT NULL DEFAULT 0, + `allow_plan_changes` tinyint(1) NOT NULL DEFAULT 0, + `plan_map` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `refund_period` int(10) unsigned DEFAULT NULL, + `webhook_configuration` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `currency_id` int(10) unsigned DEFAULT NULL, + `recurring_product_ids` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `group_id` int(10) unsigned DEFAULT NULL, + `price` decimal(20,6) NOT NULL DEFAULT 0.000000, + `promo_price` decimal(20,6) NOT NULL DEFAULT 0.000000, + PRIMARY KEY (`id`), + UNIQUE KEY `subscriptions_company_id_name_unique` (`company_id`,`name`), + KEY `billing_subscriptions_company_id_deleted_at_index` (`company_id`,`deleted_at`), + CONSTRAINT `billing_subscriptions_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `system_logs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `system_logs` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned DEFAULT NULL, + `client_id` int(10) unsigned DEFAULT NULL, + `category_id` int(10) unsigned DEFAULT NULL, + `event_id` int(10) unsigned DEFAULT NULL, + `type_id` int(10) unsigned DEFAULT NULL, + `log` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `system_logs_company_id_foreign` (`company_id`), + KEY `system_logs_client_id_foreign` (`client_id`), + CONSTRAINT `system_logs_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `system_logs_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `task_statuses`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `task_statuses` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `company_id` int(10) unsigned DEFAULT NULL, + `user_id` int(10) unsigned DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `status_sort_order` int(11) DEFAULT NULL, + `color` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#fff', + `status_order` int(11) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `task_statuses_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `task_statuses_user_id_foreign` (`user_id`), + CONSTRAINT `task_statuses_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `task_statuses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `tasks`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `tasks` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `client_id` int(10) unsigned DEFAULT NULL, + `invoice_id` int(10) unsigned DEFAULT NULL, + `project_id` int(10) unsigned DEFAULT NULL, + `status_id` int(10) unsigned DEFAULT NULL, + `status_sort_order` int(11) DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `duration` int(10) unsigned DEFAULT NULL, + `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `is_running` tinyint(1) NOT NULL DEFAULT 0, + `time_log` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `rate` decimal(20,6) NOT NULL DEFAULT 0.000000, + `invoice_documents` tinyint(1) NOT NULL DEFAULT 0, + `is_date_based` tinyint(1) NOT NULL DEFAULT 0, + `status_order` int(11) DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `tasks_company_id_number_unique` (`company_id`,`number`), + KEY `tasks_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `tasks_user_id_foreign` (`user_id`), + KEY `tasks_invoice_id_foreign` (`invoice_id`), + KEY `tasks_client_id_foreign` (`client_id`), + KEY `tasks_company_id_index` (`company_id`), + CONSTRAINT `tasks_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `tasks_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `tasks_invoice_id_foreign` FOREIGN KEY (`invoice_id`) REFERENCES `invoices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `tasks_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `tax_rates`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `tax_rates` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `rate` decimal(20,6) NOT NULL DEFAULT 0.000000, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + KEY `tax_rates_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `tax_rates_user_id_foreign` (`user_id`), + KEY `tax_rates_company_id_index` (`company_id`), + CONSTRAINT `tax_rates_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `tax_rates_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `timezones`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `timezones` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `location` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `utc_offset` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `transaction_events`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `transaction_events` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `client_id` int(10) unsigned NOT NULL, + `invoice_id` int(10) unsigned NOT NULL, + `payment_id` int(10) unsigned NOT NULL, + `credit_id` int(10) unsigned NOT NULL, + `client_balance` decimal(16,4) NOT NULL DEFAULT 0.0000, + `client_paid_to_date` decimal(16,4) NOT NULL DEFAULT 0.0000, + `client_credit_balance` decimal(16,4) NOT NULL DEFAULT 0.0000, + `invoice_balance` decimal(16,4) NOT NULL DEFAULT 0.0000, + `invoice_amount` decimal(16,4) NOT NULL DEFAULT 0.0000, + `invoice_partial` decimal(16,4) NOT NULL DEFAULT 0.0000, + `invoice_paid_to_date` decimal(16,4) NOT NULL DEFAULT 0.0000, + `invoice_status` int(10) unsigned DEFAULT NULL, + `payment_amount` decimal(16,4) NOT NULL DEFAULT 0.0000, + `payment_applied` decimal(16,4) NOT NULL DEFAULT 0.0000, + `payment_refunded` decimal(16,4) NOT NULL DEFAULT 0.0000, + `payment_status` int(10) unsigned DEFAULT NULL, + `paymentables` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `event_id` int(10) unsigned NOT NULL, + `timestamp` int(10) unsigned NOT NULL, + `payment_request` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `metadata` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `credit_balance` decimal(16,4) NOT NULL DEFAULT 0.0000, + `credit_amount` decimal(16,4) NOT NULL DEFAULT 0.0000, + `credit_status` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `transaction_events_client_id_index` (`client_id`), + CONSTRAINT `transaction_events_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `users`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `users` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `account_id` int(10) unsigned NOT NULL, + `first_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `ip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `device_token` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `email_verified_at` timestamp NULL DEFAULT NULL, + `confirmation_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `theme_id` int(11) DEFAULT NULL, + `failed_logins` smallint(6) DEFAULT NULL, + `referral_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `oauth_user_id` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `oauth_user_token` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `oauth_provider_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `google_2fa_secret` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `accepted_terms_version` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `avatar` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `avatar_width` int(10) unsigned DEFAULT NULL, + `avatar_height` int(10) unsigned DEFAULT NULL, + `avatar_size` int(10) unsigned DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `last_login` datetime DEFAULT NULL, + `signature` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `oauth_user_refresh_token` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `last_confirmed_email_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `has_password` tinyint(1) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`), + UNIQUE KEY `users_email_unique` (`email`), + UNIQUE KEY `users_oauth_user_id_oauth_provider_id_unique` (`oauth_user_id`,`oauth_provider_id`), + KEY `users_account_id_index` (`account_id`), + CONSTRAINT `users_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `vendor_contacts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `vendor_contacts` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned NOT NULL, + `user_id` int(10) unsigned NOT NULL, + `vendor_id` int(10) unsigned NOT NULL, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL, + `is_primary` tinyint(1) NOT NULL DEFAULT 0, + `first_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `send_email` tinyint(1) NOT NULL DEFAULT 0, + `email_verified_at` timestamp NULL DEFAULT NULL, + `confirmation_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `confirmed` tinyint(1) NOT NULL DEFAULT 0, + `last_login` timestamp NULL DEFAULT NULL, + `failed_logins` smallint(6) DEFAULT NULL, + `oauth_user_id` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `oauth_provider_id` int(10) unsigned DEFAULT NULL, + `google_2fa_secret` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `accepted_terms_version` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `avatar_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `avatar_size` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_locked` tinyint(1) NOT NULL DEFAULT 0, + `contact_key` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `vendor_contacts_oauth_user_id_unique` (`oauth_user_id`), + UNIQUE KEY `vendor_contacts_oauth_provider_id_unique` (`oauth_provider_id`), + KEY `vendor_contacts_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `vendor_contacts_user_id_foreign` (`user_id`), + KEY `vendor_contacts_vendor_id_index` (`vendor_id`), + KEY `vendor_contacts_company_id_email_deleted_at_index` (`company_id`,`email`,`deleted_at`), + CONSTRAINT `vendor_contacts_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `vendor_contacts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `vendor_contacts_vendor_id_foreign` FOREIGN KEY (`vendor_id`) REFERENCES `vendors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `vendors`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `vendors` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL, + `user_id` int(10) unsigned NOT NULL, + `assigned_user_id` int(10) unsigned DEFAULT NULL, + `company_id` int(10) unsigned NOT NULL, + `currency_id` int(10) unsigned DEFAULT NULL, + `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `address1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `address2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `city` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `postal_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `country_id` int(10) unsigned DEFAULT NULL, + `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `private_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `website` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `is_deleted` tinyint(4) NOT NULL DEFAULT 0, + `vat_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `transaction_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value3` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `custom_value4` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `vendor_hash` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `vendors_company_id_number_unique` (`company_id`,`number`), + KEY `vendors_company_id_deleted_at_index` (`company_id`,`deleted_at`), + KEY `vendors_user_id_foreign` (`user_id`), + KEY `vendors_country_id_foreign` (`country_id`), + KEY `vendors_currency_id_foreign` (`currency_id`), + CONSTRAINT `vendors_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `vendors_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`), + CONSTRAINT `vendors_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`), + CONSTRAINT `vendors_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `webhooks`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `webhooks` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `company_id` int(10) unsigned DEFAULT NULL, + `user_id` int(10) unsigned DEFAULT NULL, + `event_id` int(10) unsigned DEFAULT NULL, + `is_deleted` tinyint(1) NOT NULL DEFAULT 0, + `target_url` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, + `format` enum('JSON','UBL') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'JSON', + `created_at` timestamp(6) NULL DEFAULT NULL, + `updated_at` timestamp(6) NULL DEFAULT NULL, + `deleted_at` timestamp(6) NULL DEFAULT NULL, + `rest_method` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `headers` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `subscriptions_company_id_foreign` (`company_id`), + KEY `subscriptions_event_id_company_id_index` (`event_id`,`company_id`), + CONSTRAINT `subscriptions_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +INSERT INTO `migrations` VALUES (1,'2014_10_12_100000_create_password_resets_table',1); +INSERT INTO `migrations` VALUES (2,'2014_10_13_000000_create_users_table',1); +INSERT INTO `migrations` VALUES (3,'2019_11_10_115926_create_failed_jobs_table',1); +INSERT INTO `migrations` VALUES (4,'2020_03_05_123315_create_jobs_table',1); +INSERT INTO `migrations` VALUES (5,'2020_04_08_234530_add_is_deleted_column_to_company_tokens_table',1); +INSERT INTO `migrations` VALUES (6,'2020_05_13_035355_add_google_refresh_token_to_users_table',1); +INSERT INTO `migrations` VALUES (7,'2020_07_05_084934_company_too_large_attribute',1); +INSERT INTO `migrations` VALUES (8,'2020_07_08_065301_add_token_id_to_activity_table',1); +INSERT INTO `migrations` VALUES (9,'2020_07_21_112424_update_enabled_modules_value',1); +INSERT INTO `migrations` VALUES (10,'2020_07_28_104218_shop_token',1); +INSERT INTO `migrations` VALUES (11,'2020_08_04_080851_add_is_deleted_to_group_settings',1); +INSERT INTO `migrations` VALUES (12,'2020_08_11_221627_add_is_deleted_flag_to_client_gateway_token_table',1); +INSERT INTO `migrations` VALUES (13,'2020_08_13_095946_remove_photo_design',1); +INSERT INTO `migrations` VALUES (14,'2020_08_13_212702_add_reminder_sent_fields_to_entity_tables',1); +INSERT INTO `migrations` VALUES (15,'2020_08_18_140557_add_is_public_to_documents_table',1); +INSERT INTO `migrations` VALUES (16,'2020_09_22_205113_id_number_fields_for_missing_entities',1); +INSERT INTO `migrations` VALUES (17,'2020_09_27_215800_update_gateway_table_visible_column',1); +INSERT INTO `migrations` VALUES (18,'2020_10_11_211122_vendor_schema_update',1); +INSERT INTO `migrations` VALUES (19,'2020_10_12_204517_project_number_column',1); +INSERT INTO `migrations` VALUES (20,'2020_10_14_201320_project_ids_to_entities',1); +INSERT INTO `migrations` VALUES (21,'2020_10_19_101823_project_name_unique_removal',1); +INSERT INTO `migrations` VALUES (22,'2020_10_21_222738_expenses_nullable_assigned_user',1); +INSERT INTO `migrations` VALUES (23,'2020_10_22_204900_company_table_fields',1); +INSERT INTO `migrations` VALUES (24,'2020_10_27_021751_tasks_invoice_documents',1); +INSERT INTO `migrations` VALUES (25,'2020_10_28_224711_status_sort_order',1); +INSERT INTO `migrations` VALUES (26,'2020_10_28_225022_assigned_user_tasks_table',1); +INSERT INTO `migrations` VALUES (27,'2020_10_29_001541_vendors_phone_column',1); +INSERT INTO `migrations` VALUES (28,'2020_10_29_093836_change_start_time_column_type',1); +INSERT INTO `migrations` VALUES (29,'2020_10_29_204434_tasks_table_project_nullable',1); +INSERT INTO `migrations` VALUES (30,'2020_10_29_210402_change_default_show_tasks_table',1); +INSERT INTO `migrations` VALUES (31,'2020_10_30_084139_change_expense_currency_id_column',1); +INSERT INTO `migrations` VALUES (32,'2020_11_01_031750_drop_migrating_column',1); +INSERT INTO `migrations` VALUES (33,'2020_11_03_200345_company_gateway_fields_refactor',1); +INSERT INTO `migrations` VALUES (34,'2020_11_08_212050_custom_fields_for_payments_table',1); +INSERT INTO `migrations` VALUES (35,'2020_11_12_104413_company_gateway_rename_column',1); +INSERT INTO `migrations` VALUES (36,'2020_11_15_203755_soft_delete_paymentables',1); +INSERT INTO `migrations` VALUES (37,'2020_12_14_114722_task_fields',1); +INSERT INTO `migrations` VALUES (38,'2020_12_17_104033_add_enable_product_discount_field_to_companies_table',1); +INSERT INTO `migrations` VALUES (39,'2020_12_20_005609_change_products_table_cost_resolution',1); +INSERT INTO `migrations` VALUES (40,'2020_12_23_220648_remove_null_values_in_countries_table',1); +INSERT INTO `migrations` VALUES (41,'2021_01_03_215053_update_canadian_dollar_symbol',1); +INSERT INTO `migrations` VALUES (42,'2021_01_05_013203_improve_decimal_resolution',1); +INSERT INTO `migrations` VALUES (43,'2021_01_07_023350_update_singapore_dollar_symbol',1); +INSERT INTO `migrations` VALUES (44,'2021_01_08_093324_expenses_table_additional_fields',1); +INSERT INTO `migrations` VALUES (45,'2021_01_11_092056_fix_company_settings_url',1); +INSERT INTO `migrations` VALUES (46,'2021_01_17_040331_change_custom_surcharge_column_type',1); +INSERT INTO `migrations` VALUES (47,'2021_01_23_044502_scheduler_is_running_check',1); +INSERT INTO `migrations` VALUES (48,'2021_01_24_052645_add_paid_to_date_column',1); +INSERT INTO `migrations` VALUES (49,'2021_01_25_095351_add_number_field_to_clients_and_vendors',1); +INSERT INTO `migrations` VALUES (50,'2021_01_29_121502_add_permission_changed_timestamp',1); +INSERT INTO `migrations` VALUES (51,'2021_02_15_214724_additional_company_properties',1); +INSERT INTO `migrations` VALUES (52,'2021_02_19_212722_email_last_confirmed_email_address_users_table',1); +INSERT INTO `migrations` VALUES (53,'2021_02_25_205901_enum_invitations_email_status',1); +INSERT INTO `migrations` VALUES (54,'2021_02_27_091713_add_invoice_task_datelog_property',1); +INSERT INTO `migrations` VALUES (55,'2021_03_03_230941_add_has_password_field_to_user_table',1); +INSERT INTO `migrations` VALUES (56,'2021_03_08_123729_create_billing_subscriptions_table',1); +INSERT INTO `migrations` VALUES (57,'2021_03_08_205030_add_russian_lang',1); +INSERT INTO `migrations` VALUES (58,'2021_03_09_132242_add_currency_id_to_billing_subscriptions_table',1); +INSERT INTO `migrations` VALUES (59,'2021_03_18_113704_change_2fa_column_from_varchar_to_text',1); +INSERT INTO `migrations` VALUES (60,'2021_03_19_221024_add_unique_constraints_on_all_entities',1); +INSERT INTO `migrations` VALUES (61,'2021_03_20_033751_add_invoice_id_to_client_subscriptions_table',1); +INSERT INTO `migrations` VALUES (62,'2021_03_23_233844_add_nullable_constraint_to_recurring_invoice_id',1); +INSERT INTO `migrations` VALUES (63,'2021_03_25_082025_refactor_billing_scriptions_table',1); +INSERT INTO `migrations` VALUES (64,'2021_03_26_201148_add_price_column_to_subscriptions_table',1); +INSERT INTO `migrations` VALUES (65,'2021_04_01_093128_modify_column_on_subscriptions_table',1); +INSERT INTO `migrations` VALUES (66,'2021_04_05_115345_add_trial_duration_to_accounts_table',1); +INSERT INTO `migrations` VALUES (67,'2021_04_05_213802_add_rest_fields_to_webhooks_table',1); +INSERT INTO `migrations` VALUES (68,'2021_04_06_131028_create_licenses_table',1); +INSERT INTO `migrations` VALUES (69,'2021_04_12_095424_stripe_connect_gateway',1); +INSERT INTO `migrations` VALUES (70,'2021_04_13_013424_add_subscription_id_to_activities_table',1); +INSERT INTO `migrations` VALUES (71,'2021_04_22_110240_add_property_to_checkout_gateway_config',1); +INSERT INTO `migrations` VALUES (72,'2021_04_29_085418_add_number_years_active_to_company_users_table',1); +INSERT INTO `migrations` VALUES (73,'2021_05_03_152940_make_braintree_provider_visible',1); +INSERT INTO `migrations` VALUES (74,'2021_05_04_231430_add_task_property_to_companies_table',1); +INSERT INTO `migrations` VALUES (75,'2021_05_05_014713_activate_we_pay',1); +INSERT INTO `migrations` VALUES (76,'2021_05_10_041528_add_recurring_invoice_id_to_activities_table',1); +INSERT INTO `migrations` VALUES (77,'2021_05_27_105157_add_tech_design',1); +INSERT INTO `migrations` VALUES (78,'2021_05_30_100933_make_documents_assigned_user_nullable',1); +INSERT INTO `migrations` VALUES (79,'2021_06_10_221012_add_ninja_portal_column_to_accounts_table',1); +INSERT INTO `migrations` VALUES (80,'2021_06_24_095942_payments_table_currency_nullable',1); +INSERT INTO `migrations` VALUES (81,'2021_07_10_085821_activate_payfast_payment_driver',1); +INSERT INTO `migrations` VALUES (82,'2021_07_19_074503_set_invoice_task_datelog_true_in_companies_table',1); +INSERT INTO `migrations` VALUES (83,'2021_07_20_095537_activate_paytrace_payment_driver',1); +INSERT INTO `migrations` VALUES (84,'2021_07_21_213344_change_english_languages_tables',1); +INSERT INTO `migrations` VALUES (85,'2021_07_21_234227_activate_eway_payment_driver',1); +INSERT INTO `migrations` VALUES (86,'2021_08_03_115024_activate_mollie_payment_driver',1); +INSERT INTO `migrations` VALUES (87,'2021_08_05_235942_add_zelle_payment_type',1); +INSERT INTO `migrations` VALUES (88,'2021_08_07_222435_add_markdown_enabled_column_to_companies_table',1); +INSERT INTO `migrations` VALUES (89,'2021_08_10_034407_add_more_languages',1); +INSERT INTO `migrations` VALUES (90,'2021_08_14_054458_square_payment_driver',1); +INSERT INTO `migrations` VALUES (91,'2021_08_18_220124_use_comma_as_decimal_place_companies_table',1); +INSERT INTO `migrations` VALUES (92,'2021_08_23_101529_recurring_expenses_schema',1); +INSERT INTO `migrations` VALUES (93,'2021_08_25_093105_report_include_drafts_in_companies_table',1); +INSERT INTO `migrations` VALUES (94,'2021_09_05_101209_update_braintree_gateway',1); +INSERT INTO `migrations` VALUES (95,'2021_09_20_233053_set_square_test_mode_boolean',1); +INSERT INTO `migrations` VALUES (96,'2021_09_23_100629_add_currencies',1); +INSERT INTO `migrations` VALUES (97,'2021_09_24_201319_add_mollie_bank_transfer_to_payment_types',1); +INSERT INTO `migrations` VALUES (98,'2021_09_24_211504_add_kbc_to_payment_types',1); +INSERT INTO `migrations` VALUES (99,'2021_09_24_213858_add_bancontact_to_payment_types',1); +INSERT INTO `migrations` VALUES (100,'2021_09_28_154647_activate_gocardless_payment_driver',1); +INSERT INTO `migrations` VALUES (101,'2021_09_29_190258_add_required_client_registration_fields',1); +INSERT INTO `migrations` VALUES (102,'2021_10_04_134908_add_ideal_to_payment_types',1); +INSERT INTO `migrations` VALUES (103,'2021_10_06_044800_updated_bold_and_modern_designs',1); +INSERT INTO `migrations` VALUES (104,'2021_10_07_141737_razorpay',1); +INSERT INTO `migrations` VALUES (105,'2021_10_07_155410_add_hosted_page_to_payment_types',1); +INSERT INTO `migrations` VALUES (106,'2021_10_15_00000_stripe_payment_gateways',1); +INSERT INTO `migrations` VALUES (107,'2021_10_16_135200_add_direct_debit_to_payment_types',1); +INSERT INTO `migrations` VALUES (108,'2021_10_19_142200_add_gateway_type_for_direct_debit',1); +INSERT INTO `migrations` VALUES (109,'2021_10_20_005529_add_filename_to_backups_table',1); +INSERT INTO `migrations` VALUES (110,'2021_11_08_131308_onboarding',1); +INSERT INTO `migrations` VALUES (111,'2021_11_09_115919_update_designs',1); +INSERT INTO `migrations` VALUES (112,'2021_11_10_184847_add_is_migrate_column_to_accounts_table',1); +INSERT INTO `migrations` VALUES (113,'2021_11_11_163121_add_instant_bank_transfer',1); +INSERT INTO `migrations` VALUES (114,'2021_12_20_095542_add_serbian_language_translations',1); +INSERT INTO `migrations` VALUES (115,'2022_01_02_022421_add_slovak_language',1); +INSERT INTO `migrations` VALUES (116,'2022_01_06_061231_add_app_domain_id_to_gateways_table',1); +INSERT INTO `migrations` VALUES (117,'2022_01_18_004856_add_estonian_language',1); +INSERT INTO `migrations` VALUES (118,'2022_01_19_085907_add_platform_column_to_accounts_table',1); +INSERT INTO `migrations` VALUES (119,'2022_01_19_232436_add_kyd_currency',1); +INSERT INTO `migrations` VALUES (120,'2022_01_27_223617_add_client_count_to_accounts_table',1); +INSERT INTO `migrations` VALUES (121,'2022_02_06_091629_add_client_currency_conversion_to_companies_table',1); +INSERT INTO `migrations` VALUES (122,'2022_02_25_015411_update_stripe_apple_domain_config',1); +INSERT INTO `migrations` VALUES (123,'2022_03_09_053508_transaction_events',1); +INSERT INTO `migrations` VALUES (124,'2022_03_24_090728_markdown_email_enabled_wysiwyg_editor',1); +INSERT INTO `migrations` VALUES (125,'2022_03_29_014025_reverse_apple_domain_for_hosted',1); +INSERT INTO `migrations` VALUES (126,'2022_04_22_115838_client_settings_parse_for_types',1); +INSERT INTO `migrations` VALUES (127,'2022_04_26_032252_convert_custom_fields_column_from_varchar_to_text',1); +INSERT INTO `migrations` VALUES (128,'2022_05_08_004937_heal_stripe_gateway_configuration',1); +INSERT INTO `migrations` VALUES (129,'2022_05_16_224917_add_auto_bill_tries_to_invoices_table',1); +INSERT INTO `migrations` VALUES (130,'2022_05_18_055442_update_custom_value_four_columns',1); +INSERT INTO `migrations` VALUES (131,'2022_05_23_050754_drop_redundant_column_show_production_description_dropdown',1);