From ac9fd3b3bbe04ce934ab71c38961e2678a3e7cb1 Mon Sep 17 00:00:00 2001 From: Daniel Meltzer Date: Sun, 20 Nov 2016 21:59:57 -0600 Subject: [PATCH] Update LicensesController.php (#2948) * Update LicensesController.php Should fix #2939. Cannot test at the moment, so please check :) * Add delete tests. Improve test item generation. * Add relationship here. * Fix some issues with seeding. --- app/Http/Controllers/LicensesController.php | 2 +- app/Models/Manufacturer.php | 5 + database/factories/ModelFactory.php | 139 +++++++++++++------- database/seeds/DatabaseSeeder.php | 4 +- tests/_data/dump.sql | 85 ++++++------ tests/_support/FunctionalTester.php | 131 +++++++++++++++++- tests/functional.suite.yml | 1 + tests/functional/AccessoriesCest.php | 30 +++-- tests/functional/AssetModelsCest.php | 42 +++--- tests/functional/AssetsCest.php | 53 ++++---- tests/functional/CategoriesCest.php | 23 ++-- tests/functional/CompaniesCest.php | 13 +- tests/functional/ComponentsCest.php | 39 +++--- tests/functional/ConsumablesCest.php | 38 +++--- tests/functional/DepreciationsCest.php | 24 ++-- tests/functional/GroupsCest.php | 21 +-- tests/functional/LicensesCest.php | 46 ++++--- tests/functional/LocationsCest.php | 40 +++--- tests/functional/ManufacturersCest.php | 28 ++-- tests/functional/StatusLabelsCest.php | 34 +++-- tests/functional/SuppliersCest.php | 48 ++++--- tests/functional/UsersCest.php | 73 +++++----- 22 files changed, 587 insertions(+), 332 deletions(-) diff --git a/app/Http/Controllers/LicensesController.php b/app/Http/Controllers/LicensesController.php index d4106fb62d..e8e4c6095c 100755 --- a/app/Http/Controllers/LicensesController.php +++ b/app/Http/Controllers/LicensesController.php @@ -396,7 +396,7 @@ class LicensesController extends Controller return redirect()->to('admin/licenses')->with('error', trans('general.insufficient_permissions')); } - if (($license->assignedcount()) && ($license->assignedcount() > 0)) { + if ($license->assigned_seats_count > 0) { // Redirect to the license management page return redirect()->to('admin/licenses')->with('error', trans('admin/licenses/message.assoc_users')); diff --git a/app/Models/Manufacturer.php b/app/Models/Manufacturer.php index 27919726a3..232d2a61d7 100755 --- a/app/Models/Manufacturer.php +++ b/app/Models/Manufacturer.php @@ -47,6 +47,11 @@ class Manufacturer extends SnipeModel return $this->hasManyThrough('\App\Models\Asset', '\App\Models\AssetModel', 'manufacturer_id', 'model_id'); } + public function models() + { + return $this->hasMany('\App\Models\AssetModel', 'manufacturer_id'); + } + public function licenses() { return $this->hasMany('\App\Models\License', 'manufacturer_id'); diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php index 53eaef823a..2f621abc07 100644 --- a/database/factories/ModelFactory.php +++ b/database/factories/ModelFactory.php @@ -11,6 +11,11 @@ | */ +use App\Models\Company; +use App\Models\Location; +use App\Models\Manufacturer; +use App\Models\Supplier; + $factory->defineAs(App\Models\Asset::class, 'asset', function (Faker\Generator $faker) { return [ 'name' => $faker->catchPhrase, @@ -22,10 +27,12 @@ $factory->defineAs(App\Models\Asset::class, 'asset', function (Faker\Generator $ 'asset_tag' => $faker->unixTime('now'), 'notes' => $faker->sentence, 'purchase_date' => $faker->dateTime(), + 'purchase_cost' => $faker->randomFloat(2), 'order_number' => $faker->numberBetween(1000000,50000000), 'supplier_id' => $faker->numberBetween(1,5), 'requestable' => $faker->numberBetween(0,1), - 'company_id' => \App\Models\Company::inRandomOrder()->first()->id + 'company_id' => Company::inRandomOrder()->first()->id, + 'requestable' => $faker->boolean() ]; }); @@ -37,23 +44,31 @@ $factory->defineAs(App\Models\AssetModel::class, 'assetmodel', function (Faker\G 'category_id' => $faker->numberBetween(1,9), 'model_number' => $faker->numberBetween(1000000,50000000), 'eol' => 1, + 'notes' => $faker->paragraph(), + 'requestable' => $faker->boolean(), ]; }); $factory->defineAs(App\Models\Location::class, 'location', function (Faker\Generator $faker) { - return [ - 'name' => $faker->city, - 'city' => $faker->city, - 'state' => $faker->stateAbbr, - 'country' => $faker->countryCode, - 'currency' => $faker->currencyCode, - ]; + return [ + 'name' => $faker->catchPhrase, + 'address' => $faker->streetAddress, + 'address2' => $faker->secondaryAddress, + 'city' => $faker->city, + 'state' => $faker->stateAbbr, + 'country' => $faker->countryCode, + 'currency' => $faker->currencyCode, + 'zip' => $faker->postcode + ]; }); $factory->defineAs(App\Models\Category::class, 'asset-category', function (Faker\Generator $faker) { return [ 'name' => $faker->text(20), 'category_type' => $faker->randomElement($array = array ('asset')), + 'eula_text' => $faker->paragraph(), + 'require_acceptance' => $faker->boolean(), + 'checkin_email' => $faker->boolean() ]; }); @@ -95,9 +110,14 @@ $factory->defineAs(App\Models\Component::class, 'component', function (Faker\Gen return [ 'name' => $faker->text(20), 'category_id' => $faker->numberBetween(21,25), + 'location_id' => Location::inRandomOrder()->first()->id, + 'serial' => $faker->uuid, 'qty' => $faker->numberBetween(3, 10), + 'order_number' => $faker->numberBetween(1000000,50000000), + 'purchase_date' => $faker->dateTime(), + 'purchase_cost' => $faker->randomFloat(2), 'min_amt' => $faker->numberBetween($min = 1, $max = 2), - 'company_id' => \App\Models\Company::inRandomOrder()->first()->id + 'company_id' => Company::inRandomOrder()->first()->id ]; }); @@ -110,39 +130,52 @@ $factory->defineAs(App\Models\Depreciation::class, 'depreciation', function (Fak $factory->defineAs(App\Models\Accessory::class, 'accessory', function (Faker\Generator $faker) { return [ + 'company_id' => Company::inRandomOrder()->first()->id, 'name' => $faker->text(20), 'category_id' => $faker->numberBetween(11,15), - 'qty' => $faker->numberBetween(5, 10), + 'manufacturer_id' => Manufacturer::inRandomOrder()->first()->id, 'location_id' => $faker->numberBetween(1,5), + 'order_number' => $faker->numberBetween(1000000,50000000), + 'purchase_date' => $faker->dateTime(), + 'purchase_cost' => $faker->randomFloat(2), + 'qty' => $faker->numberBetween(5, 10), 'min_amt' => $faker->numberBetween($min = 1, $max = 2), - 'company_id' => \App\Models\Company::inRandomOrder()->first()->id ]; + }); $factory->defineAs(App\Models\Supplier::class, 'supplier', function (Faker\Generator $faker) { - return [ - 'name' => $faker->company, - 'address' => $faker->streetAddress, - 'city' => $faker->city, - 'state' => $faker->stateAbbr, - 'country' => $faker->countryCode, - 'contact' => $faker->name, - 'phone' => $faker->phoneNumber, - 'email' => $faker->safeEmail, - ]; + return [ + 'name' => $faker->company, + 'address' => $faker->streetAddress, + 'address2' => $faker->secondaryAddress, + 'city' => $faker->city, + 'state' => $faker->stateAbbr, + 'zip' => $faker->postCode, + 'country' => $faker->countryCode, + 'contact' => $faker->name, + 'phone' => $faker->phoneNumber, + 'fax' => $faker->phoneNumber, + 'email' => $faker->safeEmail, + 'url' => $faker->url, + 'notes' => $faker->paragraph + ]; }); $factory->defineAs(App\Models\Consumable::class, 'consumable', function (Faker\Generator $faker) { return [ 'name' => $faker->text(20), + 'company_id' => Company::inRandomOrder()->first()->id, 'category_id' => $faker->numberBetween(16, 20), - 'company_id' => $faker->numberBetween(1, 10), + 'model_number' => $faker->numberBetween(1000000,50000000), + 'item_no' => $faker->numberBetween(1000000,50000000), + 'order_number' => $faker->numberBetween(1000000,50000000), + 'purchase_date' => $faker->dateTime(), + 'purchase_cost' => $faker->randomFloat(2), 'qty' => $faker->numberBetween(5, 10), 'min_amt' => $faker->numberBetween($min = 1, $max = 2), - 'company_id' => \App\Models\Company::inRandomOrder()->first()->id - ]; }); @@ -171,7 +204,7 @@ $factory->defineAs(App\Models\Statuslabel::class, 'pending', function (Faker\Gen 'deployable' => 0, 'pending' => 1, 'archived' => 0, - 'notes' => '' + 'notes' => $faker->sentence ]; }); @@ -246,17 +279,20 @@ $factory->defineAs(App\Models\Statuslabel::class, 'lost', function (Faker\Genera }); $factory->defineAs(App\Models\License::class, 'license', function (Faker\Generator $faker) { - return [ - 'name' => $faker->catchPhrase, - 'serial' => $faker->uuid, - 'seats' => $faker->numberBetween(1, 10), - 'license_email' => $faker->safeEmail, - 'license_name' => $faker->name, - 'purchase_date' => $faker->dateTime(), - 'purchase_cost' => $faker->randomFloat(2), - 'notes' => $faker->sentence, - 'company_id' => \App\Models\Company::inRandomOrder()->first()->id - ]; + return [ + 'name' => $faker->catchPhrase, + 'serial' => $faker->uuid, + 'seats' => $faker->numberBetween(1, 10), + 'license_email' => $faker->safeEmail, + 'license_name' => $faker->name, + 'order_number' => $faker->numberBetween(1500, 13250), + 'purchase_order' => $faker->numberBetween(1500, 13250), + 'purchase_date' => $faker->dateTime(), + 'purchase_cost' => $faker->randomFloat(2), + 'notes' => $faker->sentence, + 'supplier_id' => Supplier::inRandomOrder()->first()->id, + 'company_id' => Company::inRandomOrder()->first()->id + ]; }); $factory->defineAs(App\Models\LicenseSeat::class, 'license-seat', function (Faker\Generator $faker) { @@ -270,7 +306,7 @@ $factory->defineAs(App\Models\LicenseSeat::class, 'license-seat', function (Fake }); $factory->defineAs(App\Models\Actionlog::class, 'asset-checkout', function (Faker\Generator $faker) { - $company = \App\Models\Company::has('users')->has('assets')->inRandomOrder()->first(); + $company = Company::has('users')->has('assets')->inRandomOrder()->first(); return [ 'user_id' => $company->users()->inRandomOrder()->first()->id, 'action_type' => 'checkout', @@ -285,7 +321,7 @@ $factory->defineAs(App\Models\Actionlog::class, 'asset-checkout', function (Fake }); $factory->defineAs(App\Models\Actionlog::class, 'license-checkout-asset', function (Faker\Generator $faker) { - $company = \App\Models\Company::has('users')->has('licenses')->inRandomOrder()->first(); + $company = Company::has('users')->has('licenses')->inRandomOrder()->first(); return [ 'user_id' => $company->users()->inRandomOrder()->first()->id, @@ -301,7 +337,7 @@ $factory->defineAs(App\Models\Actionlog::class, 'license-checkout-asset', functi }); $factory->defineAs(App\Models\Actionlog::class, 'accessory-checkout', function (Faker\Generator $faker) { - $company = \App\Models\Company::has('users')->has('accessories')->inRandomOrder()->first(); + $company = Company::has('users')->has('accessories')->inRandomOrder()->first(); return [ 'user_id' => $company->users()->inRandomOrder()->first()->id, 'action_type' => 'checkout', @@ -316,7 +352,7 @@ $factory->defineAs(App\Models\Actionlog::class, 'accessory-checkout', function ( }); $factory->defineAs(App\Models\Actionlog::class, 'consumable-checkout', function (Faker\Generator $faker) { - $company = \App\Models\Company::has('users')->has('consumables')->inRandomOrder()->first(); + $company = Company::has('users')->has('consumables')->inRandomOrder()->first(); return [ 'user_id' => $company->users()->inRandomOrder()->first()->id, @@ -332,7 +368,7 @@ $factory->defineAs(App\Models\Actionlog::class, 'consumable-checkout', function }); $factory->defineAs(App\Models\Actionlog::class, 'component-checkout', function (Faker\Generator $faker) { - $company = \App\Models\Company::has('users')->has('components')->inRandomOrder()->first(); + $company = Company::has('users')->has('components')->inRandomOrder()->first(); return [ 'user_id' => $company->users()->inRandomOrder()->first()->id, @@ -357,12 +393,17 @@ $factory->defineAs(App\Models\CustomField::class, 'customfield-ip', function (Fa $factory->defineAs(App\Models\User::class, 'valid-user', function (Faker\Generator $faker) { - return [ - 'first_name' => $faker->firstName, - 'last_name' => $faker->lastName, - 'email' => $faker->safeEmail, - 'password' => $faker->password, - 'username' => $faker->username, - 'company_id' => \App\Models\Company::inRandomOrder()->first()->id - ]; + return [ + 'first_name' => $faker->firstName, + 'last_name' => $faker->lastName, + 'username' => $faker->username, + 'password' => $faker->password, + 'email' => $faker->safeEmail, + 'company_id' => Company::inRandomOrder()->first()->id, + 'locale' => $faker->locale, + 'employee_num' => $faker->numberBetween(3500, 35050), + 'jobtitle' => $faker->word, + 'phone' => $faker->phoneNumber, + 'notes' => $faker->sentence + ]; }); diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php index b500b5f201..7ae5ed2308 100644 --- a/database/seeds/DatabaseSeeder.php +++ b/database/seeds/DatabaseSeeder.php @@ -16,6 +16,8 @@ class DatabaseSeeder extends Seeder $this->call(CompanySeeder::class); $this->call(UserSeeder::class); + $this->call(ManufacturerSeeder::class); + $this->call(LocationSeeder::class); $this->call(AssetModelSeeder::class); $this->call(AccessorySeeder::class); $this->call(AssetSeeder::class); @@ -27,8 +29,6 @@ class DatabaseSeeder extends Seeder $this->call(LicenseSeeder::class); $this->call(ActionlogSeeder::class); $this->call(DepreciationSeeder::class); - $this->call(ManufacturerSeeder::class); - $this->call(LocationSeeder::class); $this->call(CustomFieldSeeder::class); Model::reguard(); diff --git a/tests/_data/dump.sql b/tests/_data/dump.sql index 05daf7cdbf..281e520b40 100644 --- a/tests/_data/dump.sql +++ b/tests/_data/dump.sql @@ -34,13 +34,14 @@ CREATE TABLE `accessories` ( `deleted_at` timestamp NULL DEFAULT NULL, `location_id` int(11) DEFAULT NULL, `purchase_date` date DEFAULT NULL, - `purchase_cost` decimal(13,4) DEFAULT NULL, + `purchase_cost` decimal(20,2) DEFAULT NULL, `order_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `company_id` int(10) unsigned DEFAULT NULL, `min_amt` int(11) DEFAULT NULL, `manufacturer_id` int(11) DEFAULT NULL, + `model_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -49,7 +50,7 @@ CREATE TABLE `accessories` ( LOCK TABLES `accessories` WRITE; /*!40000 ALTER TABLE `accessories` DISABLE KEYS */; -INSERT INTO `accessories` VALUES (1,'Walter Carter',1,1,278,0,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,1,'2006-09-01',20.8900,'J935H60W',1,NULL,NULL),(2,'Hayes Delgado',2,1,374,0,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,2,'2011-06-15',82.3300,'R444V77O',1,NULL,NULL),(3,'Cairo Franks',3,1,86,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,3,'2004-02-17',91.8200,'B562M80I',2,NULL,NULL),(4,'Kasimir Best',4,1,374,0,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,4,'2009-04-26',63.5000,'T496S42R',3,NULL,NULL),(5,'Rajah Garcia',1,1,514,0,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,5,'2014-07-23',41.4400,'H299H99S',2,NULL,NULL),(6,'Damon Pearson',5,1,596,0,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,6,'2010-08-22',11.1600,'K403K24X',4,NULL,NULL),(7,'Jin Buckley',6,1,462,0,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,7,'2005-10-07',15.3600,'U911L77O',5,NULL,NULL),(8,'Barrett Simon',7,1,297,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,8,'2013-04-06',54.8500,'R642D18D',2,NULL,NULL),(9,'Reece Hayden',5,1,500,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,9,'2017-05-12',43.7600,'R389I62U',6,NULL,NULL),(10,'Honorato Greene',3,1,38,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,10,'2007-07-04',67.6600,'P231H53Z',7,NULL,NULL),(11,'Kennan Levine',8,1,268,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,11,'2007-12-09',47.8400,'K271S85U',6,NULL,NULL),(12,'Chadwick Ryan',9,1,579,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,12,'2011-03-23',49.9200,'S458L71D',8,NULL,NULL),(13,'Abraham Wynn',9,1,84,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,13,'2009-11-17',32.1900,'Q317N85T',6,NULL,NULL),(14,'Tyrone Vazquez',10,1,6,0,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,14,'2014-05-02',93.6100,'X530P10G',9,NULL,NULL),(15,'Lester Holmes',11,1,538,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,15,'2016-11-20',8.1800,'M377B05F',10,NULL,NULL),(16,'Ryder Stafford',5,1,428,0,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,16,'2014-08-06',65.7700,'R754A44P',6,NULL,NULL),(17,'Dylan Guy',7,1,502,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,'2012-09-26',45.1400,'G531X03G',11,NULL,NULL),(18,'Igor Salinas',12,1,532,0,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,17,'2009-10-14',90.9000,'V076X60Y',5,NULL,NULL),(19,'Xavier Mason',7,1,306,0,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,18,'2004-12-11',89.7600,'V002M54F',2,NULL,NULL),(20,'Kane Mcintyre',9,1,256,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,19,'2011-05-22',7.7900,'B393H89J',10,NULL,NULL),(21,'Wade Silva',13,1,87,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,20,'2010-10-10',78.7100,'D573N25A',6,NULL,NULL),(22,'Brock Lowery',14,1,587,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,21,'2012-11-01',22.0700,'H112I50Y',1,NULL,NULL),(23,'Gil Bright',6,1,212,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,22,'2009-07-30',70.1100,'J429A36Y',2,NULL,NULL),(24,'Raja Brewer',12,1,338,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,22,'2015-02-03',42.7500,'R567P48B',9,NULL,NULL),(25,'Malachi Conner',7,1,447,1,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,23,'2008-11-14',71.7900,'D522O37S',12,NULL,NULL); +INSERT INTO `accessories` VALUES (1,'Voluptatem enim.',15,NULL,8,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,1,NULL,NULL,NULL,2,2,NULL,NULL),(2,'Dolores aut aut.',14,NULL,7,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,3,NULL,NULL,NULL,3,1,NULL,NULL),(3,'Quaerat corrupti.',13,NULL,9,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,3,NULL,NULL,NULL,3,1,NULL,NULL),(4,'Expedita mollitia.',12,NULL,9,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,4,NULL,NULL,NULL,1,2,NULL,NULL),(5,'Est culpa totam.',11,NULL,8,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,1,NULL,NULL,NULL,3,2,NULL,NULL),(6,'Quae esse vero.',12,NULL,7,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,3,NULL,NULL,NULL,4,1,NULL,NULL),(7,'Nemo rerum soluta.',14,NULL,6,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,4,NULL,NULL,NULL,3,1,NULL,NULL),(8,'Ut error deleniti.',13,NULL,7,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,5,NULL,NULL,NULL,4,2,NULL,NULL),(9,'Est ut ad et quos.',13,NULL,8,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,3,NULL,NULL,NULL,3,2,NULL,NULL),(10,'Itaque voluptas est.',13,NULL,9,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,1,NULL,NULL,NULL,2,1,NULL,NULL),(11,'Est aspernatur in.',12,NULL,6,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,2,NULL,NULL,NULL,3,1,NULL,NULL),(12,'Consequatur quo a.',15,NULL,10,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,4,NULL,NULL,NULL,2,2,NULL,NULL),(13,'Placeat perferendis.',14,NULL,10,0,'2016-11-20 23:07:28','2016-11-21 00:33:27','2016-11-21 00:33:27',3,NULL,NULL,NULL,3,2,NULL,NULL),(14,'Dolore corrupti.',12,NULL,7,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,3,NULL,NULL,NULL,4,2,NULL,NULL),(15,'Ut pariatur.',14,NULL,5,0,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,4,NULL,NULL,NULL,2,1,NULL,NULL),(16,'TestAccessory',19,1,12,0,'2016-11-21 00:33:26','2016-11-21 00:33:26',NULL,5,'2016-01-01',25.00,'12345',4,6,8,''); /*!40000 ALTER TABLE `accessories` ENABLE KEYS */; UNLOCK TABLES; @@ -108,7 +109,7 @@ CREATE TABLE `action_logs` ( `accept_signature` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `action_logs_thread_id_index` (`thread_id`) -) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -117,7 +118,7 @@ CREATE TABLE `action_logs` ( LOCK TABLES `action_logs` WRITE; /*!40000 ALTER TABLE `action_logs` DISABLE KEYS */; -INSERT INTO `action_logs` VALUES (1,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',1,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,1,NULL),(2,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',2,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,1,NULL),(3,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',3,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,2,NULL),(4,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',4,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,3,NULL),(5,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',5,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,2,NULL),(6,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',6,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,4,NULL),(7,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',7,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,5,NULL),(8,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',8,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,2,NULL),(9,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',9,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,6,NULL),(10,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',10,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,7,NULL),(11,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',11,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,6,NULL),(12,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',12,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,8,NULL),(13,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',13,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,6,NULL),(14,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',14,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,9,NULL),(15,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',15,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,10,NULL),(16,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',16,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,6,NULL),(17,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',17,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,11,NULL),(18,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',18,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,5,NULL),(19,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',19,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,2,NULL),(20,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',20,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,10,NULL),(21,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',21,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,6,NULL),(22,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',22,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,1,NULL),(23,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',23,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,2,NULL),(24,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',24,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,9,NULL),(25,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Accessory',25,NULL,NULL,'2016-11-06 22:01:57','2016-11-06 22:01:57',NULL,NULL,12,NULL),(26,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',1,NULL,NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,14,NULL),(27,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',2,NULL,NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL),(28,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',3,NULL,NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,15,NULL),(29,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',4,NULL,NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL),(30,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',5,NULL,NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL),(31,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',6,NULL,NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL),(32,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',7,NULL,NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL),(33,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',8,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(34,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',9,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(35,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',10,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(36,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',11,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,16,NULL),(37,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',12,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(38,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',13,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(39,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',14,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(40,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',15,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(41,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',16,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(42,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',17,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(43,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',18,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(44,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',19,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(45,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',20,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(46,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',21,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(47,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',22,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(48,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',23,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(49,1,'created',NULL,NULL,NULL,'Imported using csv importer',NULL,'App\\Models\\Asset',24,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL),(50,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',1,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,17,NULL),(51,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',2,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,6,NULL),(52,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',3,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,7,NULL),(53,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',4,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,9,NULL),(54,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',5,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,1,NULL),(55,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',6,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,12,NULL),(56,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',7,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,5,NULL),(57,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',8,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,11,NULL),(58,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',9,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,6,NULL),(59,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',10,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,4,NULL),(60,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',11,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,5,NULL),(61,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',12,NULL,NULL,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,NULL,5,NULL),(62,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',13,NULL,NULL,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,NULL,17,NULL),(63,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',14,NULL,NULL,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,NULL,10,NULL),(64,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',15,NULL,NULL,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,NULL,17,NULL),(65,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',16,NULL,NULL,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,NULL,2,NULL),(66,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',17,NULL,NULL,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,NULL,10,NULL),(67,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',18,NULL,NULL,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,NULL,5,NULL),(68,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',19,NULL,NULL,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,NULL,18,NULL),(69,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',20,NULL,NULL,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,NULL,17,NULL),(70,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',21,NULL,NULL,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,NULL,11,NULL),(71,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',22,NULL,NULL,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,NULL,3,NULL),(72,1,'created',NULL,NULL,NULL,'Imported using CSV Importer',NULL,'App\\Models\\Consumable',23,NULL,NULL,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,NULL,2,NULL); +INSERT INTO `action_logs` VALUES (1,26,'checkout',39,'App\\Models\\User',NULL,'Minus architecto autem neque vel ut.',NULL,'App\\Models\\Asset',36,NULL,NULL,'1972-01-14 18:00:46','2016-11-20 23:07:29',NULL,NULL,2,NULL),(2,34,'checkout',42,'App\\Models\\User',NULL,'Odio optio vitae ipsa facere repudiandae consequatur.',NULL,'App\\Models\\Asset',54,NULL,NULL,'2003-10-04 22:32:16','2016-11-20 23:07:29',NULL,NULL,3,NULL),(3,40,'checkout',36,'App\\Models\\User',NULL,'Aliquid eligendi nesciunt expedita repudiandae alias veritatis hic.',NULL,'App\\Models\\Asset',1,NULL,NULL,'1978-02-16 03:07:32','2016-11-20 23:07:29',NULL,NULL,4,NULL),(4,41,'checkout',40,'App\\Models\\User',NULL,'Earum corrupti impedit ab sed placeat.',NULL,'App\\Models\\Asset',28,NULL,NULL,'2009-12-09 21:33:02','2016-11-20 23:07:29',NULL,NULL,4,NULL),(5,34,'checkout',34,'App\\Models\\User',NULL,'Exercitationem aut repellendus officiis impedit pariatur aut rerum.',NULL,'App\\Models\\Asset',4,NULL,NULL,'1978-12-03 19:18:58','2016-11-20 23:07:29',NULL,NULL,3,NULL),(6,29,'checkout',31,'App\\Models\\User',NULL,'Dolores nostrum deleniti laborum voluptatem quas eligendi iste et.',NULL,'App\\Models\\Asset',36,NULL,NULL,'2000-03-22 00:11:42','2016-11-20 23:07:29',NULL,NULL,2,NULL),(7,43,'checkout',44,'App\\Models\\User',NULL,'Voluptate et omnis omnis quidem impedit mollitia harum.',NULL,'App\\Models\\Asset',97,NULL,NULL,'2006-07-17 06:26:47','2016-11-20 23:07:29',NULL,NULL,1,NULL),(8,27,'checkout',27,'App\\Models\\User',NULL,'Aspernatur dolores non ab cum.',NULL,'App\\Models\\Asset',5,NULL,NULL,'2000-04-11 13:21:42','2016-11-20 23:07:29',NULL,NULL,2,NULL),(9,25,'checkout',32,'App\\Models\\User',NULL,'Et ipsa adipisci nisi beatae.',NULL,'App\\Models\\Asset',29,NULL,NULL,'1970-08-21 14:33:04','2016-11-20 23:07:29',NULL,NULL,1,NULL),(10,40,'checkout',36,'App\\Models\\User',NULL,'Non sunt architecto omnis delectus dolorem qui est.',NULL,'App\\Models\\Asset',40,NULL,NULL,'2003-01-07 19:51:30','2016-11-20 23:07:29',NULL,NULL,4,NULL),(11,24,'checkout',25,'App\\Models\\User',NULL,'Explicabo itaque eos dolor officia itaque labore ipsam.',NULL,'App\\Models\\Asset',48,NULL,NULL,'2013-12-15 02:06:16','2016-11-20 23:07:29',NULL,NULL,1,NULL),(12,40,'checkout',37,'App\\Models\\User',NULL,'Quibusdam minima quisquam veniam est repudiandae in.',NULL,'App\\Models\\Asset',49,NULL,NULL,'2000-04-10 18:27:00','2016-11-20 23:07:29',NULL,NULL,4,NULL),(13,34,'checkout',34,'App\\Models\\User',NULL,'Magnam consectetur ut unde omnis corporis perferendis.',NULL,'App\\Models\\Asset',83,NULL,NULL,'1994-12-22 15:29:46','2016-11-20 23:07:29',NULL,NULL,3,NULL),(14,34,'checkout',34,'App\\Models\\User',NULL,'Velit ut nam voluptates et et repellendus.',NULL,'App\\Models\\Asset',92,NULL,NULL,'1993-03-25 07:22:31','2016-11-20 23:07:29',NULL,NULL,3,NULL),(15,25,'checkout',24,'App\\Models\\User',NULL,'Totam quia modi voluptate soluta.',NULL,'App\\Models\\Asset',50,NULL,NULL,'1983-12-24 12:33:35','2016-11-20 23:07:30',NULL,NULL,1,NULL),(16,35,'checkout',44,'App\\Models\\User',NULL,'Quas occaecati necessitatibus distinctio.',NULL,'App\\Models\\Asset',84,NULL,NULL,'1999-02-04 03:31:56','2016-11-20 23:07:30',NULL,NULL,1,NULL),(17,42,'checkout',42,'App\\Models\\User',NULL,'Dolores aut recusandae aut deserunt magni non.',NULL,'App\\Models\\Asset',2,NULL,NULL,'2014-08-20 09:31:19','2016-11-20 23:07:30',NULL,NULL,3,NULL),(18,24,'checkout',24,'App\\Models\\User',NULL,'Officiis porro voluptatem placeat aut voluptas quis est.',NULL,'App\\Models\\Asset',60,NULL,NULL,'1993-10-15 18:56:40','2016-11-20 23:07:30',NULL,NULL,1,NULL),(19,43,'checkout',28,'App\\Models\\User',NULL,'Necessitatibus repellat itaque illo qui officiis aut non.',NULL,'App\\Models\\Asset',86,NULL,NULL,'1980-01-26 00:20:38','2016-11-20 23:07:30',NULL,NULL,1,NULL),(20,36,'checkout',41,'App\\Models\\User',NULL,'Vel nihil ut et vel et doloribus ut.',NULL,'App\\Models\\Asset',62,NULL,NULL,'2000-01-13 15:45:17','2016-11-20 23:07:30',NULL,NULL,4,NULL),(21,42,'checkout',30,'App\\Models\\User',NULL,'Reprehenderit porro tempore saepe nisi illum qui.',NULL,'App\\Models\\Asset',2,NULL,NULL,'2014-07-25 15:21:25','2016-11-20 23:07:30',NULL,NULL,3,NULL),(22,36,'checkout',36,'App\\Models\\User',NULL,'Totam corporis aut beatae voluptatem nihil labore nihil vero.',NULL,'App\\Models\\Asset',68,NULL,NULL,'2012-11-12 12:07:30','2016-11-20 23:07:30',NULL,NULL,4,NULL),(23,31,'checkout',39,'App\\Models\\User',NULL,'Repudiandae debitis molestias odio iste voluptatem eum.',NULL,'App\\Models\\Asset',23,NULL,NULL,'1975-01-11 12:34:13','2016-11-20 23:07:30',NULL,NULL,2,NULL),(24,30,'checkout',34,'App\\Models\\User',NULL,'Repellat nisi doloribus optio porro nisi magnam.',NULL,'App\\Models\\Asset',17,NULL,NULL,'2012-03-28 03:56:46','2016-11-20 23:07:30',NULL,NULL,3,NULL),(25,26,'checkout',29,'App\\Models\\User',NULL,'Excepturi sunt quo libero illum vitae.',NULL,'App\\Models\\Asset',10,NULL,NULL,'2009-11-25 08:36:11','2016-11-20 23:07:30',NULL,NULL,2,NULL),(26,43,'checkout',35,'App\\Models\\User',NULL,'Laborum quia molestiae totam quam sapiente aut quaerat fugit.',NULL,'App\\Models\\Accessory',4,NULL,NULL,'1986-03-15 09:45:58','2016-11-20 23:07:30',NULL,NULL,1,NULL),(27,31,'checkout',38,'App\\Models\\User',NULL,'Perspiciatis possimus est qui excepturi mollitia aspernatur animi.',NULL,'App\\Models\\Accessory',15,NULL,NULL,'2003-02-16 03:08:32','2016-11-20 23:07:30',NULL,NULL,2,NULL),(28,29,'checkout',31,'App\\Models\\User',NULL,'Ab unde dicta ut odit temporibus facilis.',NULL,'App\\Models\\Accessory',1,NULL,NULL,'1992-02-26 19:41:44','2016-11-20 23:07:30',NULL,NULL,2,NULL),(29,30,'checkout',34,'App\\Models\\User',NULL,'Vero qui iste ipsum ad labore.',NULL,'App\\Models\\Accessory',3,NULL,NULL,'1979-04-19 20:56:34','2016-11-20 23:07:30',NULL,NULL,3,NULL),(30,31,'checkout',29,'App\\Models\\User',NULL,'Dolorum nesciunt atque et iste quia doloremque quasi.',NULL,'App\\Models\\Accessory',10,NULL,NULL,'2007-10-14 11:53:40','2016-11-20 23:07:30',NULL,NULL,2,NULL),(31,24,'checkout',25,'App\\Models\\User',NULL,'Labore aliquid rerum rerum fugit impedit optio.',NULL,'App\\Models\\Accessory',4,NULL,NULL,'2014-05-17 04:23:16','2016-11-20 23:07:30',NULL,NULL,1,NULL),(32,40,'checkout',41,'App\\Models\\User',NULL,'Id et ducimus similique unde.',NULL,'App\\Models\\Accessory',6,NULL,NULL,'2012-03-19 12:34:56','2016-11-20 23:07:30',NULL,NULL,4,NULL),(33,42,'checkout',34,'App\\Models\\User',NULL,'Aliquid quisquam non quo nihil enim et.',NULL,'App\\Models\\Accessory',3,NULL,NULL,'2000-09-07 05:58:59','2016-11-20 23:07:30',NULL,NULL,3,NULL),(34,42,'checkout',42,'App\\Models\\User',NULL,'Rerum possimus voluptas voluptate sit ut incidunt et.',NULL,'App\\Models\\Accessory',3,NULL,NULL,'2003-08-10 04:47:44','2016-11-20 23:07:30',NULL,NULL,3,NULL),(35,30,'checkout',34,'App\\Models\\User',NULL,'Est rerum temporibus ratione voluptatem dolorem minus.',NULL,'App\\Models\\Accessory',11,NULL,NULL,'1974-01-18 19:02:43','2016-11-20 23:07:30',NULL,NULL,3,NULL),(36,44,'checkout',44,'App\\Models\\User',NULL,'Voluptatem harum et ea possimus et.',NULL,'App\\Models\\Accessory',4,NULL,NULL,'1978-03-20 15:07:44','2016-11-20 23:07:30',NULL,NULL,1,NULL),(37,29,'checkout',26,'App\\Models\\User',NULL,'Minima fugit voluptas in harum suscipit aut.',NULL,'App\\Models\\Accessory',12,NULL,NULL,'1973-05-25 22:49:02','2016-11-20 23:07:30',NULL,NULL,2,NULL),(38,40,'checkout',33,'App\\Models\\User',NULL,'Officiis non dolorem consequuntur.',NULL,'App\\Models\\Accessory',6,NULL,NULL,'2002-01-19 14:02:55','2016-11-20 23:07:30',NULL,NULL,4,NULL),(39,30,'checkout',34,'App\\Models\\User',NULL,'Quidem et deleniti temporibus aut consectetur ipsam id.',NULL,'App\\Models\\Accessory',7,NULL,NULL,'2012-03-04 15:45:00','2016-11-20 23:07:30',NULL,NULL,3,NULL),(40,30,'checkout',34,'App\\Models\\User',NULL,'Quia totam ratione aliquam animi aliquam at.',NULL,'App\\Models\\Accessory',11,NULL,NULL,'2014-07-15 00:14:16','2016-11-20 23:07:30',NULL,NULL,3,NULL),(41,30,'checkout',42,'App\\Models\\User',NULL,'Dolorem eius ipsum et omnis.',NULL,'App\\Models\\Consumable',10,NULL,NULL,'1970-04-18 03:14:14','2016-11-20 23:07:30',NULL,NULL,3,NULL),(42,43,'checkout',25,'App\\Models\\User',NULL,'Et qui veritatis tenetur.',NULL,'App\\Models\\Consumable',23,NULL,NULL,'1991-12-24 00:58:37','2016-11-20 23:07:30',NULL,NULL,1,NULL),(43,27,'checkout',27,'App\\Models\\User',NULL,'Voluptatem velit quo voluptatum illo.',NULL,'App\\Models\\Consumable',15,NULL,NULL,'1975-03-22 13:47:58','2016-11-20 23:07:30',NULL,NULL,2,NULL),(44,41,'checkout',40,'App\\Models\\User',NULL,'Nobis non sint nisi eligendi ut qui quo.',NULL,'App\\Models\\Consumable',16,NULL,NULL,'1987-05-18 08:21:45','2016-11-20 23:07:30',NULL,NULL,4,NULL),(45,44,'checkout',28,'App\\Models\\User',NULL,'Dolorum iste pariatur non molestias quo possimus aut qui.',NULL,'App\\Models\\Consumable',18,NULL,NULL,'1977-10-31 11:56:47','2016-11-20 23:07:30',NULL,NULL,1,NULL),(46,25,'checkout',24,'App\\Models\\User',NULL,'Nemo et inventore omnis ipsum et.',NULL,'App\\Models\\Consumable',2,NULL,NULL,'1972-09-01 04:51:50','2016-11-20 23:07:30',NULL,NULL,1,NULL),(47,33,'checkout',33,'App\\Models\\User',NULL,'Odio sunt beatae facere quae.',NULL,'App\\Models\\Consumable',3,NULL,NULL,'2010-07-02 14:17:15','2016-11-20 23:07:30',NULL,NULL,4,NULL),(48,27,'checkout',39,'App\\Models\\User',NULL,'Rerum eveniet dolor maiores earum.',NULL,'App\\Models\\Consumable',24,NULL,NULL,'1985-06-24 03:57:41','2016-11-20 23:07:30',NULL,NULL,2,NULL),(49,24,'checkout',25,'App\\Models\\User',NULL,'Unde delectus corporis ad provident assumenda molestias consequatur sint.',NULL,'App\\Models\\Consumable',18,NULL,NULL,'1990-10-16 14:04:14','2016-11-20 23:07:30',NULL,NULL,1,NULL),(50,41,'checkout',33,'App\\Models\\User',NULL,'Vero ea corrupti eius voluptatibus corporis iste officiis est.',NULL,'App\\Models\\Consumable',3,NULL,NULL,'1988-08-15 17:36:08','2016-11-20 23:07:30',NULL,NULL,4,NULL),(51,34,'checkout',34,'App\\Models\\User',NULL,'Et ad quaerat in commodi.',NULL,'App\\Models\\Consumable',14,NULL,NULL,'1970-04-02 22:05:18','2016-11-20 23:07:30',NULL,NULL,3,NULL),(52,27,'checkout',39,'App\\Models\\User',NULL,'Aliquam ut minus quis qui repellat placeat.',NULL,'App\\Models\\Consumable',1,NULL,NULL,'2005-06-21 04:36:35','2016-11-20 23:07:30',NULL,NULL,2,NULL),(53,27,'checkout',26,'App\\Models\\User',NULL,'Est provident dolorem est.',NULL,'App\\Models\\Consumable',24,NULL,NULL,'1998-08-11 04:12:32','2016-11-20 23:07:30',NULL,NULL,2,NULL),(54,38,'checkout',38,'App\\Models\\User',NULL,'Suscipit et corporis et impedit enim.',NULL,'App\\Models\\Consumable',9,NULL,NULL,'1973-03-25 08:34:15','2016-11-20 23:07:30',NULL,NULL,2,NULL),(55,29,'checkout',31,'App\\Models\\User',NULL,'Occaecati earum sed aspernatur ex pariatur assumenda fuga.',NULL,'App\\Models\\Consumable',17,NULL,NULL,'2006-03-24 14:39:34','2016-11-20 23:07:30',NULL,NULL,2,NULL),(56,24,'checkout',25,'App\\Models\\User',NULL,'Perspiciatis expedita voluptas iure facilis debitis sed.',NULL,'App\\Models\\Component',8,NULL,NULL,'2010-02-22 13:01:32','2016-11-20 23:07:30',NULL,NULL,1,NULL),(57,31,'checkout',27,'App\\Models\\User',NULL,'Quos enim in quidem et quia.',NULL,'App\\Models\\Component',5,NULL,NULL,'2002-01-19 19:08:11','2016-11-20 23:07:30',NULL,NULL,2,NULL),(58,35,'checkout',32,'App\\Models\\User',NULL,'Dolorem fugiat sapiente aut rem.',NULL,'App\\Models\\Component',9,NULL,NULL,'2004-02-02 02:21:13','2016-11-20 23:07:30',NULL,NULL,1,NULL),(59,40,'checkout',36,'App\\Models\\User',NULL,'Harum unde minus praesentium et.',NULL,'App\\Models\\Component',4,NULL,NULL,'1974-09-30 16:26:05','2016-11-20 23:07:30',NULL,NULL,4,NULL),(60,30,'checkout',34,'App\\Models\\User',NULL,'Et et et maxime laudantium nihil.',NULL,'App\\Models\\Component',3,NULL,NULL,'1977-09-08 05:22:06','2016-11-20 23:07:30',NULL,NULL,3,NULL),(61,35,'checkout',35,'App\\Models\\User',NULL,'Id iste id animi.',NULL,'App\\Models\\Component',9,NULL,NULL,'1971-04-06 04:16:29','2016-11-20 23:07:30',NULL,NULL,1,NULL),(62,24,'checkout',44,'App\\Models\\User',NULL,'Optio laborum sint delectus sint porro consequuntur.',NULL,'App\\Models\\Component',10,NULL,NULL,'1976-07-02 09:12:21','2016-11-20 23:07:30',NULL,NULL,1,NULL),(63,26,'checkout',26,'App\\Models\\User',NULL,'Recusandae eum porro id.',NULL,'App\\Models\\Component',5,NULL,NULL,'2016-03-06 02:09:25','2016-11-20 23:07:30',NULL,NULL,2,NULL),(64,37,'checkout',33,'App\\Models\\User',NULL,'Aut voluptas facilis reprehenderit ut consectetur.',NULL,'App\\Models\\Component',4,NULL,NULL,'1994-03-25 08:16:58','2016-11-20 23:07:30',NULL,NULL,4,NULL),(65,42,'checkout',30,'App\\Models\\User',NULL,'Mollitia et officiis iste id quis sint.',NULL,'App\\Models\\Component',3,NULL,NULL,'2001-10-12 06:59:58','2016-11-20 23:07:30',NULL,NULL,3,NULL),(66,29,'checkout',29,'App\\Models\\User',NULL,'Eos aliquid maxime et ea porro et.',NULL,'App\\Models\\Component',6,NULL,NULL,'2013-08-26 01:44:47','2016-11-20 23:07:30',NULL,NULL,2,NULL),(67,30,'checkout',42,'App\\Models\\User',NULL,'Maxime quibusdam sed fugiat ex.',NULL,'App\\Models\\Component',3,NULL,NULL,'1987-01-17 04:30:12','2016-11-20 23:07:30',NULL,NULL,3,NULL),(68,37,'checkout',41,'App\\Models\\User',NULL,'Ea et tempora magni nam sit consequatur.',NULL,'App\\Models\\Component',2,NULL,NULL,'2005-12-08 16:20:24','2016-11-20 23:07:30',NULL,NULL,4,NULL),(69,42,'checkout',34,'App\\Models\\User',NULL,'Reiciendis hic dicta labore saepe quia dolore minus.',NULL,'App\\Models\\Component',3,NULL,NULL,'1984-03-22 03:00:37','2016-11-20 23:07:30',NULL,NULL,3,NULL),(70,40,'checkout',33,'App\\Models\\User',NULL,'Consequatur dolor iste quidem rerum perspiciatis quisquam.',NULL,'App\\Models\\Component',2,NULL,NULL,'2015-09-15 22:36:44','2016-11-20 23:07:30',NULL,NULL,4,NULL),(71,41,'checkout',41,'App\\Models\\Asset',NULL,'Mollitia nulla incidunt autem non veritatis culpa ipsum.',NULL,'App\\Models\\License',7,NULL,NULL,'1974-07-30 00:54:19','2016-11-20 23:07:30',NULL,NULL,4,NULL),(72,41,'checkout',47,'App\\Models\\Asset',NULL,'Eos aut reiciendis eaque quam.',NULL,'App\\Models\\License',7,NULL,NULL,'1985-08-02 17:10:38','2016-11-20 23:07:30',NULL,NULL,4,NULL),(73,33,'checkout',1,'App\\Models\\Asset',NULL,'Quas nobis culpa nihil at.',NULL,'App\\Models\\License',4,NULL,NULL,'1999-11-08 18:13:14','2016-11-20 23:07:30',NULL,NULL,4,NULL),(74,30,'checkout',42,'App\\Models\\Asset',NULL,'Est quis quo ipsa vel repudiandae.',NULL,'App\\Models\\License',1,NULL,NULL,'2016-11-03 21:47:29','2016-11-20 23:07:30',NULL,NULL,3,NULL),(75,37,'checkout',68,'App\\Models\\Asset',NULL,'Nihil ut eos omnis est consequatur eum.',NULL,'App\\Models\\License',7,NULL,NULL,'1971-06-15 04:38:12','2016-11-20 23:07:30',NULL,NULL,4,NULL),(76,27,'checkout',100,'App\\Models\\Asset',NULL,'Quod perferendis aliquid temporibus ut aut.',NULL,'App\\Models\\License',3,NULL,NULL,'1974-12-18 16:59:54','2016-11-20 23:07:30',NULL,NULL,2,NULL),(77,42,'checkout',96,'App\\Models\\Asset',NULL,'Et aspernatur provident excepturi.',NULL,'App\\Models\\License',1,NULL,NULL,'1975-08-09 17:31:54','2016-11-20 23:07:30',NULL,NULL,3,NULL),(78,40,'checkout',38,'App\\Models\\Asset',NULL,'Quia et quasi sint perspiciatis voluptate fugit.',NULL,'App\\Models\\License',7,NULL,NULL,'1976-07-21 10:51:54','2016-11-20 23:07:30',NULL,NULL,4,NULL),(79,35,'checkout',98,'App\\Models\\Asset',NULL,'Laborum est eos porro nihil in.',NULL,'App\\Models\\License',5,NULL,NULL,'2011-02-04 03:40:05','2016-11-20 23:07:30',NULL,NULL,1,NULL),(80,30,'checkout',92,'App\\Models\\Asset',NULL,'Architecto enim officiis accusamus asperiores dolorem sequi.',NULL,'App\\Models\\License',1,NULL,NULL,'2002-05-25 16:02:39','2016-11-20 23:07:30',NULL,NULL,3,NULL),(81,42,'checkout',92,'App\\Models\\Asset',NULL,'Adipisci cum totam nostrum dolorem aut velit.',NULL,'App\\Models\\License',1,NULL,NULL,'2003-04-11 12:01:28','2016-11-20 23:07:30',NULL,NULL,3,NULL),(82,38,'checkout',6,'App\\Models\\Asset',NULL,'Repudiandae sit qui est aut est.',NULL,'App\\Models\\License',10,NULL,NULL,'1997-03-20 06:55:10','2016-11-20 23:07:30',NULL,NULL,2,NULL),(83,42,'checkout',31,'App\\Models\\Asset',NULL,'Voluptates quia temporibus aut quia sequi.',NULL,'App\\Models\\License',1,NULL,NULL,'1979-07-30 22:23:20','2016-11-20 23:07:30',NULL,NULL,3,NULL),(84,26,'checkout',37,'App\\Models\\Asset',NULL,'Sit ut expedita quo aperiam iure.',NULL,'App\\Models\\License',6,NULL,NULL,'1976-03-26 22:44:34','2016-11-20 23:07:30',NULL,NULL,2,NULL),(85,37,'checkout',8,'App\\Models\\Asset',NULL,'Quo nihil non voluptatem omnis omnis ut et.',NULL,'App\\Models\\License',8,NULL,NULL,'2004-06-22 07:53:01','2016-11-20 23:07:30',NULL,NULL,4,NULL),(86,1,'created',NULL,NULL,NULL,NULL,NULL,'App\\Models\\Accessory',16,NULL,NULL,'2016-11-21 00:33:26','2016-11-21 00:33:26',NULL,NULL,4,NULL),(87,1,'created',NULL,NULL,NULL,NULL,NULL,'App\\Models\\Asset',101,NULL,NULL,'2016-11-21 00:33:30','2016-11-21 00:33:30',NULL,NULL,2,NULL),(88,1,'checkout',20,'App\\Models\\User',NULL,'Checked out on asset creation',NULL,'App\\Models\\Asset',101,NULL,NULL,'2016-11-21 00:33:30','2016-11-21 00:33:30',NULL,NULL,NULL,NULL),(89,1,'created',NULL,NULL,NULL,NULL,NULL,'App\\Models\\Component',11,NULL,NULL,'2016-11-21 00:33:36','2016-11-21 00:33:36',NULL,NULL,2,NULL),(90,1,'created',NULL,NULL,NULL,NULL,NULL,'App\\Models\\Consumable',26,NULL,NULL,'2016-11-21 00:33:39','2016-11-21 00:33:39',NULL,NULL,2,NULL),(91,1,'created',NULL,NULL,NULL,NULL,NULL,'App\\Models\\License',11,NULL,NULL,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL,4,NULL); /*!40000 ALTER TABLE `action_logs` ENABLE KEYS */; UNLOCK TABLES; @@ -179,7 +180,7 @@ CREATE TABLE `asset_maintenances` ( `completion_date` date DEFAULT NULL, `asset_maintenance_time` int(11) DEFAULT NULL, `notes` longtext COLLATE utf8_unicode_ci, - `cost` decimal(10,2) DEFAULT NULL, + `cost` decimal(20,2) DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -240,7 +241,7 @@ CREATE TABLE `assets` ( `model_id` int(11) DEFAULT NULL, `serial` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `purchase_date` date DEFAULT NULL, - `purchase_cost` decimal(8,2) DEFAULT NULL, + `purchase_cost` decimal(20,2) DEFAULT NULL, `order_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `assigned_to` int(11) DEFAULT NULL, `notes` text COLLATE utf8_unicode_ci, @@ -263,7 +264,7 @@ CREATE TABLE `assets` ( `expected_checkin` date DEFAULT NULL, `company_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -272,7 +273,7 @@ CREATE TABLE `assets` ( LOCK TABLES `assets` WRITE; /*!40000 ALTER TABLE `assets` DISABLE KEYS */; -INSERT INTO `assets` VALUES (1,'eget nunc donec quis','970882174-8',1,'27aa8378-b0f4-4289-84a4-405da95c6147','2016-04-05',289.59,NULL,3,'Curabitur in libero ut massa volutpat convallis. Morbi odio odio, elementum eu, interdum eu, tincidunt in, leo. Maecenas pulvinar lobortis est.',NULL,1,'2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,5,NULL,NULL,NULL,1,0,25,'',NULL,NULL,NULL,14),(2,'mi in porttitor','544574073-0',2,'4bc7fc90-5a97-412f-8eed-77ecacc643fc','2016-03-08',763.46,NULL,4,NULL,NULL,1,'2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,5,NULL,NULL,NULL,2,0,26,'',NULL,NULL,NULL,NULL),(3,'morbi quis tortor id','710141467-2',3,'2837ab20-8f0d-4935-8a52-226392f2b1b0','2015-08-09',233.57,NULL,5,'In congue. Etiam justo. Etiam pretium iaculis justo.',NULL,1,'2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,6,NULL,NULL,NULL,3,0,27,'',NULL,NULL,NULL,15),(4,'amet cursus id turpis','103538064-1',4,'18d6e6a4-d362-4de9-beb4-7f62fb93de6f','2015-10-11',0.00,NULL,6,'Integer ac leo. Pellentesque ultrices mattis odio. Donec vitae nisi.',NULL,1,'2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,7,NULL,NULL,NULL,3,0,28,'',NULL,NULL,NULL,NULL),(5,'ipsum praesent','118753405-6',5,'f9b473c6-c810-42f2-8335-27ce468889a8','2015-06-16',324.80,NULL,7,NULL,NULL,1,'2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,2,NULL,NULL,NULL,3,0,29,'',NULL,NULL,NULL,NULL),(6,'dictumst maecenas ut','998233705-X',6,'4751495c-cee0-4961-b788-94a545b5643e','2016-04-16',261.79,NULL,8,NULL,NULL,1,'2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,3,NULL,NULL,NULL,4,0,30,'',NULL,NULL,NULL,NULL),(7,'libero nam','177687256-8',7,'17b3cf8d-fead-46f5-a8b0-49906bb90a00','2015-05-24',0.00,NULL,9,'Proin interdum mauris non ligula pellentesque ultrices. Phasellus id sapien in sapien iaculis congue. Vivamus metus arcu, adipiscing molestie, hendrerit at, vulputate vitae, nisl.',NULL,1,'2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,7,NULL,NULL,NULL,3,0,31,'',NULL,NULL,NULL,NULL),(8,'mauris morbi non','129556040-2',8,'7a6a2fdb-160c-4d91-8e05-a0337a90d9db','2015-09-15',434.86,NULL,10,'Duis aliquam convallis nunc. Proin at turpis a pede posuere nonummy. Integer non velit.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,3,NULL,NULL,NULL,5,0,32,'',NULL,NULL,NULL,NULL),(9,'eleifend pede libero','117517007-0',9,'c1a57909-3b2e-47fe-ab2f-843401b2a7de','2016-04-13',89.53,NULL,11,'Maecenas tristique, est et tempus semper, est quam pharetra magna, ac consequat metus sapien ut nunc. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Mauris viverra diam vitae quam. Suspendisse potenti.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,3,NULL,NULL,NULL,6,0,33,'',NULL,NULL,NULL,NULL),(10,'convallis nulla neque','007968217-0',10,'07540238-fb3c-4c8a-8e11-d43883ee4268','2015-07-04',0.00,NULL,12,NULL,NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,6,NULL,NULL,NULL,3,0,34,'',NULL,NULL,NULL,NULL),(11,'in felis','441402118-9',11,'527b2445-2c67-4f76-912f-6ec42400a584','2016-05-18',0.00,NULL,13,'Suspendisse potenti. In eleifend quam a odio. In hac habitasse platea dictumst.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,6,NULL,NULL,NULL,7,0,35,'',NULL,NULL,NULL,16),(12,'vel ipsum praesent','863829558-8',12,NULL,'2015-11-10',0.00,NULL,14,'Aenean fermentum. Donec ut mauris eget massa tempor convallis. Nulla neque libero, convallis eget, eleifend luctus, ultricies eu, nibh.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,6,NULL,NULL,NULL,6,0,36,'',NULL,NULL,NULL,NULL),(13,'odio elementum','742114860-4',13,'9a863968-180e-451d-a723-dc85e2d5d8ff','2016-03-20',881.40,NULL,NULL,'Pellentesque at nulla. Suspendisse potenti. Cras in purus eu magna vulputate luctus.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,1,NULL,NULL,NULL,8,0,37,'',NULL,NULL,NULL,NULL),(14,'viverra diam vitae','927820758-6',14,'e287bb64-ff4f-434c-88ab-210ad433c77b','2016-03-05',675.30,NULL,15,NULL,NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,3,NULL,NULL,NULL,9,0,38,'',NULL,NULL,NULL,NULL),(15,'felis sed interdum venenatis','789757925-5',15,'90bcab28-ffd4-48c9-ba5d-c2eeb1400698','2015-07-25',0.00,NULL,16,'Phasellus sit amet erat. Nulla tempus. Vivamus in felis eu sapien cursus vestibulum.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,2,NULL,NULL,NULL,10,0,39,'',NULL,NULL,NULL,NULL),(16,'id consequat','202652281-2',16,'08e440f7-bd0b-47a7-a577-4a3ce3c7dfe7','2015-08-13',446.22,NULL,17,'Proin interdum mauris non ligula pellentesque ultrices. Phasellus id sapien in sapien iaculis congue. Vivamus metus arcu, adipiscing molestie, hendrerit at, vulputate vitae, nisl.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,6,NULL,NULL,NULL,3,0,40,'',NULL,NULL,NULL,NULL),(17,'porta volutpat quam pede','210119288-8',17,'5f900903-0ffe-4405-b5ad-aa4aa59d911c','2015-12-24',923.90,NULL,18,'Nam ultrices, libero non mattis pulvinar, nulla pede ullamcorper augue, a suscipit nulla elit ac nulla. Sed vel enim sit amet nunc viverra dapibus. Nulla suscipit ligula in lacus.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,6,NULL,NULL,NULL,11,0,41,'',NULL,NULL,NULL,NULL),(18,'libero nam dui proin','022102715-7',18,'bde85740-f103-4b49-a691-a60c7f6859a8','2016-03-29',0.00,NULL,19,'In hac habitasse platea dictumst. Etiam faucibus cursus urna. Ut tellus.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,5,NULL,NULL,NULL,12,0,42,'',NULL,NULL,NULL,NULL),(19,'sociis natoque penatibus','610672722-8',19,'bf4a2a92-6f29-4d24-be90-8126d4dcbd64','2016-05-13',442.51,NULL,20,NULL,NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,3,NULL,NULL,NULL,13,0,43,'',NULL,NULL,NULL,NULL),(20,'sed tristique in','898880851-7',20,'9a02817e-de79-4850-a212-84c9ae3dd1a2','2015-09-10',906.39,NULL,21,'Integer ac leo. Pellentesque ultrices mattis odio. Donec vitae nisi.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,5,NULL,NULL,NULL,3,0,44,'',NULL,NULL,NULL,NULL),(21,'dui luctus rutrum','466008300-4',21,'514aca2a-9080-4c49-8695-7ba4c78edc65','2015-12-21',151.27,NULL,NULL,'Duis consequat dui nec nisi volutpat eleifend. Donec ut dolor. Morbi vel lectus in quam fringilla rhoncus.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,1,NULL,NULL,NULL,3,0,45,'',NULL,NULL,NULL,NULL),(22,'ut massa volutpat','313295582-5',22,'b99208e2-b8d8-4f7a-8a06-366a27733b97','2016-02-15',211.07,NULL,NULL,'Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vivamus vestibulum sagittis sapien. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,1,NULL,NULL,NULL,3,0,46,'',NULL,NULL,NULL,NULL),(23,'habitasse platea dictumst','552327520-4',23,'c8680b36-a13c-427f-a6a1-1b9b351eb129','2015-11-25',112.11,NULL,22,'In quis justo. Maecenas rhoncus aliquam lacus. Morbi quis tortor id nulla ultrices aliquet.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,2,NULL,NULL,NULL,14,0,47,'',NULL,NULL,NULL,NULL),(24,'leo pellentesque ultrices','446504693-6',24,'6c1e7556-063f-4c71-87ce-e46b06e8c238','2015-08-19',221.03,NULL,23,'Nam ultrices, libero non mattis pulvinar, nulla pede ullamcorper augue, a suscipit nulla elit ac nulla. Sed vel enim sit amet nunc viverra dapibus. Nulla suscipit ligula in lacus.',NULL,1,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,5,NULL,NULL,NULL,15,0,48,'',NULL,NULL,NULL,NULL); +INSERT INTO `assets` VALUES (1,'Sharable contextually-based function','310455216',4,'de8ec8cb-387d-3861-accf-031a26b6da4b','1989-11-14',NULL,'3452948',NULL,'Error quas error libero suscipit qui hic non.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,0,1,NULL,NULL,NULL,NULL,4),(2,'Digitized didactic capacity','842399003',5,'c579659e-e6df-3f21-8b32-f2e5e60cb960','1975-02-19',NULL,'5783754',NULL,'Quibusdam consectetur sunt perspiciatis error.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,1,4,NULL,NULL,NULL,NULL,3),(3,'Enhanced executive groupware','990185629',1,'8e09a1b5-ecf1-3ea0-b045-f51fb5631fb8','1971-07-19',NULL,'24388545',NULL,'Doloremque labore quos excepturi est accusamus at cumque a.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,0,3,NULL,NULL,NULL,NULL,1),(4,'Customer-focused intangible complexity','546752914',4,'82ea2c28-c182-3c5d-b370-4c8c66b96d02','2000-11-27',NULL,'34470480',NULL,'Assumenda consequatur dolores quo commodi.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,1,4,NULL,NULL,NULL,NULL,3),(5,'Configurable client-driven support','212535141',1,'5efd5c23-b151-3a8b-87e3-4d3479571ba4','1988-09-22',NULL,'3328283',NULL,'Ad est quidem aliquam quae voluptatem nam.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,1,5,NULL,NULL,NULL,NULL,2),(6,'User-centric static toolset','411277269',5,'e82002a4-450c-3ff2-9568-71e7e5b67b36','1972-05-18',NULL,'3971980',NULL,'Ducimus quasi sed quis eius unde.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,5,0,3,NULL,NULL,NULL,NULL,2),(7,'Virtual neutral monitoring','1172159860',4,'0a7a05c7-8b7b-3896-aa26-418dbc5f56ef','1985-11-20',NULL,'10377281',NULL,'Necessitatibus est et nam doloremque impedit enim libero qui.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,1,5,NULL,NULL,NULL,NULL,1),(8,'Monitored mission-critical time-frame','298965372',2,'7c5cd287-32b1-30f5-979d-d50b24411c35','2000-01-03',NULL,'25514597',NULL,'Aut harum dignissimos quia officia ipsum qui corporis laudantium.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,5,1,2,NULL,NULL,NULL,NULL,4),(9,'Upgradable background structure','1040526590',4,'0c973af0-7192-39af-8d15-61df89c44516','2007-09-13',NULL,'3935957',NULL,'Distinctio quia quod adipisci sunt.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,1,2,NULL,NULL,NULL,NULL,2),(10,'Facetoface holistic task-force','820364496',3,'85e0b99c-9e20-3fa4-8fbc-b03c947496cf','1992-05-08',NULL,'40804751',NULL,'Quo velit fuga occaecati quia.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,0,5,NULL,NULL,NULL,NULL,2),(11,'Team-oriented holistic service-desk','993520225',1,'e6641a5d-34d5-318e-b4e0-a6c56c460194','1978-10-13',NULL,'8692167',NULL,'Eum et voluptate omnis.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,0,2,NULL,NULL,NULL,NULL,3),(12,'Configurable heuristic capability','925029102',5,'5bc69980-51fa-35bf-8dd4-18397ca99282','1998-02-05',NULL,'31551001',NULL,'Praesentium et autem quis minima neque enim enim.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,3,0,2,NULL,NULL,NULL,NULL,4),(13,'Expanded systemic forecast','1194379470',1,'52cbe397-fdcf-3502-9d05-fcb291bbc7a9','1976-09-12',NULL,'33902721',NULL,'Suscipit excepturi magni voluptatem dolores veniam est.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,3,0,5,NULL,NULL,NULL,NULL,1),(14,'Robust demand-driven knowledgeuser','614105786',1,'8d38ebeb-ae28-37f5-817f-ca9ee939c6ec','1985-09-19',NULL,'24172772',NULL,'Saepe dolorem atque atque quia debitis incidunt delectus.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,1,0,4,NULL,NULL,NULL,NULL,1),(15,'Synergistic systemic circuit','1346537212',4,'46051bf4-eb05-35f2-b1a2-9cdf7101360f','2015-03-14',NULL,'3419670',NULL,'Doloribus rerum sint itaque cumque.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,1,2,NULL,NULL,NULL,NULL,1),(16,'Switchable grid-enabled frame','806381735',1,'b33dde10-66f9-31fd-b21f-5b8d33e5b181','1971-03-16',NULL,'23911374',NULL,'Cumque quis qui voluptas possimus.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,3),(17,'Reactive optimal budgetarymanagement','577709240',2,'8f09492b-26d5-3bc5-92df-0c6a7086f121','2011-02-26',NULL,'7513540',NULL,'Sit ullam provident aut.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,3,1,4,NULL,NULL,NULL,NULL,3),(18,'Total zerodefect capacity','234586180',5,'b34cf5bd-2e33-3860-a8d6-4f95d356d59b','1988-12-17',NULL,'38996992',NULL,'Impedit rerum voluptas ea dolor id consequatur.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,5,0,4,NULL,NULL,NULL,NULL,3),(19,'Open-source bandwidth-monitored capacity','1449709770',4,'37fd77d0-d26c-3063-8922-e8f7176cd1b2','2012-12-12',NULL,'39149042',NULL,'Et inventore corrupti non dicta.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,1,2,NULL,NULL,NULL,NULL,2),(20,'Polarised didactic data-warehouse','48615263',1,'e67c3282-f525-3ddd-a264-4122a290c88b','1974-07-15',NULL,'21663155',NULL,'Est et est modi ut.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,5,1,3,NULL,NULL,NULL,NULL,3),(21,'Exclusive grid-enabled projection','878641912',1,'ef92eb6e-43b7-32a4-8fdb-2ef94c378371','2002-04-30',NULL,'21516797',NULL,'Quam illum sunt rem neque nam vel ratione.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,1,1,NULL,NULL,NULL,NULL,2),(22,'Right-sized eco-centric forecast','571667321',4,'3910e3d7-3c50-3fe7-bb41-675257c4540b','1970-09-22',NULL,'45627107',NULL,'Ut autem et velit ea vitae voluptatem.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,1,4,NULL,NULL,NULL,NULL,4),(23,'Managed optimizing info-mediaries','284186616',3,'7bbb0f48-e09f-341d-8c4e-745fc7fc40ab','1990-07-14',NULL,'43121262',NULL,'Perferendis dolor nihil quidem suscipit quam aut repudiandae est.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,3,1,2,NULL,NULL,NULL,NULL,2),(24,'Polarised reciprocal interface','83082897',4,'b05a187b-f59a-3c13-b212-31e8f0c2c11b','1971-08-29',NULL,'35002634',NULL,'Sunt error ducimus enim sunt et.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,1,2,NULL,NULL,NULL,NULL,1),(25,'Organic impactful model','1360793242',5,'2f03fe66-48bd-3f7e-b562-7857d61d7b02','1997-07-07',NULL,'6053575',NULL,'Architecto fugiat et porro.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,1,1,1,NULL,NULL,NULL,NULL,2),(26,'Compatible optimal groupware','488026256',4,'170e05ab-0a46-338f-9777-5f869ee3e73e','1992-07-27',NULL,'46455897',NULL,'At magni iusto quidem qui laudantium ducimus quos laudantium.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,1,5,NULL,NULL,NULL,NULL,1),(27,'Exclusive fault-tolerant collaboration','283373007',1,'54220f06-df0a-39b9-9cce-7d2618b52027','1978-12-11',NULL,'17354785',NULL,'Atque praesentium aut voluptatem.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,4),(28,'Grass-roots human-resource monitoring','1358583588',2,'14a2bb09-5c86-3580-a9f7-f957c029cdd4','2013-09-23',NULL,'41513341',NULL,'Et architecto qui a aperiam ipsam aspernatur neque aut.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,4),(29,'Adaptive mobile methodology','1078959508',5,'deb6de18-d353-3028-abb5-b85c53e572b3','1986-10-11',NULL,'30129295',NULL,'Consequatur iste temporibus possimus distinctio nobis tempore.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,3,0,1,NULL,NULL,NULL,NULL,1),(30,'Multi-layered asynchronous info-mediaries','500823859',4,'b9e52b26-6654-3ec5-8114-052da7e81e68','2003-12-28',NULL,'31894531',NULL,'Quisquam aut voluptate aliquam aut vel voluptate odit blanditiis.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,3,1,1,NULL,NULL,NULL,NULL,4),(31,'Reverse-engineered disintermediate artificialintelligence','127910469',4,'b803e358-430d-383d-869c-df491742aeab','1985-05-02',NULL,'9595266',NULL,'Consectetur consequatur modi dolor quibusdam dolor.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,5,0,4,NULL,NULL,NULL,NULL,3),(32,'Reactive intermediate database','1427050701',5,'b15aa82f-4c3c-3c46-8ac0-bbb8d93c3d8d','2010-04-13',NULL,'33941269',NULL,'Explicabo nihil dolorum sed numquam cupiditate.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,0,3,NULL,NULL,NULL,NULL,4),(33,'Stand-alone intangible benchmark','1002621001',2,'34357519-e421-397b-9f29-fed75f4d257c','1983-10-27',NULL,'5195666',NULL,'Temporibus neque non enim.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,1,1,NULL,NULL,NULL,NULL,1),(34,'Multi-channelled responsive paradigm','179562199',4,'146dc1b3-4ec5-33a1-8784-6e0e4c2374e4','1990-06-17',NULL,'3817771',NULL,'Aspernatur laudantium ullam quaerat nihil aut expedita quia.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,5,1,1,NULL,NULL,NULL,NULL,3),(35,'Multi-lateral heuristic leverage','1266601024',2,'55ccf3ae-fe75-3488-a92c-68f488217915','1976-11-05',NULL,'26941625',NULL,'Omnis culpa ipsam est quam eius ea.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,3,1,3,NULL,NULL,NULL,NULL,3),(36,'Up-sized explicit info-mediaries','985581598',3,'4d5fcd70-12ae-3b50-b71d-679d3d596b6e','2005-06-26',NULL,'46999637',NULL,'Dolor dolore sed enim nobis pariatur quia.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,1,0,3,NULL,NULL,NULL,NULL,2),(37,'Innovative bottom-line internetsolution','838243568',1,'5098fe99-190c-38ea-b622-26bb229fb529','2009-07-14',NULL,'43758387',NULL,'Et ratione culpa corporis.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,0,5,NULL,NULL,NULL,NULL,2),(38,'Adaptive radical localareanetwork','376999050',5,'66268f06-09ea-368f-9fcf-046e35a685f7','1978-06-01',NULL,'37849620',NULL,'Veniam qui maxime cupiditate omnis.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,0,1,NULL,NULL,NULL,NULL,4),(39,'Polarised user-facing success','82661970',4,'a1de80a1-26da-3990-9157-eb66282dec40','2007-04-29',NULL,'2358580',NULL,'Quam sunt aliquid et quisquam.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,0,2,NULL,NULL,NULL,NULL,1),(40,'Configurable needs-based access','1230479844',4,'d70d75e7-fa62-331e-9b04-b465aa447c02','1994-05-18',NULL,'18594912',NULL,'Dolorem nam repellendus sed et aperiam.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,1,0,4,NULL,NULL,NULL,NULL,4),(41,'Front-line multimedia knowledgeuser','741179654',2,'4b5012b4-94cd-39a1-8e21-b5cb26963c8d','2013-05-23',NULL,'41270267',NULL,'Fuga sit ut natus vel atque accusantium.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,1,1,3,NULL,NULL,NULL,NULL,4),(42,'Business-focused exuding info-mediaries','108582572',1,'86b87c96-fe5a-3dee-aa03-161611dbffdb','1998-06-08',NULL,'49700731',NULL,'Sequi et consequatur facere.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,1,2,NULL,NULL,NULL,NULL,3),(43,'Ergonomic explicit initiative','700392813',3,'593eed07-359c-38ef-adec-9029e6277e2a','1972-10-16',NULL,'10456327',NULL,'Libero quos ipsam quis exercitationem id in eveniet.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,0,2,NULL,NULL,NULL,NULL,1),(44,'Total multimedia migration','908962454',2,'b880a4bf-5d51-331b-af07-44949d4d8f01','1976-04-26',NULL,'39976319',NULL,'Odit ut quos accusantium ea tempore et dignissimos soluta.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,3,1,1,NULL,NULL,NULL,NULL,1),(45,'Digitized methodical middleware','871620142',4,'93dcd8d1-e5dd-3fc9-834b-a718039f88df','1992-01-09',NULL,'48614317',NULL,'Earum nesciunt similique id possimus modi blanditiis blanditiis voluptatem.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,5,1,4,NULL,NULL,NULL,NULL,1),(46,'Devolved holistic database','714126156',3,'d354e507-609b-3b35-9926-7dd3a02443d3','1977-08-19',NULL,'35269691',NULL,'Praesentium aut nobis in libero tempora impedit quo.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,5,1,3,NULL,NULL,NULL,NULL,3),(47,'Proactive mobile opensystem','951658867',1,'a50527d7-6446-3e05-be4a-a3a3a372828e','1990-02-25',NULL,'31860138',NULL,'Consequatur quam sed odit repellat quo minima velit.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,5,1,5,NULL,NULL,NULL,NULL,4),(48,'Automated upward-trending data-warehouse','1404644407',5,'b48f599e-fe8a-3014-8255-fed3a2f78890','1977-01-20',NULL,'16120858',NULL,'Neque ipsum et facilis exercitationem pariatur.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,0,2,NULL,NULL,NULL,NULL,1),(49,'Triple-buffered dynamic leverage','680909548',5,'335597d2-5a98-37a7-822a-ef0569a5ab95','2005-03-30',NULL,'26186255',NULL,'Ad dolorem voluptatibus assumenda porro veniam velit.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,1,1,NULL,NULL,NULL,NULL,4),(50,'Realigned interactive solution','1130331690',3,'b7269c22-c407-3068-b56e-b5b7dd95058a','1972-01-18',NULL,'37522795',NULL,'Sequi delectus maxime officia veniam voluptate rem assumenda.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,1),(51,'Enterprise-wide didactic moratorium','220321065',5,'ab296e0f-feb8-3d99-995e-46656abed8a7','1990-12-21',NULL,'19764329',NULL,'Doloribus nobis labore numquam dolores voluptatum accusantium.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,0,2,NULL,NULL,NULL,NULL,1),(52,'Synchronised mobile securedline','252957019',4,'326b1528-d097-39fb-aca3-34bc9358ad22','2008-05-04',NULL,'36459823',NULL,'Illum dolorem dolore totam aut inventore et eos.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,2,0,4,NULL,NULL,NULL,NULL,1),(53,'Phased high-level groupware','1460225704',5,'456aa264-6ab8-3fea-a380-84a1c0d2eb5c','1987-10-30',NULL,'31759001',NULL,'Porro nihil magni aut sint vel.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,5,0,1,NULL,NULL,NULL,NULL,1),(54,'Proactive reciprocal alliance','164799827',1,'99bec0dd-6911-3bb7-8e3b-28b7013f1aa9','2003-09-30',NULL,'5320150',NULL,'Consequatur quaerat id veritatis velit ut deserunt enim.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,1,2,NULL,NULL,NULL,NULL,3),(55,'Customer-focused mobile processimprovement','842187902',4,'622648bc-4337-3782-a0e7-359b732c6c2a','2014-02-20',NULL,'41277223',NULL,'Incidunt earum est quae et.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,1,1,2,NULL,NULL,NULL,NULL,4),(56,'Switchable assymetric workforce','1132463686',4,'b246d72c-d613-34c3-aa67-eaa3fa4c718c','2007-06-02',NULL,'40685216',NULL,'Ipsa ab itaque magnam sed aut consequuntur error.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,3,0,4,NULL,NULL,NULL,NULL,1),(57,'Robust secondary emulation','741678897',2,'e39094df-9355-35b3-a423-638d4b5374ec','2002-12-14',NULL,'40667019',NULL,'Eos vel distinctio tenetur necessitatibus ullam eaque at.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,5,0,5,NULL,NULL,NULL,NULL,4),(58,'Business-focused directional approach','245586010',3,'4f871145-518c-3058-ab28-a0a9645a999f','2013-03-12',NULL,'21388822',NULL,'Sit amet in similique sit et.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,1,4,NULL,NULL,NULL,NULL,2),(59,'Multi-tiered attitude-oriented circuit','204819247',3,'f11378bf-49b5-3ee1-b7f6-7347077e3407','1984-06-14',NULL,'45678120',NULL,'Cupiditate ex accusantium doloremque eum.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,4,1,3,NULL,NULL,NULL,NULL,4),(60,'Networked upward-trending methodology','333703861',4,'672ca486-160b-3cc1-b932-7a5c7ac65453','2007-08-23',NULL,'46145283',NULL,'Mollitia voluptatem ipsam veritatis non est in.',NULL,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',1,NULL,1,NULL,NULL,NULL,3,1,3,NULL,NULL,NULL,NULL,1),(61,'Ameliorated homogeneous systemengine','32734771',4,'5684a908-ab00-3208-91ce-338df98d3a0e','2001-02-23',NULL,'9828673',NULL,'Quasi quia veritatis omnis ut minima nam dolorem libero.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,5,1,5,NULL,NULL,NULL,NULL,4),(62,'Reverse-engineered reciprocal analyzer','1140960148',4,'d882b242-b85c-3c25-9958-5fc154043cc5','1990-10-06',NULL,'6516317',NULL,'Dolorum molestiae quae aut deleniti ab qui reprehenderit libero.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,2,1,5,NULL,NULL,NULL,NULL,4),(63,'Monitored client-server architecture','67900820',2,'ba0a1d56-1394-3d7a-bb8b-877f978a72b4','1979-04-14',NULL,'4555334',NULL,'Nihil praesentium commodi dolore nemo.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,5,1,4,NULL,NULL,NULL,NULL,1),(64,'Operative multi-state GraphicalUserInterface','922778850',4,'2a91a2d6-103c-3121-b0b1-57c58404e614','1971-01-06',NULL,'27487453',NULL,'Qui rerum odio dignissimos voluptas qui.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,5,0,3,NULL,NULL,NULL,NULL,1),(65,'Integrated value-added collaboration','402777469',4,'bdf57636-fb88-388a-b601-e20fb01877c4','1980-03-03',NULL,'42870244',NULL,'Corporis optio blanditiis nam voluptatibus.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,4,1,4,NULL,NULL,NULL,NULL,1),(66,'Cross-group web-enabled info-mediaries','148247000',5,'370fc561-99a6-3dfb-87d0-7a8705887f85','2003-08-18',NULL,'1357945',NULL,'Ipsum ab quae omnis aut ad.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,3,0,2,NULL,NULL,NULL,NULL,2),(67,'Versatile interactive matrix','734828974',4,'e488a1a3-c807-310e-85b0-d75f87ea2ceb','1971-05-11',NULL,'17363905',NULL,'Neque molestiae id voluptates quo assumenda rerum voluptas voluptatum.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,5,0,2,NULL,NULL,NULL,NULL,4),(68,'Cloned discrete toolset','1393028026',2,'42cdb987-2dfc-308a-89de-bac00786d055','1973-08-19',NULL,'47005444',NULL,'Expedita est porro eveniet incidunt.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,5,1,1,NULL,NULL,NULL,NULL,4),(69,'Re-engineered uniform projection','479009911',5,'45e8a143-f6ad-3003-85c8-26e4e5c45b02','2001-08-28',NULL,'29723297',NULL,'Reiciendis et rerum fuga impedit.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,5,0,4,NULL,NULL,NULL,NULL,4),(70,'Universal didactic hardware','1207336596',2,'507c36a4-2a3a-382d-8f9f-99996e76cfb6','2013-09-24',NULL,'49138793',NULL,'Vitae ipsam autem molestias eos quos necessitatibus.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,2,1,3,NULL,NULL,NULL,NULL,2),(71,'Balanced assymetric GraphicalUserInterface','1247913785',2,'bc05fdfc-f519-374c-8049-badb52f69e6d','1996-01-20',NULL,'2827249',NULL,'Nam deserunt ullam quo beatae.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,2,1,2,NULL,NULL,NULL,NULL,4),(72,'Expanded 4thgeneration algorithm','1335669067',2,'44df7155-0921-3e29-9c5a-cefee90f4324','1970-04-20',NULL,'28076837',NULL,'Et accusantium molestias sequi ipsa doloremque.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,4,1,4,NULL,NULL,NULL,NULL,4),(73,'Function-based maximized parallelism','1444938202',3,'83db23c4-72f1-3d6c-a8f6-bfb5b459bdf2','1982-10-22',NULL,'46097977',NULL,'Quisquam praesentium ipsam debitis aut nobis quasi.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,2,0,4,NULL,NULL,NULL,NULL,2),(74,'Customizable mobile access','293016748',4,'c8abc7f9-d06e-3974-9fde-0df0411a044b','1993-02-09',NULL,'25470347',NULL,'Minus consequatur numquam eos et laudantium debitis corrupti.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,1,0,3,NULL,NULL,NULL,NULL,3),(75,'Future-proofed foreground forecast','349758044',1,'9c55dfa4-3c20-3ed5-a5cd-4dba4c9bdbf2','1982-03-08',NULL,'18219755',NULL,'Harum exercitationem nihil est porro magni in sint.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,1,1,1,NULL,NULL,NULL,NULL,4),(76,'Stand-alone dedicated algorithm','263812040',1,'041dbed7-dae5-32ca-89ee-ea2699efc988','2014-04-25',NULL,'25260035',NULL,'Aut et maiores tenetur consequatur et.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,1,1,5,NULL,NULL,NULL,NULL,1),(77,'Robust analyzing function','383948027',4,'62d427a4-572d-395a-a4a3-062bdff4c5cc','1981-01-15',NULL,'48945490',NULL,'Sapiente dicta saepe accusamus et dolores.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,2,0,4,NULL,NULL,NULL,NULL,2),(78,'Virtual neutral functionalities','477380190',2,'77735935-e7cc-32aa-8e80-c9ab3bbbd62c','2016-02-05',NULL,'25244642',NULL,'Et nam sed et corrupti esse et.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,3,0,3,NULL,NULL,NULL,NULL,2),(79,'Grass-roots responsive GraphicInterface','1010848030',4,'e969f95f-7656-39fc-b392-25fbbed2ad91','1991-03-23',NULL,'19825588',NULL,'Iure qui officiis rerum illum aut ut.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,5,1,3,NULL,NULL,NULL,NULL,4),(80,'Realigned composite adapter','899386095',5,'dd62fd8d-a4cd-3c93-a138-50b37f17ad7d','1974-03-11',NULL,'12030390',NULL,'Doloremque in similique iure quasi perferendis id.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,2,0,4,NULL,NULL,NULL,NULL,4),(81,'Optimized bifurcated intranet','838575063',2,'f0364606-5bc5-3821-8bd7-6bf1e90e7f11','1991-12-07',NULL,'15632187',NULL,'Cupiditate expedita et minus aut culpa provident quae.',NULL,1,'2016-11-20 23:07:29','2016-11-21 00:33:30',1,'2016-11-21 00:33:30',1,NULL,NULL,NULL,3,0,4,NULL,NULL,NULL,NULL,4),(82,'Ameliorated user-facing monitoring','326235593',5,'d1d95514-6f07-3fd4-b12e-2fccfc2ddd27','1999-05-31',NULL,'1149074',NULL,'Quos modi aspernatur a et aut aut tenetur.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,2,0,2,NULL,NULL,NULL,NULL,4),(83,'Business-focused high-level interface','1140579465',5,'46bc076b-720c-33fa-ae4f-33a3a66451f7','2003-12-09',NULL,'8509936',NULL,'Sint inventore nisi repellendus ab debitis.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,5,0,4,NULL,NULL,NULL,NULL,3),(84,'Seamless asynchronous info-mediaries','1336928942',4,'9b5fbd7c-b786-332e-bfc8-9cca434ed204','1981-08-19',NULL,'41932039',NULL,'Temporibus exercitationem ducimus libero amet.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,2,1,1,NULL,NULL,NULL,NULL,1),(85,'Multi-layered dynamic parallelism','861858215',2,'9628e727-03c2-313f-bc2b-a1a5888f2f39','1995-06-20',NULL,'18992739',NULL,'Amet nemo aperiam et pariatur.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,5,1,5,NULL,NULL,NULL,NULL,1),(86,'Programmable tertiary matrix','955798318',4,'fc61789d-a6e8-3566-91e1-2c2112467a0a','1972-07-22',NULL,'15909141',NULL,'Assumenda doloremque explicabo perspiciatis vel et dolorem molestiae.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,3,0,5,NULL,NULL,NULL,NULL,1),(87,'Right-sized contextually-based archive','1329991897',1,'4b44a0b1-3ecb-30b7-b58f-d4849447b39a','1995-05-27',NULL,'15640006',NULL,'Sit pariatur in non impedit sed sed magni.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,3,1,1,NULL,NULL,NULL,NULL,4),(88,'Automated user-facing initiative','66332732',1,'59027125-0623-3037-bb4a-0d0114e0db5f','1992-09-05',NULL,'9927501',NULL,'Eum sed velit minus doloribus ad omnis cum.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,1,0,4,NULL,NULL,NULL,NULL,1),(89,'Optimized discrete moderator','242159572',3,'181a0950-006d-3fdd-936d-81355fd6df88','2005-09-18',NULL,'38282301',NULL,'Omnis eum quae animi eius.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,3,0,2,NULL,NULL,NULL,NULL,3),(90,'Persistent cohesive middleware','393498501',3,'a3d399cb-f25a-383e-af65-54a2e974a56f','1970-02-21',NULL,'42991820',NULL,'Excepturi nulla voluptatem voluptatem ea.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,1,0,1,NULL,NULL,NULL,NULL,3),(91,'Multi-channelled grid-enabled customerloyalty','814134806',1,'8155b403-8383-31e9-a521-4a7a2aea61ca','1978-03-03',NULL,'31285966',NULL,'Perspiciatis aspernatur dolor vel sit.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,4,0,2,NULL,NULL,NULL,NULL,4),(92,'Integrated static interface','215458633',4,'119654ac-8269-3714-bdc2-fc25308c96fc','1972-04-07',NULL,'6193991',NULL,'A facere quo at doloremque ut reprehenderit.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,2,1,5,NULL,NULL,NULL,NULL,3),(93,'Up-sized 24hour GraphicalUserInterface','321345315',4,'5a892eb9-8c99-3a71-90af-e6e80a5b9273','1971-03-19',NULL,'38803546',NULL,'Atque blanditiis tenetur cumque ipsum inventore alias.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,2,1,3,NULL,NULL,NULL,NULL,1),(94,'Facetoface demand-driven matrix','693214522',3,'b82ce41d-cff1-3b4c-9f74-554058bf9669','1982-08-26',NULL,'13705892',NULL,'Reiciendis et molestias id quis eveniet.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,2,0,5,NULL,NULL,NULL,NULL,1),(95,'Front-line heuristic middleware','1067734512',5,'4205ffc6-210a-3ef7-84b3-76df4f1316ce','1997-03-08',NULL,'27900091',NULL,'Ut earum consequatur dolor non possimus omnis.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,3,0,4,NULL,NULL,NULL,NULL,1),(96,'Down-sized zerodefect utilisation','1366417144',3,'9f4b8786-7e45-3683-a4f5-2fa4f260609c','1983-11-09',NULL,'37309051',NULL,'Cumque consequatur delectus modi aliquid nulla.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,4,0,5,NULL,NULL,NULL,NULL,3),(97,'Pre-emptive asynchronous benchmark','366257155',4,'603e9346-3120-3ff7-9966-829a61f29d32','2015-09-06',NULL,'45384019',NULL,'Dolores assumenda delectus quae explicabo eum distinctio eaque.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,4,0,5,NULL,NULL,NULL,NULL,1),(98,'Networked secondary product','64846550',3,'97eb19e5-cc94-3946-9472-65422c7ffe00','1983-09-28',NULL,'17430473',NULL,'Officiis aut molestiae necessitatibus vitae.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,3,0,2,NULL,NULL,NULL,NULL,1),(99,'Business-focused 24hour leverage','936840003',5,'395e8f2c-799f-3310-a6c9-b328498f6a5b','1976-02-19',NULL,'46175843',NULL,'Iure veniam animi mollitia molestias dolores hic dolorem.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,1,1,2,NULL,NULL,NULL,NULL,2),(100,'Decentralized homogeneous groupware','285321693',2,'eabc9e1e-4a5d-3d97-88db-98112689290f','1979-12-21',NULL,'39805401',NULL,'Earum molestiae autem aspernatur quis.',NULL,1,'2016-11-20 23:07:29','2016-11-20 23:07:29',1,NULL,1,NULL,NULL,NULL,3,1,5,NULL,NULL,NULL,NULL,2),(101,'TestModel','230-name-21 2',2,'350335','2016-01-01',25.00,'12345',20,'lorem ipsum blah blah',NULL,1,'2016-11-21 00:33:30','2016-11-21 00:33:30',1,NULL,6,0,15,0,2,1,5,NULL,NULL,'2016-11-20 18:33:30',NULL,2); /*!40000 ALTER TABLE `assets` ENABLE KEYS */; UNLOCK TABLES; @@ -296,7 +297,7 @@ CREATE TABLE `categories` ( `category_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'asset', `checkin_email` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -305,7 +306,7 @@ CREATE TABLE `categories` ( LOCK TABLES `categories` WRITE; /*!40000 ALTER TABLE `categories` DISABLE KEYS */; -INSERT INTO `categories` VALUES (1,'Customer Relations','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(2,'Advertising','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(3,'Accounting','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(4,'Payroll','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(5,'Finances','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(6,'Sales and Marketing','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(7,'Tech Support','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(8,'Legal Department','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(9,'Quality Assurance','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(10,'Public Relations','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(11,'Research and Development','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(12,'Asset Management','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(13,'Customer Service','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(14,'Human Resources','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL,NULL,0,0,'accessory',0),(16,'Unnamed Category','2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,NULL,0,0,'asset',0),(17,'Triamterene/Hydrochlorothiazide','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(18,'Ranitidine HCl','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(19,'Amoxicillin','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(20,'Lantus Solostar','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(21,'Hydrocodone/APAP','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(22,'Fluticasone Propionate','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(23,'Amlodipine Besylate','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(24,'Omeprazole (Rx)','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(25,'Risperidone','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(26,'Suboxone','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(27,'Fluoxetine HCl','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(28,'Alendronate Sodium','2016-11-06 22:03:36','2016-11-06 22:03:36',1,NULL,NULL,0,0,'consumable',0),(29,'Allopurinol','2016-11-06 22:03:37','2016-11-06 22:03:37',1,NULL,NULL,0,0,'consumable',0),(30,'Simvastatin','2016-11-06 22:03:37','2016-11-06 22:03:37',1,NULL,NULL,0,0,'consumable',0),(31,'Fluconazole','2016-11-06 22:03:37','2016-11-06 22:03:37',1,NULL,NULL,0,0,'consumable',0),(32,'Advair Diskus','2016-11-06 22:03:37','2016-11-06 22:03:37',1,NULL,NULL,0,0,'consumable',0),(33,'Loestrin 24 Fe','2016-11-06 22:03:37','2016-11-06 22:03:37',1,NULL,NULL,0,0,'consumable',0),(34,'Pantoprazole Sodium','2016-11-06 22:03:37','2016-11-06 22:03:37',1,NULL,NULL,0,0,'consumable',0),(35,'Venlafaxine HCl ER','2016-11-06 22:03:37','2016-11-06 22:03:37',1,NULL,NULL,0,0,'consumable',0),(36,'Cephalexin','2016-11-06 22:03:37','2016-11-06 22:03:37',1,NULL,NULL,0,0,'consumable',0),(37,'Lyrica','2016-11-06 22:03:37','2016-11-06 22:03:37',1,NULL,NULL,0,0,'consumable',0),(38,'Meloxicam','2016-11-06 22:03:37','2016-11-06 22:03:37',1,NULL,NULL,0,0,'consumable',0),(39,'Flovent HFA','2016-11-06 22:03:37','2016-11-06 22:03:37',1,NULL,NULL,0,0,'consumable',0),(40,'Test Accessory','2016-11-06 22:35:22','2016-11-06 22:35:22',1,NULL,'',0,0,'accessory',0),(41,'Test Component','2016-11-06 22:43:03','2016-11-06 22:43:03',1,NULL,'',0,0,'component',0),(42,'Test Asset','2016-11-06 22:44:24','2016-11-06 22:44:24',1,NULL,'',0,0,'asset',0),(43,'Test Consumable','2016-11-06 22:44:37','2016-11-06 22:44:37',1,NULL,'',0,0,'consumable',0); +INSERT INTO `categories` VALUES (1,'Soluta consequatur.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'asset',0),(2,'Saepe repellendus.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'asset',0),(3,'Hic dolores minus.','2016-11-20 23:07:29','2016-11-21 00:33:32',NULL,'2016-11-21 00:33:32',NULL,0,0,'asset',0),(4,'Qui necessitatibus.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'asset',0),(5,'Beatae accusamus.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'asset',0),(6,'Error cum omnis.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'asset',0),(7,'Ipsam repellat id.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'asset',0),(8,'Asperiores nesciunt.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'asset',0),(9,'Quia sit veniam.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'asset',0),(10,'Quaerat repellendus.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'asset',0),(11,'Atque fuga esse.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'accessory',0),(12,'Et illo error porro.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'accessory',0),(13,'Soluta ipsam ea.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'accessory',0),(14,'Repellat mollitia.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'accessory',0),(15,'Et reprehenderit.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'accessory',0),(16,'Quia unde qui.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'consumable',0),(17,'Sunt quo voluptatem.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'consumable',0),(18,'Voluptatum dolor.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'consumable',0),(19,'Et sed doloremque.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'consumable',0),(20,'Pariatur qui amet.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'consumable',0),(21,'Deleniti occaecati.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'component',0),(22,'Tenetur aut dolores.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'component',0),(23,'Quae a ullam maxime.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'component',0),(24,'Quo harum enim quo.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'component',0),(25,'Nesciunt molestias.','2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,0,0,'component',0),(26,'TestModel','2016-11-21 00:33:32','2016-11-21 00:33:32',1,NULL,'lorem ipsum blah blah',0,1,'accessory',1); /*!40000 ALTER TABLE `categories` ENABLE KEYS */; UNLOCK TABLES; @@ -352,7 +353,7 @@ CREATE TABLE `companies` ( `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `companies_name_unique` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -361,7 +362,7 @@ CREATE TABLE `companies` ( LOCK TABLES `companies` WRITE; /*!40000 ALTER TABLE `companies` DISABLE KEYS */; -INSERT INTO `companies` VALUES (1,'Macromedia','2016-11-06 22:01:57','2016-11-06 22:01:57'),(2,'Sibelius','2016-11-06 22:01:57','2016-11-06 22:01:57'),(3,'Adobe','2016-11-06 22:01:57','2016-11-06 22:01:57'),(4,'Microsoft','2016-11-06 22:01:57','2016-11-06 22:01:57'),(5,'Borland','2016-11-06 22:01:57','2016-11-06 22:01:57'),(6,'Lavasoft','2016-11-06 22:01:57','2016-11-06 22:01:57'),(7,'Google','2016-11-06 22:01:57','2016-11-06 22:01:57'),(8,'Finale','2016-11-06 22:01:57','2016-11-06 22:01:57'),(9,'Apple Systems','2016-11-06 22:01:57','2016-11-06 22:01:57'),(10,'Cakewalk','2016-11-06 22:01:57','2016-11-06 22:01:57'),(11,'Chami','2016-11-06 22:01:57','2016-11-06 22:01:57'),(12,'Yahoo','2016-11-06 22:01:57','2016-11-06 22:01:57'),(14,'Alpha','2016-11-06 22:03:21','2016-11-06 22:03:21'),(15,'Konklab','2016-11-06 22:03:21','2016-11-06 22:03:21'),(16,'Bitwolf','2016-11-06 22:03:22','2016-11-06 22:03:22'),(17,'Lycos','2016-11-06 22:03:36','2016-11-06 22:03:36'),(18,'Altavista','2016-11-06 22:03:37','2016-11-06 22:03:37'); +INSERT INTO `companies` VALUES (1,'Brekke-Heathcote','2016-11-20 23:07:28','2016-11-20 23:07:28'),(2,'Watsica Ltd','2016-11-20 23:07:28','2016-11-20 23:07:28'),(3,'Armstrong Group','2016-11-20 23:07:28','2016-11-20 23:07:28'),(4,'Willms, Brakus and Shields','2016-11-20 23:07:28','2016-11-20 23:07:28'),(5,'TestCompany','2016-11-21 00:33:34','2016-11-21 00:33:34'); /*!40000 ALTER TABLE `companies` ENABLE KEYS */; UNLOCK TABLES; @@ -382,14 +383,14 @@ CREATE TABLE `components` ( `qty` int(11) NOT NULL DEFAULT '1', `order_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `purchase_date` date DEFAULT NULL, - `purchase_cost` decimal(13,4) DEFAULT NULL, + `purchase_cost` decimal(20,2) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `min_amt` int(11) DEFAULT NULL, `serial` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -398,6 +399,7 @@ CREATE TABLE `components` ( LOCK TABLES `components` WRITE; /*!40000 ALTER TABLE `components` DISABLE KEYS */; +INSERT INTO `components` VALUES (1,'Non rerum.',21,NULL,1,NULL,9,NULL,NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,2,NULL),(2,'Ut odio nesciunt.',23,NULL,4,NULL,8,NULL,NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,1,NULL),(3,'Quia eaque deleniti.',22,NULL,3,NULL,4,NULL,NULL,NULL,'2016-11-20 23:07:29','2016-11-21 00:33:37','2016-11-21 00:33:37',2,NULL),(4,'Et et voluptates.',21,NULL,4,NULL,4,NULL,NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,2,NULL),(5,'In aliquid soluta.',25,NULL,2,NULL,3,NULL,NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,1,NULL),(6,'Quod expedita.',23,NULL,2,NULL,5,NULL,NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,2,NULL),(7,'Delectus rerum.',21,NULL,2,NULL,10,NULL,NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,1,NULL),(8,'Et et molestiae.',21,NULL,1,NULL,3,NULL,NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,1,NULL),(9,'Nisi praesentium.',22,NULL,1,NULL,5,NULL,NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,1,NULL),(10,'Vitae vitae maxime.',22,NULL,1,NULL,8,NULL,NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,1,NULL),(11,'TestComponent',25,2,2,1,12,'12345','2016-01-01',25.00,'2016-11-21 00:33:36','2016-11-21 00:33:36',NULL,6,'3062436032621632326-325632523'); /*!40000 ALTER TABLE `components` ENABLE KEYS */; UNLOCK TABLES; @@ -448,7 +450,7 @@ CREATE TABLE `consumables` ( `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `purchase_date` date DEFAULT NULL, - `purchase_cost` decimal(13,4) DEFAULT NULL, + `purchase_cost` decimal(20,2) DEFAULT NULL, `order_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `company_id` int(10) unsigned DEFAULT NULL, `min_amt` int(11) DEFAULT NULL, @@ -456,7 +458,7 @@ CREATE TABLE `consumables` ( `manufacturer_id` int(11) DEFAULT NULL, `item_no` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -465,7 +467,7 @@ CREATE TABLE `consumables` ( LOCK TABLES `consumables` WRITE; /*!40000 ALTER TABLE `consumables` DISABLE KEYS */; -INSERT INTO `consumables` VALUES (1,'eget',17,49,1,322,0,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2011-01-03',85.9100,'T295T06V',17,NULL,NULL,NULL,NULL),(2,'Morbi',18,50,1,374,1,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2016-10-24',87.4200,'W787T62Q',6,NULL,NULL,NULL,NULL),(3,'arcu.',19,51,1,252,0,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2007-09-22',48.3400,'N961E50A',7,NULL,NULL,NULL,NULL),(4,'nec',20,52,1,30,1,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2009-08-16',8.7100,'X624N14C',9,NULL,NULL,NULL,NULL),(5,'Nam',21,NULL,1,551,1,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2017-03-30',24.0700,'N618A20S',1,NULL,NULL,NULL,NULL),(6,'Nullam',22,53,1,395,0,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2003-12-16',73.2300,'B386I67L',12,NULL,NULL,NULL,NULL),(7,'erat',23,54,1,297,1,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2010-08-03',17.4900,'G606H92I',5,NULL,NULL,NULL,NULL),(8,'purus',24,55,1,557,1,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2004-10-12',63.5200,'R660Z45O',11,NULL,NULL,NULL,NULL),(9,'dignissim',25,56,1,47,1,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2010-11-10',77.9400,'G230Z67X',6,NULL,NULL,NULL,NULL),(10,'Nam',26,57,1,310,0,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2015-01-25',64.3300,'B613L84C',4,NULL,NULL,NULL,NULL),(11,'Nunc',27,58,1,404,0,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2017-04-13',81.0200,'O367N55N',5,NULL,NULL,NULL,NULL),(12,'Phasellus',28,59,1,590,0,'2016-11-06 22:03:36','2016-11-06 22:03:36',NULL,'2005-12-23',70.6700,'K941C02T',5,NULL,NULL,NULL,NULL),(13,'Nulla',29,60,1,48,0,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,'2017-07-21',99.0400,'D663L90H',17,NULL,NULL,NULL,NULL),(14,'Sed',31,62,1,169,1,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,'2011-04-14',48.8600,'T666E70K',10,NULL,NULL,NULL,NULL),(15,'quis',32,63,1,264,0,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,'2014-01-08',55.6400,'T767G07U',17,NULL,NULL,NULL,NULL),(16,'viverra.',33,64,1,293,0,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,'2013-01-07',93.4800,'T276L44H',2,NULL,NULL,NULL,NULL),(17,'Sed',34,65,1,407,0,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,'2008-03-20',64.7500,'A933E55V',10,NULL,NULL,NULL,NULL),(18,'iaculis',35,66,1,115,0,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,'2015-07-17',56.7400,'N568F73C',5,NULL,NULL,NULL,NULL),(19,'leo.',36,67,1,208,1,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,'2012-12-09',96.8800,'H283Z42U',18,NULL,NULL,NULL,NULL),(20,'leo.',37,68,1,486,0,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,'2007-04-24',40.8700,'T054Q83U',17,NULL,NULL,NULL,NULL),(21,'pede.',30,69,1,214,1,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,'2010-09-29',19.6400,'L842O70A',11,NULL,NULL,NULL,NULL),(22,'massa',38,70,1,131,0,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,'2015-05-18',18.4300,'V029Q52K',3,NULL,NULL,NULL,NULL),(23,'urna',39,NULL,1,15,1,'2016-11-06 22:03:37','2016-11-06 22:03:37',NULL,'2014-10-22',7.4100,'Z708U15X',2,NULL,NULL,NULL,NULL); +INSERT INTO `consumables` VALUES (1,'Corporis voluptate.',17,NULL,NULL,5,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,2,2,NULL,NULL,NULL),(2,'Quis dolores sunt.',19,NULL,NULL,10,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,1,1,NULL,NULL,NULL),(3,'Perferendis.',16,NULL,NULL,8,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,4,2,NULL,NULL,NULL),(4,'Maiores esse magni.',20,NULL,NULL,10,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,2,2,NULL,NULL,NULL),(5,'Vitae eum deserunt.',19,NULL,NULL,8,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,2,2,NULL,NULL,NULL),(6,'Nam et ab officiis.',17,NULL,NULL,9,0,'2016-11-20 23:07:29','2016-11-21 00:33:39','2016-11-21 00:33:39',NULL,NULL,NULL,3,2,NULL,NULL,NULL),(7,'Voluptates officia.',19,NULL,NULL,9,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,3,1,NULL,NULL,NULL),(8,'Autem reprehenderit.',19,NULL,NULL,7,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,3,1,NULL,NULL,NULL),(9,'Omnis fugit sed.',17,NULL,NULL,5,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,2,1,NULL,NULL,NULL),(10,'Quia qui.',17,NULL,NULL,10,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,3,1,NULL,NULL,NULL),(11,'Officiis impedit.',19,NULL,NULL,8,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,2,2,NULL,NULL,NULL),(12,'Sunt harum dicta.',18,NULL,NULL,7,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,2,1,NULL,NULL,NULL),(13,'Sed accusamus porro.',20,NULL,NULL,7,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,4,1,NULL,NULL,NULL),(14,'Deleniti magnam.',16,NULL,NULL,5,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,3,1,NULL,NULL,NULL),(15,'Fugiat.',19,NULL,NULL,6,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,2,1,NULL,NULL,NULL),(16,'Illum vel enim.',17,NULL,NULL,5,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,4,1,NULL,NULL,NULL),(17,'Debitis quae.',16,NULL,NULL,5,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,2,2,NULL,NULL,NULL),(18,'Nulla inventore.',20,NULL,NULL,6,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,1,1,NULL,NULL,NULL),(19,'Quaerat voluptatem.',18,NULL,NULL,8,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,3,1,NULL,NULL,NULL),(20,'Dolores.',17,NULL,NULL,6,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,1,1,NULL,NULL,NULL),(21,'Modi maiores.',18,NULL,NULL,8,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,4,1,NULL,NULL,NULL),(22,'Provident eos.',20,NULL,NULL,10,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,4,2,NULL,NULL,NULL),(23,'Error molestiae.',19,NULL,NULL,9,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,1,2,NULL,NULL,NULL),(24,'Dolor quos est rem.',18,NULL,NULL,7,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,2,1,NULL,NULL,NULL),(25,'Maiores facilis.',16,NULL,NULL,10,0,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,3,2,NULL,NULL,NULL),(26,'TestConsumable',21,0,1,12,0,'2016-11-21 00:33:39','2016-11-21 00:33:39',NULL,'2016-01-01',25.00,'12345',2,6,'032-356',0,'32503'); /*!40000 ALTER TABLE `consumables` ENABLE KEYS */; UNLOCK TABLES; @@ -539,7 +541,7 @@ CREATE TABLE `custom_fields` ( `field_values` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `field_encrypted` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -548,7 +550,6 @@ CREATE TABLE `custom_fields` ( LOCK TABLES `custom_fields` WRITE; /*!40000 ALTER TABLE `custom_fields` DISABLE KEYS */; -INSERT INTO `custom_fields` VALUES (1,'MAC Address','regex:/^[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}$/','text',NULL,'2016-11-06 21:59:38',NULL,NULL,0); /*!40000 ALTER TABLE `custom_fields` ENABLE KEYS */; UNLOCK TABLES; @@ -594,7 +595,7 @@ CREATE TABLE `depreciations` ( `updated_at` timestamp NULL DEFAULT NULL, `user_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -603,6 +604,7 @@ CREATE TABLE `depreciations` ( LOCK TABLES `depreciations` WRITE; /*!40000 ALTER TABLE `depreciations` DISABLE KEYS */; +INSERT INTO `depreciations` VALUES (2,'TestDepreciation',15,'2016-11-21 00:33:41','2016-11-21 00:33:41',1); /*!40000 ALTER TABLE `depreciations` ENABLE KEYS */; UNLOCK TABLES; @@ -620,7 +622,7 @@ CREATE TABLE `groups` ( `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -629,6 +631,7 @@ CREATE TABLE `groups` ( LOCK TABLES `groups` WRITE; /*!40000 ALTER TABLE `groups` DISABLE KEYS */; +INSERT INTO `groups` VALUES (2,'TestGroup','{\"superuser\":\"0\",\"admin\":\"0\",\"reports.view\":\"0\",\"assets.view\":\"0\",\"assets.create\":\"0\",\"assets.edit\":\"0\",\"assets.delete\":\"0\",\"assets.checkin\":\"0\",\"assets.checkout\":\"0\",\"assets.view.requestable\":\"0\",\"accessories.view\":\"0\",\"accessories.create\":\"0\",\"accessories.edit\":\"0\",\"accessories.delete\":\"0\",\"accessories.checkout\":\"0\",\"accessories.checkin\":\"0\",\"consumables.view\":\"0\",\"consumables.create\":\"0\",\"consumables.edit\":\"0\",\"consumables.delete\":\"0\",\"consumables.checkout\":\"0\",\"licenses.view\":\"0\",\"licenses.create\":\"0\",\"licenses.edit\":\"0\",\"licenses.delete\":\"0\",\"licenses.checkout\":\"0\",\"licenses.keys\":\"0\",\"components.view\":\"0\",\"components.create\":\"0\",\"components.edit\":\"0\",\"components.delete\":\"0\",\"components.checkout\":\"0\",\"components.checkin\":\"0\",\"users.view\":\"0\",\"users.create\":\"0\",\"users.edit\":\"0\",\"users.delete\":\"0\",\"self.two_factor\":\"0\"}','2016-11-21 00:33:44','2016-11-21 00:33:44'); /*!40000 ALTER TABLE `groups` ENABLE KEYS */; UNLOCK TABLES; @@ -650,7 +653,7 @@ CREATE TABLE `license_seats` ( `deleted_at` timestamp NULL DEFAULT NULL, `asset_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -659,6 +662,7 @@ CREATE TABLE `license_seats` ( LOCK TABLES `license_seats` WRITE; /*!40000 ALTER TABLE `license_seats` DISABLE KEYS */; +INSERT INTO `license_seats` VALUES (1,1,NULL,'Enim ratione repudiandae voluptas inventore harum nihil non.',1,'1985-04-22 07:56:43','2016-11-21 00:33:47','2016-11-21 00:33:47',NULL),(2,5,NULL,'Quidem nesciunt laudantium reprehenderit quia nemo non enim saepe.',1,'2008-11-13 14:47:37','2002-06-10 20:39:02',NULL,NULL),(3,10,NULL,'Ipsa labore repellendus magni rem.',1,'1997-03-02 08:23:45','1970-03-28 10:33:13',NULL,NULL),(4,3,NULL,'Impedit corporis sapiente numquam tenetur explicabo dolores et ipsam.',1,'1997-07-18 14:12:28','2012-11-20 06:52:26',NULL,NULL),(5,3,NULL,'Autem explicabo consequatur harum consequatur repellat voluptate.',1,'1992-02-25 09:18:12','2013-11-25 04:08:47',NULL,NULL),(6,5,NULL,'Repellendus vero voluptatem voluptate sed ipsam.',1,'1970-03-25 07:11:55','1994-07-21 11:28:55',NULL,NULL),(7,10,NULL,'Tenetur sequi blanditiis similique quaerat explicabo quibusdam excepturi.',1,'1971-07-26 14:28:52','1995-12-16 02:16:50',NULL,NULL),(8,3,NULL,'Nostrum veniam nulla quo consequatur consequatur et omnis eum.',1,'1972-09-10 03:47:34','1979-11-30 18:06:57',NULL,NULL),(9,5,NULL,'Sint nihil omnis quod accusamus.',1,'1983-04-08 19:17:09','2008-06-22 21:35:40',NULL,NULL),(10,7,NULL,'Ea et placeat quod blanditiis sed.',1,'2002-04-06 11:19:24','1996-02-14 01:10:39',NULL,NULL),(11,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL),(12,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL),(13,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL),(14,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL),(15,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL),(16,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL),(17,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL),(18,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL),(19,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL),(20,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL),(21,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL),(22,11,NULL,NULL,1,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,NULL); /*!40000 ALTER TABLE `license_seats` ENABLE KEYS */; UNLOCK TABLES; @@ -674,7 +678,7 @@ CREATE TABLE `licenses` ( `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `serial` varchar(2048) COLLATE utf8_unicode_ci DEFAULT NULL, `purchase_date` date DEFAULT NULL, - `purchase_cost` decimal(8,2) DEFAULT NULL, + `purchase_cost` decimal(20,2) DEFAULT NULL, `order_number` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `seats` int(11) NOT NULL DEFAULT '1', `notes` text COLLATE utf8_unicode_ci, @@ -695,7 +699,7 @@ CREATE TABLE `licenses` ( `company_id` int(10) unsigned DEFAULT NULL, `manufacturer_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -704,6 +708,7 @@ CREATE TABLE `licenses` ( LOCK TABLES `licenses` WRITE; /*!40000 ALTER TABLE `licenses` DISABLE KEYS */; +INSERT INTO `licenses` VALUES (1,'Implemented composite firmware','399629fa-69f5-3eaa-a0c0-8a53977030e3','2002-08-18',2744038.81,NULL,8,'Aut ea corrupti eligendi.',NULL,NULL,'2016-11-20 23:07:29','2016-11-21 00:33:47','2016-11-21 00:33:47','Katharina Kulas','noelia.hermann@example.com',NULL,NULL,NULL,NULL,NULL,NULL,1,3,NULL),(2,'Optimized systemic intranet','89c6abac-19d9-3b54-ae5e-66f2556f0ec3','2012-08-25',269.24,NULL,1,'Quam eos praesentium sed aut quisquam dignissimos.',NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,'Mrs. Anika Cruickshank','drake.block@example.net',NULL,NULL,NULL,NULL,NULL,NULL,1,4,NULL),(3,'Expanded client-server methodology','7ae03022-765d-3791-b96f-e7fe31491061','1994-02-28',213701.76,NULL,2,'Molestiae porro dolorem vero quisquam quos praesentium debitis.',NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,'Prof. Dock Schumm MD','roslyn.torp@example.org',NULL,NULL,NULL,NULL,NULL,NULL,1,2,NULL),(4,'Mandatory solution-oriented extranet','f3d92679-78db-38fa-aa9b-d93354e74d0c','1996-10-08',2725956.85,NULL,9,'Et et nesciunt quasi magnam dolorum sed.',NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,'Kendra Skiles','valerie62@example.org',NULL,NULL,NULL,NULL,NULL,NULL,1,4,NULL),(5,'Secured fault-tolerant architecture','d2fe95cd-38b2-3b85-9d9f-ad325288bb06','2010-08-24',5924561.63,NULL,5,'Repellat iste laudantium eum ullam quam.',NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,'Erica Kunde Jr.','genoveva16@example.org',NULL,NULL,NULL,NULL,NULL,NULL,1,1,NULL),(6,'Fundamental context-sensitive product','ac1d2639-e0a7-34e6-9141-a491f4081e06','1982-06-16',2173.49,NULL,7,'Ut non esse qui voluptas.',NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,'Maryam Sawayn','raymond35@example.org',NULL,NULL,NULL,NULL,NULL,NULL,1,2,NULL),(7,'Visionary attitude-oriented collaboration','da42bf65-2aeb-315a-a05a-92b0e4dea5f0','2005-06-03',0.00,NULL,9,'Velit consequuntur cum cumque maxime voluptas.',NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,'Ofelia Bogan MD','alessia.friesen@example.com',NULL,NULL,NULL,NULL,NULL,NULL,1,4,NULL),(8,'Visionary needs-based strategy','24c1090b-fda1-382b-bf30-97435c22c225','1980-05-16',394166.60,NULL,6,'Provident omnis incidunt non consequuntur molestiae et adipisci.',NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,'Emile Langosh DVM','ndietrich@example.org',NULL,NULL,NULL,NULL,NULL,NULL,1,4,NULL),(9,'Public-key responsive installation','7bc5a1fe-c90e-391a-bc71-194cdaa8bfbc','1994-01-07',674379.59,NULL,9,'Reiciendis dolor excepturi consequatur velit nobis magni.',NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,'Curt Gutmann','enienow@example.com',NULL,NULL,NULL,NULL,NULL,NULL,1,2,NULL),(10,'Cross-group asynchronous neural-net','1e8d0378-3fdb-3883-8bd2-a7dbf477d2dc','1986-12-28',178.51,NULL,7,'Sunt est ducimus tempora excepturi ut.',NULL,NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,'Brittany Mann','pouros.cristopher@example.net',NULL,NULL,NULL,NULL,NULL,NULL,1,2,NULL),(11,'Test Software','946346-436346-346436','2016-01-01',25.00,'12345',12,'lorem ipsum omicron delta phi',1,0,'2016-11-21 00:33:46','2016-11-21 00:33:46',NULL,'Marco Polo','g@m.com',NULL,4,'2018-01-01','234562','2020-01-01',1,1,4,1); /*!40000 ALTER TABLE `licenses` ENABLE KEYS */; UNLOCK TABLES; @@ -718,7 +723,7 @@ CREATE TABLE `locations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `state` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL, + `state` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -730,7 +735,7 @@ CREATE TABLE `locations` ( `parent_id` int(11) DEFAULT NULL, `currency` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -739,7 +744,7 @@ CREATE TABLE `locations` ( LOCK TABLES `locations` WRITE; /*!40000 ALTER TABLE `locations` DISABLE KEYS */; -INSERT INTO `locations` VALUES (1,'metus. Vivamus','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(2,'conubia','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(3,'Suspendisse eleifend.','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(4,'ipsum cursus vestibulum.','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(5,'Nunc laoreet lectus','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(6,'luctus','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(7,'euismod','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(8,'ipsum nunc','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(9,'et nunc. Quisque','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(10,'interdum. Curabitur','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(11,'sociis','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(12,'fermentum','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(13,'Vestibulum','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(14,'feugiat nec, diam.','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(15,'non magna.','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(16,'consectetuer rhoncus. Nullam','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(17,'viverra. Donec','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(18,'mus. Proin','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(19,'erat,','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(20,'Sed et libero.','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(21,'dolor,','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(22,'id,','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(23,'Mauris','','','','2016-11-06 22:01:57','2016-11-06 22:01:57',1,'',NULL,NULL,NULL,NULL,NULL),(25,'Daping','','','','2016-11-06 22:03:21','2016-11-06 22:03:21',1,'',NULL,NULL,NULL,NULL,NULL),(26,'Cirangga Kidul','','','','2016-11-06 22:03:21','2016-11-06 22:03:21',1,'',NULL,NULL,NULL,NULL,NULL),(27,'Shekou','','','','2016-11-06 22:03:21','2016-11-06 22:03:21',1,'',NULL,NULL,NULL,NULL,NULL),(28,'Leksand','','','','2016-11-06 22:03:21','2016-11-06 22:03:21',1,'',NULL,NULL,NULL,NULL,NULL),(29,'Dresi Wetan','','','','2016-11-06 22:03:21','2016-11-06 22:03:21',1,'',NULL,NULL,NULL,NULL,NULL),(30,'Dante Delgado','','','','2016-11-06 22:03:21','2016-11-06 22:03:21',1,'',NULL,NULL,NULL,NULL,NULL),(31,'Pingle','','','','2016-11-06 22:03:21','2016-11-06 22:03:21',1,'',NULL,NULL,NULL,NULL,NULL),(32,'Zhuli','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(33,'Niopanda','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(34,'Zoumaling','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(35,'Luts?k','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(36,'Pravdinsk','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(37,'Panay','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(38,'Achiaman','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(39,'Oemanu','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(40,'Qiaolin','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(41,'Accha','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(42,'Kerkrade','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(43,'Villa Regina','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(44,'Tibro','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(45,'Menglie','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(46,'Solidaridad','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(47,'Sorinomo','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(48,'Tamel','','','','2016-11-06 22:03:22','2016-11-06 22:03:22',1,'',NULL,NULL,NULL,NULL,NULL),(49,'mauris blandit mattis.','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(50,'iaculis','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(51,'ornare','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(52,'lectus','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(53,'Donec est mauris,','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(54,'Proin','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(55,'tellus justo sit','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(56,'nibh vulputate mauris','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(57,'taciti sociosqu ad','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(58,'nec orci.','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(59,'quis, tristique ac,','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(60,'augue malesuada malesuada.','','','','2016-11-06 22:03:36','2016-11-06 22:03:36',1,'',NULL,NULL,NULL,NULL,NULL),(61,'dolor sit amet,','','','','2016-11-06 22:03:37','2016-11-06 22:03:37',1,'',NULL,NULL,NULL,NULL,NULL),(62,'lectus convallis est,','','','','2016-11-06 22:03:37','2016-11-06 22:03:37',1,'',NULL,NULL,NULL,NULL,NULL),(63,'varius orci,','','','','2016-11-06 22:03:37','2016-11-06 22:03:37',1,'',NULL,NULL,NULL,NULL,NULL),(64,'cursus et, magna.','','','','2016-11-06 22:03:37','2016-11-06 22:03:37',1,'',NULL,NULL,NULL,NULL,NULL),(65,'arcu. Sed','','','','2016-11-06 22:03:37','2016-11-06 22:03:37',1,'',NULL,NULL,NULL,NULL,NULL),(66,'nec','','','','2016-11-06 22:03:37','2016-11-06 22:03:37',1,'',NULL,NULL,NULL,NULL,NULL),(67,'Aenean','','','','2016-11-06 22:03:37','2016-11-06 22:03:37',1,'',NULL,NULL,NULL,NULL,NULL),(68,'tincidunt adipiscing. Mauris','','','','2016-11-06 22:03:37','2016-11-06 22:03:37',1,'',NULL,NULL,NULL,NULL,NULL),(69,'nec enim. Nunc','','','','2016-11-06 22:03:37','2016-11-06 22:03:37',1,'',NULL,NULL,NULL,NULL,NULL),(70,'nisi magna sed','','','','2016-11-06 22:03:37','2016-11-06 22:03:37',1,'',NULL,NULL,NULL,NULL,NULL); +INSERT INTO `locations` VALUES (1,'New Edd','Margieton','FL','UM','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL,NULL,NULL,NULL,NULL,'AUD'),(2,'Hesselside','Daletown','WA','AM','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL,NULL,NULL,NULL,NULL,'SCR'),(3,'South Cleoramouth','Gudrunville','MD','MS','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL,NULL,NULL,NULL,NULL,'TTD'),(4,'Breitenbergview','Rolfsonmouth','NH','DE','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL,NULL,NULL,NULL,NULL,'JOD'),(5,'Beahanmouth','Haylieland','IL','SO','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL,NULL,NULL,NULL,NULL,'ZWL'),(6,'Test Location','Sutherland','BV','AF','2016-11-21 00:33:49','2016-11-21 00:33:49',1,'046t46 South Street','Apt 356','30266','2016-11-21 00:33:49',3,'YEN'); /*!40000 ALTER TABLE `locations` ENABLE KEYS */; UNLOCK TABLES; @@ -758,7 +763,7 @@ CREATE TABLE `manufacturers` ( `user_id` int(11) DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -767,7 +772,7 @@ CREATE TABLE `manufacturers` ( LOCK TABLES `manufacturers` WRITE; /*!40000 ALTER TABLE `manufacturers` DISABLE KEYS */; -INSERT INTO `manufacturers` VALUES (1,'Unknown','2016-11-06 22:01:57','2016-11-06 22:01:57',1,NULL),(3,'Linkbridge','2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL),(4,'Flipstorm','2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL),(5,'Lajo','2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL),(6,'Zoomlounge','2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL),(7,'Kazu','2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL),(8,'Layo','2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL),(9,'Twiyo','2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL),(10,'Cogibox','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(11,'Flipbug','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(12,'Centimia','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(13,'Roombo','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(14,'Yakijo','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(15,'Oyope','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(16,'Flashset','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(17,'Chatterbridge','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(18,'Skipstorm','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(19,'Devpulse','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(20,'Photobug','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(21,'Photofeed','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(22,'Riffpath','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(23,'Aivee','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(24,'Abatz','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(25,'Blogtag','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(26,'Brightdog','2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL),(27,'Test Manufacturer','2016-11-06 22:35:47','2016-11-06 22:35:47',1,NULL); +INSERT INTO `manufacturers` VALUES (1,'Schaden, Waters and Koelpin','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL),(2,'Harber Group','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL),(3,'Johnson, Skiles and Howell','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL),(4,'Krajcik, Gutmann and Walter','2016-11-20 23:07:30','2016-11-21 00:33:52',NULL,'2016-11-21 00:33:52'),(5,'Stark, Bradtke and Rohan','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL),(6,'Gulgowski, Renner and Lebsack','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL),(7,'Murazik-Lakin','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL),(8,'Fahey and Sons','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL),(9,'Leannon Ltd','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL),(10,'Romaguera-Heidenreich','2016-11-20 23:07:30','2016-11-20 23:07:30',NULL,NULL),(11,'Testufacturer','2016-11-21 00:33:52','2016-11-21 00:33:52',1,NULL); /*!40000 ALTER TABLE `manufacturers` ENABLE KEYS */; UNLOCK TABLES; @@ -790,7 +795,7 @@ CREATE TABLE `migrations` ( LOCK TABLES `migrations` WRITE; /*!40000 ALTER TABLE `migrations` DISABLE KEYS */; -INSERT INTO `migrations` VALUES ('2012_12_06_225921_migration_cartalyst_sentry_install_users',1),('2012_12_06_225929_migration_cartalyst_sentry_install_groups',1),('2012_12_06_225945_migration_cartalyst_sentry_install_users_groups_pivot',1),('2012_12_06_225988_migration_cartalyst_sentry_install_throttle',1),('2013_03_23_193214_update_users_table',1),('2013_11_13_075318_create_models_table',1),('2013_11_13_075335_create_categories_table',1),('2013_11_13_075347_create_manufacturers_table',1),('2013_11_15_015858_add_user_id_to_categories',1),('2013_11_15_112701_add_user_id_to_manufacturers',1),('2013_11_15_190327_create_assets_table',1),('2013_11_15_190357_create_licenses_table',1),('2013_11_15_201848_add_license_name_to_licenses',1),('2013_11_16_040323_create_depreciations_table',1),('2013_11_16_042851_add_depreciation_id_to_models',1),('2013_11_16_084923_add_user_id_to_models',1),('2013_11_16_103258_create_locations_table',1),('2013_11_16_103336_add_location_id_to_assets',1),('2013_11_16_103407_add_checkedout_to_to_assets',1),('2013_11_16_103425_create_history_table',1),('2013_11_17_054359_drop_licenses_table',1),('2013_11_17_054526_add_physical_to_assets',1),('2013_11_17_055126_create_settings_table',1),('2013_11_17_062634_add_license_to_assets',1),('2013_11_18_134332_add_contacts_to_users',1),('2013_11_18_142847_add_info_to_locations',1),('2013_11_18_152942_remove_location_id_from_asset',1),('2013_11_18_164423_set_nullvalues_for_user',1),('2013_11_19_013337_create_asset_logs_table',1),('2013_11_19_061409_edit_added_on_asset_logs_table',1),('2013_11_19_062250_edit_location_id_asset_logs_table',1),('2013_11_20_055822_add_soft_delete_on_assets',1),('2013_11_20_121404_add_soft_delete_on_locations',1),('2013_11_20_123137_add_soft_delete_on_manufacturers',1),('2013_11_20_123725_add_soft_delete_on_categories',1),('2013_11_20_130248_create_status_labels',1),('2013_11_20_130830_add_status_id_on_assets_table',1),('2013_11_20_131544_add_status_type_on_status_labels',1),('2013_11_20_134103_add_archived_to_assets',1),('2013_11_21_002321_add_uploads_table',1),('2013_11_21_024531_remove_deployable_boolean_from_status_labels',1),('2013_11_22_075308_add_option_label_to_settings_table',1),('2013_11_22_213400_edits_to_settings_table',1),('2013_11_25_013244_create_licenses_table',1),('2013_11_25_031458_create_license_seats_table',1),('2013_11_25_032022_add_type_to_actionlog_table',1),('2013_11_25_033008_delete_bad_licenses_table',1),('2013_11_25_033131_create_new_licenses_table',1),('2013_11_25_033534_add_licensed_to_licenses_table',1),('2013_11_25_101308_add_warrantee_to_assets_table',1),('2013_11_25_104343_alter_warranty_column_on_assets',1),('2013_11_25_150450_drop_parent_from_categories',1),('2013_11_25_151920_add_depreciate_to_assets',1),('2013_11_25_152903_add_depreciate_to_licenses_table',1),('2013_11_26_211820_drop_license_from_assets_table',1),('2013_11_27_062510_add_note_to_asset_logs_table',1),('2013_12_01_113426_add_filename_to_asset_log',1),('2013_12_06_094618_add_nullable_to_licenses_table',1),('2013_12_10_084038_add_eol_on_models_table',1),('2013_12_12_055218_add_manager_to_users_table',1),('2014_01_28_031200_add_qr_code_to_settings_table',1),('2014_02_13_183016_add_qr_text_to_settings_table',1),('2014_05_24_093839_alter_default_license_depreciation_id',1),('2014_05_27_231658_alter_default_values_licenses',1),('2014_06_19_191508_add_asset_name_to_settings',1),('2014_06_20_004847_make_asset_log_checkedout_to_nullable',1),('2014_06_20_005050_make_asset_log_purchasedate_to_nullable',1),('2014_06_24_003011_add_suppliers',1),('2014_06_24_010742_add_supplier_id_to_asset',1),('2014_06_24_012839_add_zip_to_supplier',1),('2014_06_24_033908_add_url_to_supplier',1),('2014_07_08_054116_add_employee_id_to_users',1),('2014_07_09_134316_add_requestable_to_assets',1),('2014_07_17_085822_add_asset_to_software',1),('2014_07_17_161625_make_asset_id_in_logs_nullable',1),('2014_08_12_053504_alpha_0_4_2_release',1),('2014_08_17_083523_make_location_id_nullable',1),('2014_10_16_200626_add_rtd_location_to_assets',1),('2014_10_24_000417_alter_supplier_state_to_32',1),('2014_10_24_015641_add_display_checkout_date',1),('2014_10_28_222654_add_avatar_field_to_users_table',1),('2014_10_29_045924_add_image_field_to_models_table',1),('2014_11_01_214955_add_eol_display_to_settings',1),('2014_11_04_231416_update_group_field_for_reporting',1),('2014_11_05_212408_add_fields_to_licenses',1),('2014_11_07_021042_add_image_to_supplier',1),('2014_11_20_203007_add_username_to_user',1),('2014_11_20_223947_add_auto_to_settings',1),('2014_11_20_224421_add_prefix_to_settings',1),('2014_11_21_104401_change_licence_type',1),('2014_12_09_082500_add_fields_maintained_term_to_licenses',1),('2015_02_04_155757_increase_user_field_lengths',1),('2015_02_07_013537_add_soft_deleted_to_log',1),('2015_02_10_040958_fix_bad_assigned_to_ids',1),('2015_02_10_053310_migrate_data_to_new_statuses',1),('2015_02_11_044104_migrate_make_license_assigned_null',1),('2015_02_11_104406_migrate_create_requests_table',1),('2015_02_12_001312_add_mac_address_to_asset',1),('2015_02_12_024100_change_license_notes_type',1),('2015_02_17_231020_add_localonly_to_settings',1),('2015_02_19_222322_add_logo_and_colors_to_settings',1),('2015_02_24_072043_add_alerts_to_settings',1),('2015_02_25_022931_add_eula_fields',1),('2015_02_25_204513_add_accessories_table',1),('2015_02_26_091228_add_accessories_user_table',1),('2015_02_26_115128_add_deleted_at_models',1),('2015_02_26_233005_add_category_type',1),('2015_03_01_231912_update_accepted_at_to_acceptance_id',1),('2015_03_05_011929_add_qr_type_to_settings',1),('2015_03_18_055327_add_note_to_user',1),('2015_04_29_234704_add_slack_to_settings',1),('2015_05_04_085151_add_parent_id_to_locations_table',1),('2015_05_22_124421_add_reassignable_to_licenses',1),('2015_06_10_003314_fix_default_for_user_notes',1),('2015_06_10_003554_create_consumables',1),('2015_06_15_183253_move_email_to_username',1),('2015_06_23_070346_make_email_nullable',1),('2015_06_26_213716_create_asset_maintenances_table',1),('2015_07_04_212443_create_custom_fields_table',1),('2015_07_09_014359_add_currency_to_settings_and_locations',1),('2015_07_21_122022_add_expected_checkin_date_to_asset_logs',1),('2015_07_24_093845_add_checkin_email_to_category_table',1),('2015_07_25_055415_remove_email_unique_constraint',1),('2015_07_29_230054_add_thread_id_to_asset_logs_table',1),('2015_07_31_015430_add_accepted_to_assets',1),('2015_09_09_195301_add_custom_css_to_settings',1),('2015_09_21_235926_create_custom_field_custom_fieldset',1),('2015_09_22_000104_create_custom_fieldsets',1),('2015_09_22_003321_add_fieldset_id_to_assets',1),('2015_09_22_003413_migrate_mac_address',1),('2015_09_28_003314_fix_default_purchase_order',1),('2015_10_01_024551_add_accessory_consumable_price_info',1),('2015_10_12_192706_add_brand_to_settings',1),('2015_10_22_003314_fix_defaults_accessories',1),('2015_10_23_182625_add_checkout_time_and_expected_checkout_date_to_assets',1),('2015_11_05_061015_create_companies_table',1),('2015_11_05_061115_add_company_id_to_consumables_table',1),('2015_11_05_183749_image',1),('2015_11_06_092038_add_company_id_to_accessories_table',1),('2015_11_06_100045_add_company_id_to_users_table',1),('2015_11_06_134742_add_company_id_to_licenses_table',1),('2015_11_08_035832_add_company_id_to_assets_table',1),('2015_11_08_222305_add_ldap_fields_to_settings',1),('2015_11_15_151803_add_full_multiple_companies_support_to_settings_table',1),('2015_11_26_195528_import_ldap_settings',1),('2015_11_30_191504_remove_fk_company_id',1),('2015_12_21_193006_add_ldap_server_cert_ignore_to_settings_table',1),('2015_12_30_233509_add_timestamp_and_userId_to_custom_fields',1),('2015_12_30_233658_add_timestamp_and_userId_to_custom_fieldsets',1),('2016_01_28_041048_add_notes_to_models',1),('2016_02_19_070119_add_remember_token_to_users_table',1),('2016_02_19_073625_create_password_resets_table',1),('2016_03_02_193043_add_ldap_flag_to_users',1),('2016_03_02_220517_update_ldap_filter_to_longer_field',1),('2016_03_08_225351_create_components_table',1),('2016_03_09_024038_add_min_stock_to_tables',1),('2016_03_10_133849_add_locale_to_users',1),('2016_03_10_135519_add_locale_to_settings',1),('2016_03_11_185621_add_label_settings_to_settings',1),('2016_03_22_125911_fix_custom_fields_regexes',1),('2016_04_28_141554_add_show_to_users',1),('2016_05_16_164733_add_model_mfg_to_consumable',1),('2016_05_19_180351_add_alt_barcode_settings',1),('2016_05_19_191146_add_alter_interval',1),('2016_05_19_192226_add_inventory_threshold',1),('2016_05_20_024859_remove_option_keys_from_settings_table',1),('2016_05_20_143758_remove_option_value_from_settings_table',1),('2016_06_01_140218_add_email_domain_and_format_to_settings',1),('2016_06_22_160725_add_user_id_to_maintenances',1),('2016_07_13_150015_add_is_ad_to_settings',1),('2016_07_14_153609_add_ad_domain_to_settings',1),('2016_07_22_003348_fix_custom_fields_regex_stuff',1),('2016_07_22_054850_one_more_mac_addr_fix',1),('2016_07_22_143045_add_port_to_ldap_settings',1),('2016_07_22_153432_add_tls_to_ldap_settings',1),('2016_07_27_211034_add_zerofill_to_settings',1),('2016_08_02_124944_add_color_to_statuslabel',1),('2016_08_04_134500_add_disallow_ldap_pw_sync_to_settings',1),('2016_08_09_002225_add_manufacturer_to_licenses',1),('2016_08_12_121613_add_manufacturer_to_accessories_table',1),('2016_08_23_143353_add_new_fields_to_custom_fields',1),('2016_08_23_145619_add_show_in_nav_to_status_labels',1),('2016_08_30_084634_make_purchase_cost_nullable',1),('2016_09_01_141051_add_requestable_to_asset_model',1),('2016_09_02_001448_create_checkout_requests_table',1),('2016_09_04_180400_create_actionlog_table',1),('2016_09_04_182149_migrate_asset_log_to_action_log',1),('2016_09_19_235935_fix_fieldtype_for_target_type',1),('2016_09_23_140722_fix_modelno_in_consumables_to_string',1),('2016_09_28_231359_add_company_to_logs',1),('2016_10_14_130709_fix_order_number_to_varchar',1),('2016_10_19_145520_fix_order_number_in_components_to_string',1),('2016_10_27_151715_add_serial_to_components',1),('2016_10_27_213251_increase_serial_field_capacity',1),('2016_10_29_002724_enable_2fa_fields',1),('2016_10_29_082408_add_signature_to_acceptance',1),('2016_11_01_030818_fix_forgotten_filename_in_action_logs',1),('2016_10_16_015024_rename_modelno_to_model_number',2),('2016_10_16_015211_rename_consumable_modelno_to_model_number',2),('2016_10_16_143235_rename_model_note_to_notes',2),('2016_10_16_165052_rename_component_total_qty_to_qty',2); +INSERT INTO `migrations` VALUES ('2012_12_06_225921_migration_cartalyst_sentry_install_users',1),('2012_12_06_225929_migration_cartalyst_sentry_install_groups',1),('2012_12_06_225945_migration_cartalyst_sentry_install_users_groups_pivot',1),('2012_12_06_225988_migration_cartalyst_sentry_install_throttle',1),('2013_03_23_193214_update_users_table',1),('2013_11_13_075318_create_models_table',1),('2013_11_13_075335_create_categories_table',1),('2013_11_13_075347_create_manufacturers_table',1),('2013_11_15_015858_add_user_id_to_categories',1),('2013_11_15_112701_add_user_id_to_manufacturers',1),('2013_11_15_190327_create_assets_table',1),('2013_11_15_190357_create_licenses_table',1),('2013_11_15_201848_add_license_name_to_licenses',1),('2013_11_16_040323_create_depreciations_table',1),('2013_11_16_042851_add_depreciation_id_to_models',1),('2013_11_16_084923_add_user_id_to_models',1),('2013_11_16_103258_create_locations_table',1),('2013_11_16_103336_add_location_id_to_assets',1),('2013_11_16_103407_add_checkedout_to_to_assets',1),('2013_11_16_103425_create_history_table',1),('2013_11_17_054359_drop_licenses_table',1),('2013_11_17_054526_add_physical_to_assets',1),('2013_11_17_055126_create_settings_table',1),('2013_11_17_062634_add_license_to_assets',1),('2013_11_18_134332_add_contacts_to_users',1),('2013_11_18_142847_add_info_to_locations',1),('2013_11_18_152942_remove_location_id_from_asset',1),('2013_11_18_164423_set_nullvalues_for_user',1),('2013_11_19_013337_create_asset_logs_table',1),('2013_11_19_061409_edit_added_on_asset_logs_table',1),('2013_11_19_062250_edit_location_id_asset_logs_table',1),('2013_11_20_055822_add_soft_delete_on_assets',1),('2013_11_20_121404_add_soft_delete_on_locations',1),('2013_11_20_123137_add_soft_delete_on_manufacturers',1),('2013_11_20_123725_add_soft_delete_on_categories',1),('2013_11_20_130248_create_status_labels',1),('2013_11_20_130830_add_status_id_on_assets_table',1),('2013_11_20_131544_add_status_type_on_status_labels',1),('2013_11_20_134103_add_archived_to_assets',1),('2013_11_21_002321_add_uploads_table',1),('2013_11_21_024531_remove_deployable_boolean_from_status_labels',1),('2013_11_22_075308_add_option_label_to_settings_table',1),('2013_11_22_213400_edits_to_settings_table',1),('2013_11_25_013244_create_licenses_table',1),('2013_11_25_031458_create_license_seats_table',1),('2013_11_25_032022_add_type_to_actionlog_table',1),('2013_11_25_033008_delete_bad_licenses_table',1),('2013_11_25_033131_create_new_licenses_table',1),('2013_11_25_033534_add_licensed_to_licenses_table',1),('2013_11_25_101308_add_warrantee_to_assets_table',1),('2013_11_25_104343_alter_warranty_column_on_assets',1),('2013_11_25_150450_drop_parent_from_categories',1),('2013_11_25_151920_add_depreciate_to_assets',1),('2013_11_25_152903_add_depreciate_to_licenses_table',1),('2013_11_26_211820_drop_license_from_assets_table',1),('2013_11_27_062510_add_note_to_asset_logs_table',1),('2013_12_01_113426_add_filename_to_asset_log',1),('2013_12_06_094618_add_nullable_to_licenses_table',1),('2013_12_10_084038_add_eol_on_models_table',1),('2013_12_12_055218_add_manager_to_users_table',1),('2014_01_28_031200_add_qr_code_to_settings_table',1),('2014_02_13_183016_add_qr_text_to_settings_table',1),('2014_05_24_093839_alter_default_license_depreciation_id',1),('2014_05_27_231658_alter_default_values_licenses',1),('2014_06_19_191508_add_asset_name_to_settings',1),('2014_06_20_004847_make_asset_log_checkedout_to_nullable',1),('2014_06_20_005050_make_asset_log_purchasedate_to_nullable',1),('2014_06_24_003011_add_suppliers',1),('2014_06_24_010742_add_supplier_id_to_asset',1),('2014_06_24_012839_add_zip_to_supplier',1),('2014_06_24_033908_add_url_to_supplier',1),('2014_07_08_054116_add_employee_id_to_users',1),('2014_07_09_134316_add_requestable_to_assets',1),('2014_07_17_085822_add_asset_to_software',1),('2014_07_17_161625_make_asset_id_in_logs_nullable',1),('2014_08_12_053504_alpha_0_4_2_release',1),('2014_08_17_083523_make_location_id_nullable',1),('2014_10_16_200626_add_rtd_location_to_assets',1),('2014_10_24_000417_alter_supplier_state_to_32',1),('2014_10_24_015641_add_display_checkout_date',1),('2014_10_28_222654_add_avatar_field_to_users_table',1),('2014_10_29_045924_add_image_field_to_models_table',1),('2014_11_01_214955_add_eol_display_to_settings',1),('2014_11_04_231416_update_group_field_for_reporting',1),('2014_11_05_212408_add_fields_to_licenses',1),('2014_11_07_021042_add_image_to_supplier',1),('2014_11_20_203007_add_username_to_user',1),('2014_11_20_223947_add_auto_to_settings',1),('2014_11_20_224421_add_prefix_to_settings',1),('2014_11_21_104401_change_licence_type',1),('2014_12_09_082500_add_fields_maintained_term_to_licenses',1),('2015_02_04_155757_increase_user_field_lengths',1),('2015_02_07_013537_add_soft_deleted_to_log',1),('2015_02_10_040958_fix_bad_assigned_to_ids',1),('2015_02_10_053310_migrate_data_to_new_statuses',1),('2015_02_11_044104_migrate_make_license_assigned_null',1),('2015_02_11_104406_migrate_create_requests_table',1),('2015_02_12_001312_add_mac_address_to_asset',1),('2015_02_12_024100_change_license_notes_type',1),('2015_02_17_231020_add_localonly_to_settings',1),('2015_02_19_222322_add_logo_and_colors_to_settings',1),('2015_02_24_072043_add_alerts_to_settings',1),('2015_02_25_022931_add_eula_fields',1),('2015_02_25_204513_add_accessories_table',1),('2015_02_26_091228_add_accessories_user_table',1),('2015_02_26_115128_add_deleted_at_models',1),('2015_02_26_233005_add_category_type',1),('2015_03_01_231912_update_accepted_at_to_acceptance_id',1),('2015_03_05_011929_add_qr_type_to_settings',1),('2015_03_18_055327_add_note_to_user',1),('2015_04_29_234704_add_slack_to_settings',1),('2015_05_04_085151_add_parent_id_to_locations_table',1),('2015_05_22_124421_add_reassignable_to_licenses',1),('2015_06_10_003314_fix_default_for_user_notes',1),('2015_06_10_003554_create_consumables',1),('2015_06_15_183253_move_email_to_username',1),('2015_06_23_070346_make_email_nullable',1),('2015_06_26_213716_create_asset_maintenances_table',1),('2015_07_04_212443_create_custom_fields_table',1),('2015_07_09_014359_add_currency_to_settings_and_locations',1),('2015_07_21_122022_add_expected_checkin_date_to_asset_logs',1),('2015_07_24_093845_add_checkin_email_to_category_table',1),('2015_07_25_055415_remove_email_unique_constraint',1),('2015_07_29_230054_add_thread_id_to_asset_logs_table',1),('2015_07_31_015430_add_accepted_to_assets',1),('2015_09_09_195301_add_custom_css_to_settings',1),('2015_09_21_235926_create_custom_field_custom_fieldset',1),('2015_09_22_000104_create_custom_fieldsets',1),('2015_09_22_003321_add_fieldset_id_to_assets',1),('2015_09_22_003413_migrate_mac_address',1),('2015_09_28_003314_fix_default_purchase_order',1),('2015_10_01_024551_add_accessory_consumable_price_info',1),('2015_10_12_192706_add_brand_to_settings',1),('2015_10_22_003314_fix_defaults_accessories',1),('2015_10_23_182625_add_checkout_time_and_expected_checkout_date_to_assets',1),('2015_11_05_061015_create_companies_table',1),('2015_11_05_061115_add_company_id_to_consumables_table',1),('2015_11_05_183749_image',1),('2015_11_06_092038_add_company_id_to_accessories_table',1),('2015_11_06_100045_add_company_id_to_users_table',1),('2015_11_06_134742_add_company_id_to_licenses_table',1),('2015_11_08_035832_add_company_id_to_assets_table',1),('2015_11_08_222305_add_ldap_fields_to_settings',1),('2015_11_15_151803_add_full_multiple_companies_support_to_settings_table',1),('2015_11_26_195528_import_ldap_settings',1),('2015_11_30_191504_remove_fk_company_id',1),('2015_12_21_193006_add_ldap_server_cert_ignore_to_settings_table',1),('2015_12_30_233509_add_timestamp_and_userId_to_custom_fields',1),('2015_12_30_233658_add_timestamp_and_userId_to_custom_fieldsets',1),('2016_01_28_041048_add_notes_to_models',1),('2016_02_19_070119_add_remember_token_to_users_table',1),('2016_02_19_073625_create_password_resets_table',1),('2016_03_02_193043_add_ldap_flag_to_users',1),('2016_03_02_220517_update_ldap_filter_to_longer_field',1),('2016_03_08_225351_create_components_table',1),('2016_03_09_024038_add_min_stock_to_tables',1),('2016_03_10_133849_add_locale_to_users',1),('2016_03_10_135519_add_locale_to_settings',1),('2016_03_11_185621_add_label_settings_to_settings',1),('2016_03_22_125911_fix_custom_fields_regexes',1),('2016_04_28_141554_add_show_to_users',1),('2016_05_16_164733_add_model_mfg_to_consumable',1),('2016_05_19_180351_add_alt_barcode_settings',1),('2016_05_19_191146_add_alter_interval',1),('2016_05_19_192226_add_inventory_threshold',1),('2016_05_20_024859_remove_option_keys_from_settings_table',1),('2016_05_20_143758_remove_option_value_from_settings_table',1),('2016_06_01_140218_add_email_domain_and_format_to_settings',1),('2016_06_22_160725_add_user_id_to_maintenances',1),('2016_07_13_150015_add_is_ad_to_settings',1),('2016_07_14_153609_add_ad_domain_to_settings',1),('2016_07_22_003348_fix_custom_fields_regex_stuff',1),('2016_07_22_054850_one_more_mac_addr_fix',1),('2016_07_22_143045_add_port_to_ldap_settings',1),('2016_07_22_153432_add_tls_to_ldap_settings',1),('2016_07_27_211034_add_zerofill_to_settings',1),('2016_08_02_124944_add_color_to_statuslabel',1),('2016_08_04_134500_add_disallow_ldap_pw_sync_to_settings',1),('2016_08_09_002225_add_manufacturer_to_licenses',1),('2016_08_12_121613_add_manufacturer_to_accessories_table',1),('2016_08_23_143353_add_new_fields_to_custom_fields',1),('2016_08_23_145619_add_show_in_nav_to_status_labels',1),('2016_08_30_084634_make_purchase_cost_nullable',1),('2016_09_01_141051_add_requestable_to_asset_model',1),('2016_09_02_001448_create_checkout_requests_table',1),('2016_09_04_180400_create_actionlog_table',1),('2016_09_04_182149_migrate_asset_log_to_action_log',1),('2016_09_19_235935_fix_fieldtype_for_target_type',1),('2016_09_23_140722_fix_modelno_in_consumables_to_string',1),('2016_09_28_231359_add_company_to_logs',1),('2016_10_14_130709_fix_order_number_to_varchar',1),('2016_10_19_145520_fix_order_number_in_components_to_string',1),('2016_10_27_151715_add_serial_to_components',1),('2016_10_27_213251_increase_serial_field_capacity',1),('2016_10_29_002724_enable_2fa_fields',1),('2016_10_29_082408_add_signature_to_acceptance',1),('2016_11_01_030818_fix_forgotten_filename_in_action_logs',1),('2016_10_16_015024_rename_modelno_to_model_number',2),('2016_10_16_015211_rename_consumable_modelno_to_model_number',2),('2016_10_16_143235_rename_model_note_to_notes',2),('2016_10_16_165052_rename_component_total_qty_to_qty',2),('2016_11_13_020954_rename_component_serial_number_to_serial',2),('2016_11_16_172119_increase_purchase_cost_size',3),('2016_11_17_161317_longer_state_field_in_location',3),('2016_11_17_193706_add_model_number_to_accessories',3); /*!40000 ALTER TABLE `migrations` ENABLE KEYS */; UNLOCK TABLES; @@ -819,7 +824,7 @@ CREATE TABLE `models` ( `notes` longtext COLLATE utf8_unicode_ci, `requestable` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -828,7 +833,7 @@ CREATE TABLE `models` ( LOCK TABLES `models` WRITE; /*!40000 ALTER TABLE `models` DISABLE KEYS */; -INSERT INTO `models` VALUES (1,'massa id','6377018600094472',3,16,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(2,'congue diam id','5.02043359569189E+018',4,16,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(3,'convallis tortor risus','374622546776765',5,16,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(4,'in faucibus orci','3549618015236095',6,16,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(5,'et ultrices','3567082842822626',7,16,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(6,'accumsan felis','30052522651756',8,16,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(7,'interdum mauris','3585438057660291',9,16,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(8,'sapien dignissim','3548511052883500',10,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(9,'et ultrices posuere cubilia','6.75911579996746E+017',11,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(10,'duis mattis egestas metus aenean','378342677410961',12,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(11,'quam sapien varius','201954480670574',13,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(12,'augue vestibulum rutrum rutrum neque','3567636803247485',14,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(13,'ante vel ipsum praesent blandit','3529462300753736',15,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(14,'dapibus dolor vel','3559785746335392',16,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(15,'dui proin','4070995882635',17,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(16,'odio porttitor id consequat in','36309149183447',18,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(17,'donec vitae nisi nam','3543783295297294',19,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(18,'eget tincidunt eget tempus','201967051902986',20,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(19,'at diam nam','3533016005480310',21,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(20,'luctus et ultrices','4547299861035',22,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(21,'dictumst morbi vestibulum','4405382067928809',23,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(22,'quis odio consequat varius integer','3537252931689981',24,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(23,'quam a odio in','5018304036665243',25,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(24,'in sapien iaculis congue vivamus','30355105682126',26,16,'2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,1,NULL,NULL,0,NULL,NULL,NULL,0),(25,'Test Asset Model','',27,16,'2016-11-06 22:37:35','2016-11-06 22:37:35',0,1,0,NULL,0,NULL,NULL,'',0); +INSERT INTO `models` VALUES (1,'Organized zerotolerance strategy','41955019',3,1,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,1,NULL,0,NULL,NULL,NULL,0),(2,'Operative responsive focusgroup','36408246',7,5,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,1,NULL,0,NULL,NULL,NULL,0),(3,'Operative actuating success','44231380',8,4,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,1,NULL,0,NULL,NULL,NULL,0),(4,'Configurable 3rdgeneration success','17070824',1,2,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,1,NULL,0,NULL,NULL,NULL,0),(5,'Multi-channelled background model','25964380',2,2,'2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,1,NULL,0,NULL,NULL,NULL,0),(6,'Test Model','',2,5,'2016-11-20 23:12:49','2016-11-21 00:33:29',0,1,0,NULL,0,'2016-11-21 00:33:29',NULL,'',0),(7,'TestModel','350335',8,11,'2016-11-21 00:33:28','2016-11-21 00:33:28',0,1,12,NULL,0,NULL,NULL,'lorem ipsum blah blah',1); /*!40000 ALTER TABLE `models` ENABLE KEYS */; UNLOCK TABLES; @@ -1030,7 +1035,7 @@ CREATE TABLE `status_labels` ( `color` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `show_in_nav` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1039,7 +1044,7 @@ CREATE TABLE `status_labels` ( LOCK TABLES `status_labels` WRITE; /*!40000 ALTER TABLE `status_labels` DISABLE KEYS */; -INSERT INTO `status_labels` VALUES (1,'Pending',1,NULL,NULL,NULL,0,1,0,'These assets are not yet ready to be deployed, usually because of configuration or waiting on parts.',NULL,0),(2,'Ready to Deploy',1,NULL,NULL,NULL,1,0,0,'These assets are ready to deploy.',NULL,0),(3,'Archived',1,NULL,NULL,NULL,0,0,1,'These assets are no longer in circulation or viable.',NULL,0),(5,'Undeployable',NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,1,0,0,NULL,NULL,0),(6,'Lost',NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,1,0,0,NULL,NULL,0),(7,'Pending Diagnostics',NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,1,0,0,NULL,NULL,0); +INSERT INTO `status_labels` VALUES (1,'Ready to Deploy',1,'2004-12-14 19:19:01','2011-11-20 01:20:52',NULL,1,0,0,'',NULL,0),(2,'Pending',1,'2007-02-27 15:33:24','1987-07-30 16:33:07',NULL,0,1,0,'',NULL,0),(3,'Archived',1,'2001-11-21 23:22:44','2000-07-30 19:54:16',NULL,0,0,1,'These assets are permanently undeployable',NULL,0),(4,'Out for Diagnostics',1,'1981-09-28 05:03:46','1979-03-28 12:50:57',NULL,0,0,0,'',NULL,0),(5,'Out for Repair',1,'2010-09-10 11:59:47','1973-10-19 04:27:48',NULL,0,0,0,'',NULL,0),(6,'Broken - Not Fixable',1,'1979-08-28 12:09:59','1981-08-25 12:56:48',NULL,0,0,1,'',NULL,0),(7,'Lost/Stolen',1,'2011-04-26 04:28:42','1999-07-22 04:43:21',NULL,0,0,1,'',NULL,0),(8,'Test Status',1,'2016-11-21 00:33:54','2016-11-21 00:33:54',NULL,0,1,0,'lorem ipsum something else','#b46262',1); /*!40000 ALTER TABLE `status_labels` ENABLE KEYS */; UNLOCK TABLES; @@ -1071,7 +1076,7 @@ CREATE TABLE `suppliers` ( `url` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL, `image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1080,7 +1085,7 @@ CREATE TABLE `suppliers` ( LOCK TABLES `suppliers` WRITE; /*!40000 ALTER TABLE `suppliers` DISABLE KEYS */; -INSERT INTO `suppliers` VALUES (1,'Blogspan',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,NULL,NULL,NULL),(2,'Oyope',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,NULL,NULL,NULL),(3,'Unknown',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,NULL,NULL,NULL),(4,'Ntag',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:21','2016-11-06 22:03:21',1,NULL,NULL,NULL,NULL),(5,'Kwilith',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,NULL,NULL,NULL),(6,'Linkbridge',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,NULL,NULL,NULL),(7,'Wikizz',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,NULL,NULL,NULL),(8,'Tagcat',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,NULL,NULL,NULL),(9,'Meevee',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,NULL,NULL,NULL),(10,'Shuffledrive',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,NULL,NULL,NULL),(11,'Quamba',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,NULL,NULL,NULL),(12,'Browsedrive',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,NULL,NULL,NULL),(13,'Tekfly',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,NULL,NULL,NULL),(14,'Quatz',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,NULL,NULL,NULL),(15,'Mydeo',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2016-11-06 22:03:22','2016-11-06 22:03:22',1,NULL,NULL,NULL,NULL); +INSERT INTO `suppliers` VALUES (1,'Deckow-Schuppe','695 Alejandra Motorway',NULL,'Torpmouth','OR','BG','292.995.6573 x818',NULL,'addie65@example.com','Jaiden Gutkowski DVM',NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,NULL),(2,'Gislason LLC','8624 Kenneth Tunnel',NULL,'Jamalburgh','RI','HK','1-250-263-8392',NULL,'marielle32@example.com','Arianna Metz',NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,NULL),(3,'Pouros, Bernhard and Herzog','681 Simonis Summit',NULL,'East Jaylinside','TX','MX','756-364-0473',NULL,'jerad.schoen@example.net','Delphine Gulgowski Jr.',NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,NULL),(4,'Weissnat, Reynolds and Quigley','7175 Lowe Bridge',NULL,'Vandervortberg','ND','MG','446.315.3002 x50031',NULL,'ryleigh69@example.com','Bradly Rogahn DDS',NULL,'2016-11-20 23:07:29','2016-11-20 23:07:29',NULL,NULL,NULL,NULL,NULL),(5,'Test Supplier','046t46 South Street','Apt 356','Sutherland','BV','AF','032626236 x35','342 33 6647 3555','p@roar.com','Mr. Smith','lorem ipsum indigo something','2016-11-21 00:33:56','2016-11-21 00:33:56',1,NULL,'30266','http://snipeitapp.com',NULL),(6,'Blank Supplier','','','','','','','','','','','2016-11-21 00:35:59','2016-11-21 00:35:59',1,NULL,'','http://',NULL); /*!40000 ALTER TABLE `suppliers` ENABLE KEYS */; UNLOCK TABLES; @@ -1160,7 +1165,7 @@ CREATE TABLE `users` ( PRIMARY KEY (`id`), KEY `users_activation_code_index` (`activation_code`), KEY `users_reset_password_code_index` (`reset_password_code`) -) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1169,7 +1174,7 @@ CREATE TABLE `users` ( LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; -INSERT INTO `users` VALUES (1,'snipe@google.com','$2y$10$oSjP81uCdXW.nAHBIPteA..DsLPhJBiwD1tfny4hY0Ndicv1B5Nk6','{\"superuser\":\"1\",\"admin\":\"0\",\"reports.view\":\"0\",\"assets.view\":\"0\",\"assets.create\":\"0\",\"assets.edit\":\"0\",\"assets.delete\":\"0\",\"assets.checkin\":\"0\",\"assets.checkout\":\"0\",\"assets.view.requestable\":\"0\",\"accessories.view\":\"0\",\"accessories.create\":\"0\",\"accessories.edit\":\"0\",\"accessories.delete\":\"0\",\"accessories.checkout\":\"0\",\"accessories.checkin\":\"0\",\"consumables.view\":\"0\",\"consumables.create\":\"0\",\"consumables.edit\":\"0\",\"consumables.delete\":\"0\",\"consumables.checkout\":\"0\",\"licenses.view\":\"0\",\"licenses.create\":\"0\",\"licenses.edit\":\"0\",\"licenses.delete\":\"0\",\"licenses.checkout\":\"0\",\"licenses.keys\":\"0\",\"components.view\":\"0\",\"components.create\":\"0\",\"components.edit\":\"0\",\"components.delete\":\"0\",\"components.checkout\":\"0\",\"components.checkin\":\"0\",\"users.view\":\"0\",\"users.create\":\"0\",\"users.edit\":\"0\",\"users.delete\":\"0\",\"self.two_factor\":\"0\"}',1,NULL,NULL,NULL,NULL,NULL,'snipe','Snipe','2016-11-06 22:01:02','2016-11-06 22:43:51',NULL,NULL,NULL,NULL,NULL,'','',NULL,'',NULL,'snipeit','',NULL,'kI2xkXMnCbh5YXRD9nBWqwauSIgANXp9DRzwbeapxFqtWs1qKxDFEOOaCqfE',0,'en',1,NULL,0,0),(3,'bnelson0@cdbaby.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Bonnie',' Nelson','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'bnelson0',NULL,NULL,NULL,0,'en',1,NULL,0,0),(4,'jferguson1@state.tx.us','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Judith',' Ferguson','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'jferguson1',NULL,NULL,NULL,0,'en',1,NULL,0,0),(5,'mgibson2@wiley.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Mildred',' Gibson','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'mgibson2',NULL,NULL,NULL,0,'en',1,NULL,0,0),(6,'blee3@quantcast.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Brandon',' Lee','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'blee3',NULL,NULL,NULL,0,'en',1,NULL,0,0),(7,'bpowell4@tuttocitta.it','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Betty',' Powell','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'bpowell4',NULL,NULL,NULL,0,'en',1,NULL,0,0),(8,'awheeler5@cocolog-nifty.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Anthony',' Wheeler','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'awheeler5',NULL,NULL,NULL,0,'en',1,NULL,0,0),(9,'dreynolds6@ustream.tv','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Dennis',' Reynolds','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'dreynolds6',NULL,NULL,NULL,0,'en',1,NULL,0,0),(10,'aarnold7@cbc.ca','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Andrea',' Arnold','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'aarnold7',NULL,NULL,NULL,0,'en',1,NULL,0,0),(11,'abutler8@wikia.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Anna',' Butler','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'abutler8',NULL,NULL,NULL,0,'en',1,NULL,0,0),(12,'mbennett9@diigo.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Mark',' Bennett','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'mbennett9',NULL,NULL,NULL,0,'en',1,NULL,0,0),(13,'ewheelera@google.de','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Emily',' Wheeler','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ewheelera',NULL,NULL,NULL,0,'en',1,NULL,0,0),(14,'wfoxb@virginia.edu','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Wanda',' Fox','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'wfoxb',NULL,NULL,NULL,0,'en',1,NULL,0,0),(15,'jgrantd@cpanel.net','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Janet',' Grant','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'jgrantd',NULL,NULL,NULL,0,'en',1,NULL,0,0),(16,'alarsone@tripod.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Antonio',' Larson','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'alarsone',NULL,NULL,NULL,0,'en',1,NULL,0,0),(17,'lpowellf@com.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Lois',' Powell','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'lpowellf',NULL,NULL,NULL,0,'en',1,NULL,0,0),(18,'malleng@com.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Mildred',' Allen','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'malleng',NULL,NULL,NULL,0,'en',1,NULL,0,0),(19,'caustinh@bigcartel.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Clarence',' Austin','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'caustinh',NULL,NULL,NULL,0,'en',1,NULL,0,0),(20,'wchavezi@blogs.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Walter',' Chavez','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'wchavezi',NULL,NULL,NULL,0,'en',1,NULL,0,0),(21,'melliottj@constantcontact.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Marie',' Elliott','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'melliottj',NULL,NULL,NULL,0,'en',1,NULL,0,0),(22,'bfordm@woothemes.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Benjamin',' Ford','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'bfordm',NULL,NULL,NULL,0,'en',1,NULL,0,0),(23,'twarrenn@printfriendly.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Timothy',' Warren','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'twarrenn',NULL,NULL,NULL,0,'en',1,NULL,0,0); +INSERT INTO `users` VALUES (1,'snipe@google.com','$2y$10$oSjP81uCdXW.nAHBIPteA..DsLPhJBiwD1tfny4hY0Ndicv1B5Nk6','{\"superuser\":\"1\",\"admin\":\"0\",\"reports.view\":\"0\",\"assets.view\":\"0\",\"assets.create\":\"0\",\"assets.edit\":\"0\",\"assets.delete\":\"0\",\"assets.checkin\":\"0\",\"assets.checkout\":\"0\",\"assets.view.requestable\":\"0\",\"accessories.view\":\"0\",\"accessories.create\":\"0\",\"accessories.edit\":\"0\",\"accessories.delete\":\"0\",\"accessories.checkout\":\"0\",\"accessories.checkin\":\"0\",\"consumables.view\":\"0\",\"consumables.create\":\"0\",\"consumables.edit\":\"0\",\"consumables.delete\":\"0\",\"consumables.checkout\":\"0\",\"licenses.view\":\"0\",\"licenses.create\":\"0\",\"licenses.edit\":\"0\",\"licenses.delete\":\"0\",\"licenses.checkout\":\"0\",\"licenses.keys\":\"0\",\"components.view\":\"0\",\"components.create\":\"0\",\"components.edit\":\"0\",\"components.delete\":\"0\",\"components.checkout\":\"0\",\"components.checkin\":\"0\",\"users.view\":\"0\",\"users.create\":\"0\",\"users.edit\":\"0\",\"users.delete\":\"0\",\"self.two_factor\":\"0\"}',1,NULL,NULL,NULL,NULL,NULL,'snipe','Snipe','2016-11-06 22:01:02','2016-11-21 00:33:59',NULL,NULL,NULL,NULL,NULL,'','',NULL,'',NULL,'snipeit','',NULL,'yui6FpaJTPf72mgW84Cv8YqcoE6C7UbuNoh5yGe9eW2yKCoOtryJNE230g9q',0,'en',1,NULL,0,0),(3,'bnelson0@cdbaby.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Bonnie',' Nelson','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'bnelson0',NULL,NULL,NULL,0,'en',1,NULL,0,0),(4,'jferguson1@state.tx.us','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Judith',' Ferguson','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'jferguson1',NULL,NULL,NULL,0,'en',1,NULL,0,0),(5,'mgibson2@wiley.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Mildred',' Gibson','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'mgibson2',NULL,NULL,NULL,0,'en',1,NULL,0,0),(6,'blee3@quantcast.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Brandon',' Lee','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'blee3',NULL,NULL,NULL,0,'en',1,NULL,0,0),(7,'bpowell4@tuttocitta.it','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Betty',' Powell','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'bpowell4',NULL,NULL,NULL,0,'en',1,NULL,0,0),(8,'awheeler5@cocolog-nifty.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Anthony',' Wheeler','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'awheeler5',NULL,NULL,NULL,0,'en',1,NULL,0,0),(9,'dreynolds6@ustream.tv','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Dennis',' Reynolds','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'dreynolds6',NULL,NULL,NULL,0,'en',1,NULL,0,0),(10,'aarnold7@cbc.ca','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Andrea',' Arnold','2016-11-06 22:03:21','2016-11-06 22:03:21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'aarnold7',NULL,NULL,NULL,0,'en',1,NULL,0,0),(11,'abutler8@wikia.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Anna',' Butler','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'abutler8',NULL,NULL,NULL,0,'en',1,NULL,0,0),(12,'mbennett9@diigo.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Mark',' Bennett','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'mbennett9',NULL,NULL,NULL,0,'en',1,NULL,0,0),(13,'ewheelera@google.de','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Emily',' Wheeler','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ewheelera',NULL,NULL,NULL,0,'en',1,NULL,0,0),(14,'wfoxb@virginia.edu','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Wanda',' Fox','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'wfoxb',NULL,NULL,NULL,0,'en',1,NULL,0,0),(15,'jgrantd@cpanel.net','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Janet',' Grant','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'jgrantd',NULL,NULL,NULL,0,'en',1,NULL,0,0),(16,'alarsone@tripod.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Antonio',' Larson','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'alarsone',NULL,NULL,NULL,0,'en',1,NULL,0,0),(17,'lpowellf@com.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Lois',' Powell','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'lpowellf',NULL,NULL,NULL,0,'en',1,NULL,0,0),(18,'malleng@com.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Mildred',' Allen','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'malleng',NULL,NULL,NULL,0,'en',1,NULL,0,0),(19,'caustinh@bigcartel.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Clarence',' Austin','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'caustinh',NULL,NULL,NULL,0,'en',1,NULL,0,0),(20,'wchavezi@blogs.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Walter',' Chavez','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'wchavezi',NULL,NULL,NULL,0,'en',1,NULL,0,0),(21,'melliottj@constantcontact.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Marie',' Elliott','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'melliottj',NULL,NULL,NULL,0,'en',1,NULL,0,0),(22,'bfordm@woothemes.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Benjamin',' Ford','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'bfordm',NULL,NULL,NULL,0,'en',1,NULL,0,0),(23,'twarrenn@printfriendly.com','$2y$10$XXJbpVOtPb81jg0hRF9wRO9d62/qquyn5Pi7WLj/HHnxhEk4ThiZO',NULL,1,NULL,NULL,NULL,NULL,NULL,'Timothy',' Warren','2016-11-06 22:03:22','2016-11-06 22:03:22',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'twarrenn',NULL,NULL,NULL,0,'en',1,NULL,0,0),(24,'carli.kutch@example.com','n.rSn]5><0@J]5y/akE',NULL,0,NULL,NULL,NULL,NULL,NULL,'Virgie','Koepp','2016-11-20 23:03:56','2016-11-20 23:03:56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'hodkiewicz.ora',NULL,1,NULL,0,'en',1,NULL,0,0),(25,'jaida.yundt@example.org',';5lrG0D]`,\"a&8EK',NULL,0,NULL,NULL,NULL,NULL,NULL,'Aidan','Kuhn','2016-11-20 23:03:56','2016-11-20 23:03:56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'emilie99',NULL,1,NULL,0,'en',1,NULL,0,0),(26,'stroman.ferne@example.org','$Tv\"Th',NULL,0,NULL,NULL,NULL,NULL,NULL,'Brendan','Beier','2016-11-20 23:03:56','2016-11-20 23:03:56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'kpfannerstill',NULL,2,NULL,0,'en',1,NULL,0,0),(27,'janae.kris@example.net','h:D;__sn',NULL,0,NULL,NULL,NULL,NULL,NULL,'Johann','Jenkins','2016-11-20 23:03:56','2016-11-20 23:03:56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'agnes.schaden',NULL,2,NULL,0,'en',1,NULL,0,0),(28,'iwalker@example.org','gPxOMxb^nQhdT',NULL,0,NULL,NULL,NULL,NULL,NULL,'Lilla','Marks','2016-11-20 23:03:56','2016-11-20 23:03:56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'blanca05',NULL,1,NULL,0,'en',1,NULL,0,0),(29,'santos18@example.net','uEB#o(rvmE&.',NULL,0,NULL,NULL,NULL,NULL,NULL,'Magdalen','Ondricka','2016-11-20 23:03:56','2016-11-20 23:03:56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'lenore02',NULL,2,NULL,0,'en',1,NULL,0,0),(30,'gislason.arely@example.com','5F\\]9dw)Z*\"z',NULL,0,NULL,NULL,NULL,NULL,NULL,'Herbert','Mueller','2016-11-20 23:03:56','2016-11-20 23:03:56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sbeier',NULL,3,NULL,0,'en',1,NULL,0,0),(31,'kris.lauriane@example.net','b*GzqFjV\'5==s4',NULL,0,NULL,NULL,NULL,NULL,NULL,'Hope','Ledner','2016-11-20 23:03:56','2016-11-20 23:03:56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'cameron.dickens',NULL,2,NULL,0,'en',1,NULL,0,0),(32,'glenda.jacobi@example.net','fuPK3mC~Gwy',NULL,0,NULL,NULL,NULL,NULL,NULL,'Shayne','Mraz','2016-11-20 23:03:56','2016-11-20 23:03:56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'heaven.conn',NULL,1,NULL,0,'en',1,NULL,0,0),(33,'rkonopelski@example.net','XD6mF&1XZyX@6d3izG',NULL,0,NULL,NULL,NULL,NULL,NULL,'Magali','Hamill','2016-11-20 23:03:56','2016-11-20 23:03:56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'susie26',NULL,4,NULL,0,'en',1,NULL,0,0),(34,'g@roar.com','$2y$10$3//tj9exuu7n/RVVBH2XfuEjj6KyVo0DNsMyXbqmTzieDvbrkZ27G','{\"superuser\":\"0\",\"admin\":\"0\",\"reports.view\":\"0\",\"assets.view\":\"0\",\"assets.create\":\"0\",\"assets.edit\":\"0\",\"assets.delete\":\"0\",\"assets.checkin\":\"0\",\"assets.checkout\":\"0\",\"assets.view.requestable\":\"0\",\"accessories.view\":\"0\",\"accessories.create\":\"0\",\"accessories.edit\":\"0\",\"accessories.delete\":\"0\",\"accessories.checkout\":\"0\",\"accessories.checkin\":\"0\",\"consumables.view\":\"0\",\"consumables.create\":\"0\",\"consumables.edit\":\"0\",\"consumables.delete\":\"0\",\"consumables.checkout\":\"0\",\"licenses.view\":\"0\",\"licenses.create\":\"0\",\"licenses.edit\":\"0\",\"licenses.delete\":\"0\",\"licenses.checkout\":\"0\",\"licenses.keys\":\"0\",\"components.view\":\"0\",\"components.create\":\"0\",\"components.edit\":\"0\",\"components.delete\":\"0\",\"components.checkout\":\"0\",\"components.checkin\":\"0\",\"users.view\":\"0\",\"users.create\":\"0\",\"users.edit\":\"0\",\"users.delete\":\"0\",\"self.two_factor\":\"0\"}',1,NULL,NULL,NULL,NULL,NULL,'John','Smdt','2016-11-20 23:06:01','2016-11-20 23:06:01',NULL,NULL,NULL,NULL,67,'35235 33535 x5','Robot',19,'1636 636',NULL,'jsmdt','lorem ipsum indigo something',3,NULL,0,'en-GB',1,NULL,0,0),(35,'khyatt@example.net','(RFSG=`Z8$Zf%J',NULL,0,NULL,NULL,NULL,NULL,NULL,'Kristopher','Skiles','2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'dovie08',NULL,1,NULL,0,'en',1,NULL,0,0),(36,'lockman.demarcus@example.org','vAJ^z=8$=?9$wfut',NULL,0,NULL,NULL,NULL,NULL,NULL,'Bell','Franecki','2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'rocky.nitzsche',NULL,4,NULL,0,'en',1,NULL,0,0),(37,'murray37@example.org','9yz{hy%',NULL,0,NULL,NULL,NULL,NULL,NULL,'Ivory','Wyman','2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'vince.renner',NULL,2,NULL,0,'en',1,NULL,0,0),(39,'jacobson.yadira@example.com','#K.%ev&$gKr_[',NULL,0,NULL,NULL,NULL,NULL,NULL,'Harry','Brown','2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'jarred.bode',NULL,2,NULL,0,'en',1,NULL,0,0),(40,'mdaniel@example.net','%`_LI(aPpUJ^(Bg3Hv~',NULL,0,NULL,NULL,NULL,NULL,NULL,'Jules','Herman','2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'hdenesik',NULL,4,NULL,0,'en',1,NULL,0,0),(41,'vincent.mcglynn@example.net','/$qJ#@u',NULL,0,NULL,NULL,NULL,NULL,NULL,'Marilou','O\'Keefe','2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ova.cronin',NULL,4,NULL,0,'en',1,NULL,0,0),(42,'frami.lupe@example.com','5{0@yQpA0tI{',NULL,0,NULL,NULL,NULL,NULL,NULL,'Michelle','Lubowitz','2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'smith.lorenzo',NULL,3,NULL,0,'en',1,NULL,0,0),(43,'davion83@example.net','$S?[!#^F\",oo&',NULL,0,NULL,NULL,NULL,NULL,NULL,'Cary','Medhurst','2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'schowalter.tremaine',NULL,1,NULL,0,'en',1,NULL,0,0),(44,'roxane.torp@example.net','wplSIT.N=',NULL,0,NULL,NULL,NULL,NULL,NULL,'Ethan','Stanton','2016-11-20 23:07:28','2016-11-20 23:07:28',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'rey71',NULL,1,NULL,0,'en',1,NULL,0,0); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; @@ -1205,4 +1210,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2016-11-06 10:44:44 +-- Dump completed on 2016-11-20 12:36:32 diff --git a/tests/_support/FunctionalTester.php b/tests/_support/FunctionalTester.php index 7e888f8b20..937ce41d8c 100644 --- a/tests/_support/FunctionalTester.php +++ b/tests/_support/FunctionalTester.php @@ -1,7 +1,21 @@ -first()->id; + } + + public function getCategoryId() + { + return Category::inRandomOrder()->first()->id; + } + + public function getManufacturerId() + { + return Manufacturer::inRandomOrder()->first()->id; + } + + public function getLocationId() + { + return Location::inRandomOrder()->first()->id; + } + + /** + * @return mixed Random Accessory Id + */ + public function getAccessoryId() + { + return Accessory::inRandomOrder()->first()->id; + } + + /** + * @return mixed Random Asset Model Id; + */ + public function getModelId() + { + return AssetModel::inRandomOrder()->first()->id; + } + + /** + * @return mixed Id of Empty Asset Model + */ + public function getEmptyModelId() + { + return AssetModel::doesntHave('assets')->first()->id; + } + + /** + * @return mixed Id of random status + */ + public function getStatusId() + { + return StatusLabel::inRandomOrder()->first()->id; + } + + /** + * Id of random user + * @return mixed + */ + public function getUserId() + { + return User::inRandomOrder()->first()->id; + } + + /** + * @return mixed Id of random supplier + */ + public function getSupplierId() + { + return Supplier::inRandomOrder()->first()->id; + } + + /** + * @return mixed Id of Random Asset + */ + public function getAssetId() + { + return Asset::inRandomOrder()->first()->id; + } + + /** + * An Empty category + * @return mixed Id of Empty Category + */ + public function getEmptyCategoryId() + { + return Category::where('category_type', 'asset')->doesntHave('models')->first()->id; + } + + /** + * A random component id for testing + * @return mixed Id of random component + */ + public function getComponentId() + { + return Component::inRandomOrder()->first()->id; + } + + /** + * A random consumable Id for testing + * @return mixed + */ + public function getConsumableId() + { + return Consumable::inRandomOrder()->first()->id; + } + + /** + * Return a random depreciation id for tests. + * @return mixed + */ + public function getDepreciationId() + { + return Depreciation::inRandomOrder()->first()->id; + } } diff --git a/tests/functional.suite.yml b/tests/functional.suite.yml index 36b59dd11a..903177403e 100644 --- a/tests/functional.suite.yml +++ b/tests/functional.suite.yml @@ -11,6 +11,7 @@ modules: - \Helper\Functional - Laravel5: environment_file: .env.tests + cleanup: false - Db: dsn: 'mysql:host=localhost;dbname=snipeittests' user: 'snipeit' diff --git a/tests/functional/AccessoriesCest.php b/tests/functional/AccessoriesCest.php index 125e76e0d8..ea34e83d9a 100644 --- a/tests/functional/AccessoriesCest.php +++ b/tests/functional/AccessoriesCest.php @@ -11,10 +11,6 @@ class AccessoriesCest $I->click('Login'); } - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { @@ -53,17 +49,18 @@ class AccessoriesCest public function passesCorrectValidation(FunctionalTester $I) { + $accessory = factory(App\Models\Accessory::class,'accessory')->make(); $values = [ - 'company_id' => 3, - 'name' => 'TestAccessory', - 'category_id' => 40, - 'manufacturer_id' => 24, - 'location_id' => 38, - 'order_number' => '12345', + 'company_id' => $accessory->company_id, + 'name' => $accessory->name, + 'category_id' => $accessory->category_id, + 'manufacturer_id' => $accessory->manufacturer_id, + 'location_id' => $accessory->location_id, + 'order_number' => $accessory->order_number, 'purchase_date' => '2016-01-01', - 'purchase_cost' => '25.00', - 'qty' => '12', - 'min_amt' => '6' + 'purchase_cost' => $accessory->purchase_cost, + 'qty' => $accessory->qty, + 'min_amt' => $accessory->min_amt ]; $I->wantTo("Test Validation Succeeds"); @@ -75,4 +72,11 @@ class AccessoriesCest $I->dontSee('<span class="'); $I->seeElement('.alert-success'); } + + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete an accessory'); + $I->amOnPage( route('delete/accessory', $I->getAccessoryId() ) ); + $I->seeElement('.alert-success'); + } } diff --git a/tests/functional/AssetModelsCest.php b/tests/functional/AssetModelsCest.php index 32c1b6ef0d..072c2d84a2 100644 --- a/tests/functional/AssetModelsCest.php +++ b/tests/functional/AssetModelsCest.php @@ -5,22 +5,17 @@ class AssetModelsCest { public function _before(FunctionalTester $I) { - $I->amOnPage('/login'); - $I->fillField('username', 'snipeit'); - $I->fillField('password', 'snipeit'); - $I->click('Login'); + $I->amOnPage('/login'); + $I->fillField('username', 'snipeit'); + $I->fillField('password', 'snipeit'); + $I->click('Login'); } - - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { $I->wantTo('Test Asset Model Creation'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/hardware/models/create'); + $I->amOnPage(route('create/model')); $I->seeInTitle('Create Asset Model'); $I->see('Create Asset Model', 'h1.pull-left'); } @@ -28,7 +23,7 @@ class AssetModelsCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/hardware/models/create'); + $I->amOnPage(route('create/model')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -38,18 +33,19 @@ class AssetModelsCest public function passesCorrectValidation(FunctionalTester $I) { + $model = factory(App\Models\AssetModel::class, 'assetmodel')->make(); $values = [ - 'name' => 'TestModel', - 'manufacturer_id' => '24', - 'category_id' => '40', - 'model_number' => '350335', - 'eol' => '12', - 'notes' => 'lorem ipsum blah blah', - 'requestable' => true, + 'name' => $model->name, + 'manufacturer_id' => $model->manufacturer_id, + 'category_id' => $model->category_id, + 'model_number' => $model->model_number, + 'eol' => $model->eol, + 'notes' => $model->notes, + 'requestable' => $model->requestable, ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/hardware/models/create'); + $I->amOnPage(route('create/model')); $I->submitForm('form#create-form', $values); $I->seeRecord('models', $values); @@ -57,4 +53,12 @@ class AssetModelsCest $I->seeElement('.alert-success'); } + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete an asset model'); + // 6 is the only one without an assigned asset. This is fragile. + $I->amOnPage(route('delete/model', $I->getEmptyModelId())); + $I->seeElement('.alert-success'); + } + } diff --git a/tests/functional/AssetsCest.php b/tests/functional/AssetsCest.php index 52171f507b..5f44b8c08d 100644 --- a/tests/functional/AssetsCest.php +++ b/tests/functional/AssetsCest.php @@ -5,16 +5,11 @@ class AssetsCest { public function _before(FunctionalTester $I) { - $I->amOnPage('/login'); - $I->fillField('username', 'snipeit'); - $I->fillField('password', 'snipeit'); - $I->click('Login'); + $I->amOnPage('/login'); + $I->fillField('username', 'snipeit'); + $I->fillField('password', 'snipeit'); + $I->click('Login'); } - - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { @@ -28,7 +23,7 @@ class AssetsCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/hardware/create'); + $I->amOnPage(route('create/hardware')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The asset tag field is required.', '.alert-msg'); @@ -38,28 +33,36 @@ class AssetsCest public function passesCreateAndCheckout(FunctionalTester $I) { + $asset = factory(App\Models\Asset::class,'asset')->make(); $values = [ - 'company_id' => 3, - 'asset_tag' => '230-name-21 2', - 'model_id' => 10, - 'status_id' => 2, - 'assigned_to' => 10, - 'serial' => '350335', - 'name' => 'TestModel', + 'company_id' => $asset->company_id, + 'asset_tag' => $asset->asset_tag, + 'model_id' => $asset->model_id, + 'status_id' => $asset->status_id, + 'assigned_to' => $I->getUserId(), + 'serial' => $asset->serial, + 'name' => $asset->name, 'purchase_date' => '2016-01-01', - 'supplier_id' => 12, - 'order_number' => '12345', - 'purchase_cost' => '25.00', - 'warranty_months' => '15', - 'notes' => 'lorem ipsum blah blah', - 'rtd_location_id' => 38, - 'requestable' => true, + 'supplier_id' => $asset->supplier_id, + 'order_number' => $asset->order_number, + 'purchase_cost' => $asset->purchase_cost, + 'warranty_months' => $asset->warranty_months, + 'notes' => $asset->notes, + 'rtd_location_id' => $asset->rtd_location_id, + 'requestable' => $asset->requestable, ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/hardware/create'); + $I->amOnPage(route('create/hardware')); $I->submitForm('form#create-form', $values); $I->seeRecord('assets', $values); $I->dontSeeElement('.alert-danger'); // We should check for success, but we can't because of the stupid ajaxy way I did things. FIXME when the asset form is rewritten. } + + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete an asset'); + $I->amOnPage(route('delete/hardware', $I->getAssetId())); + $I->seeElement('.alert-success'); + } } \ No newline at end of file diff --git a/tests/functional/CategoriesCest.php b/tests/functional/CategoriesCest.php index 5420db7eab..869bc34759 100644 --- a/tests/functional/CategoriesCest.php +++ b/tests/functional/CategoriesCest.php @@ -20,7 +20,7 @@ class CategoryCest { $I->wantTo('Test Category Creation'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/admin/settings/categories/create'); + $I->amOnPage(route('create/category')); $I->seeInTitle('Create Category'); $I->see('Create Category', 'h1.pull-left'); } @@ -28,7 +28,7 @@ class CategoryCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/settings/categories/create'); + $I->amOnPage(route('create/category')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -37,18 +37,25 @@ class CategoryCest public function passesCorrectValidation(FunctionalTester $I) { + $category = factory(App\Models\Category::class, 'asset-category')->make(); $values = [ - 'name' => 'TestModel', - 'category_type' => 'accessory', - 'eula_text' => 'lorem ipsum blah blah', - 'require_acceptance' => true, - 'checkin_email' => true, + 'name' => $category->name, + 'category_type' => $category->category_type, + 'eula_text' => $category->eula_text, + 'require_acceptance' => $category->require_acceptance, + 'checkin_email' => $category->checkin_email, ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/admin/settings/categories/create'); + $I->amOnPage(route('create/category')); $I->submitForm('form#create-form', $values); $I->seeRecord('categories', $values); $I->dontSee('<span class="'); $I->seeElement('.alert-success'); } + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete a category'); + $I->amOnPage(route('delete/category', $I->getEmptyCategoryId())); + $I->seeElement('.alert-success'); + } } diff --git a/tests/functional/CompaniesCest.php b/tests/functional/CompaniesCest.php index b16a1ee4ea..fcd948df9c 100644 --- a/tests/functional/CompaniesCest.php +++ b/tests/functional/CompaniesCest.php @@ -11,16 +11,12 @@ class CompaniesCest $I->click('Login'); } - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { $I->wantTo('Test Company Creation'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/admin/settings/companies/create'); + $I->amOnPage(route('create/company')); $I->seeInTitle('Create Company'); $I->see('Create Company', 'h1.pull-left'); } @@ -28,7 +24,7 @@ class CompaniesCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/settings/companies/create'); + $I->amOnPage(route('create/company')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -36,11 +32,12 @@ class CompaniesCest public function passesCorrectValidation(FunctionalTester $I) { + $company = factory(App\Models\Company::class, 'company')->make(); $values = [ - 'name' => 'TestCompany' + 'name' => $company->name ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/admin/settings/companies/create'); + $I->amOnPage(route('create/company')); $I->fillField('name', 'TestCompany'); $I->submitForm('form#create-form', $values); $I->seeRecord('companies', $values); diff --git a/tests/functional/ComponentsCest.php b/tests/functional/ComponentsCest.php index cb48f0892e..038afa8643 100644 --- a/tests/functional/ComponentsCest.php +++ b/tests/functional/ComponentsCest.php @@ -11,16 +11,12 @@ class ComponentsCest $I->click('Login'); } - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { $I->wantTo('ensure that the create components form loads without errors'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/admin/components/create'); + $I->amOnPage(route('create/component')); $I->dontSee('Create Component', '.page-header'); $I->see('Create Component', 'h1.pull-left'); } @@ -28,7 +24,7 @@ class ComponentsCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/components/create'); + $I->amOnPage(route('create/component')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -39,7 +35,7 @@ class ComponentsCest public function failsShortValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with short name"); - $I->amOnPage('/admin/components/create'); + $I->amOnPage(route('create/component')); $I->fillField('name', 't2'); $I->fillField('qty', '-15'); $I->fillField('min_amt', '-15'); @@ -51,24 +47,31 @@ class ComponentsCest public function passesCorrectValidation(FunctionalTester $I) { + $component = factory(App\Models\Component::class, 'component')->make(); + $values = [ - 'name' => 'TestComponent', - 'category_id' => 41, - 'location_id' => '38', - 'qty' => '12', - 'min_amt' => '6', - 'serial' => '3062436032621632326-325632523', - 'company_id' => 3, - 'order_number' => '12345', + 'name' => $component->name, + 'category_id' => $component->category_id, + 'location_id' => $component->location_id, + 'qty' => $component->qty, + 'min_amt' => $component->min_amt, + 'serial' => $component->serial, + 'company_id' => $component->company_id, + 'order_number' => $component->order_number, 'purchase_date' => '2016-01-01', - 'purchase_cost' => '25.00', + 'purchase_cost' => $component->purchase_cost, ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/admin/components/create'); + $I->amOnPage(route('create/component')); $I->submitForm('form#create-form', $values); $I->seeRecord('components', $values); $I->dontSee('<span class="'); $I->seeElement('.alert-success'); } - + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete a component'); + $I->amOnPage(route('delete/component', $I->getComponentId())); + $I->seeElement('.alert-success'); + } } diff --git a/tests/functional/ConsumablesCest.php b/tests/functional/ConsumablesCest.php index d3490df9c9..efa40c88a8 100644 --- a/tests/functional/ConsumablesCest.php +++ b/tests/functional/ConsumablesCest.php @@ -11,16 +11,12 @@ class ConsumablesCest $I->click('Login'); } - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { $I->wantTo('ensure that the create consumables form loads without errors'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/admin/consumables/create'); + $I->amOnPage(route('create/consumable')); $I->dontSee('Create Consumable', '.page-header'); $I->see('Create Consumable', 'h1.pull-left'); } @@ -28,7 +24,7 @@ class ConsumablesCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/consumables/create'); + $I->amOnPage(route('create/consumable')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -39,7 +35,7 @@ class ConsumablesCest public function failsShortValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with short name"); - $I->amOnPage('/admin/consumables/create'); + $I->amOnPage(route('create/consumable')); $I->fillField('name', 't2'); $I->fillField('qty', '-15'); $I->fillField('min_amt', '-15'); @@ -52,22 +48,30 @@ class ConsumablesCest public function passesCorrectValidation(FunctionalTester $I) { + $consumable = factory(App\Models\Consumable::class, 'consumable')->make(); $values = [ - 'company_id' => 3, - 'name' => 'TestConsumable', - 'category_id' => 43, - 'model_number' => '032-356', - 'item_no' => '32503', - 'order_number' => '12345', + 'company_id' => $consumable->company_id, + 'name' => $consumable->name, + 'category_id' => $consumable->category_id, + 'model_number' => $consumable->model_number, + 'item_no' => $consumable->item_no, + 'order_number' => $consumable->order_number, 'purchase_date' => '2016-01-01', - 'purchase_cost' => '25.00', - 'qty' => '12', - 'min_amt' => '6', + 'purchase_cost' => $consumable->purchase_cost, + 'qty' => $consumable->qty, + 'min_amt' => $consumable->min_amt, ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/admin/consumables/create'); + $I->amOnPage(route('create/consumable')); $I->submitForm('form#create-form', $values); $I->seeRecord('consumables', $values); $I->seeElement('.alert-success'); } + + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete a consumable'); + $I->amOnPage(route('delete/consumable', $I->getConsumableId())); + $I->seeElement('.alert-success'); + } } diff --git a/tests/functional/DepreciationsCest.php b/tests/functional/DepreciationsCest.php index 2a9e5e1574..50c9ff0f99 100644 --- a/tests/functional/DepreciationsCest.php +++ b/tests/functional/DepreciationsCest.php @@ -11,16 +11,12 @@ class DepreciationCest $I->click('Login'); } - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { $I->wantTo('Test Depreciation Creation'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/admin/settings/depreciations/create'); + $I->amOnPage(route('create/depreciations')); $I->seeInTitle('Create Depreciation'); $I->dontSee('Create Depreciation', '.page-header'); $I->see('Create Depreciation', 'h1.pull-left'); @@ -29,7 +25,7 @@ class DepreciationCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/settings/depreciations/create'); + $I->amOnPage(route('create/depreciations')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -39,7 +35,7 @@ class DepreciationCest public function failsShortValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with short name"); - $I->amOnPage('/admin/settings/depreciations/create'); + $I->amOnPage(route('create/depreciations')); $I->fillField('name', 't2'); $I->click('Save'); $I->seeElement('.alert-danger'); @@ -48,14 +44,22 @@ class DepreciationCest public function passesCorrectValidation(FunctionalTester $I) { + $depreciation = factory(App\Models\Depreciation::class, 'depreciation')->make(); $values = [ - 'name' => 'TestDepreciation', - 'months' => '15' + 'name' => $depreciation->name, + 'months' => $depreciation->months ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/admin/settings/depreciations/create'); + $I->amOnPage(route('create/depreciations')); $I->submitForm('form#create-form', $values); $I->seeRecord('depreciations', $values); $I->seeElement('.alert-success'); } + + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete a depreciation'); + $I->amOnPage(route('delete/depreciations', $I->getDepreciationId())); + $I->seeElement('.alert-success'); + } } diff --git a/tests/functional/GroupsCest.php b/tests/functional/GroupsCest.php index 57d2e42db2..e820ca0bd8 100644 --- a/tests/functional/GroupsCest.php +++ b/tests/functional/GroupsCest.php @@ -1,6 +1,8 @@ click('Login'); } - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { $I->wantTo('ensure that the create groups form loads without errors'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/admin/groups/create'); + $I->amOnPage(route('create/group')); $I->dontSee('Create New Group', '.page-header'); $I->see('Create New Group', 'h1.pull-left'); } @@ -28,7 +26,7 @@ class GroupsCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/groups/create'); + $I->amOnPage(route('create/group')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -37,7 +35,7 @@ class GroupsCest public function failsShortValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with short name"); - $I->amOnPage('/admin/groups/create'); + $I->amOnPage(route('create/group')); $I->fillField('name', 't2'); $I->click('Save'); $I->seeElement('.alert-danger'); @@ -47,11 +45,18 @@ class GroupsCest public function passesCorrectValidation(FunctionalTester $I) { $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/admin/groups/create'); + $I->amOnPage(route('create/group')); $I->fillField('name', 'TestGroup'); $I->click('Save'); $I->dontSee('<span class="'); $I->seeElement('.alert-success'); } + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete a group'); + $I->amOnPage(route('delete/group', Group::doesntHave('users')->first()->id)); + $I->seeElement('.alert-success'); + } + } diff --git a/tests/functional/LicensesCest.php b/tests/functional/LicensesCest.php index b706a5ebaa..3bc523df60 100644 --- a/tests/functional/LicensesCest.php +++ b/tests/functional/LicensesCest.php @@ -1,6 +1,8 @@ click('Login'); } - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { $I->wantTo('ensure that the create licenses form loads without errors'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/admin/licenses/create'); + $I->amOnPage(route('create/licenses')); $I->dontSee('Create License', '.page-header'); $I->see('Create License', 'h1.pull-left'); } @@ -28,7 +26,7 @@ class licensesCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/licenses/create'); + $I->amOnPage(route('create/licenses')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -39,7 +37,7 @@ class licensesCest public function failsShortValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with short name"); - $I->amOnPage('/admin/licenses/create'); + $I->amOnPage(route('create/licenses')); $I->fillField('name', 't2'); $I->fillField('serial', '13a-'); $I->fillField('seats', '-15'); @@ -52,32 +50,40 @@ class licensesCest public function passesCorrectValidation(FunctionalTester $I) { + $license = factory(App\Models\License::class, 'license')->make(); $values = [ - 'name' => 'Test Software', - 'serial' => '946346-436346-346436', - 'seats' => '12', - 'company_id' => 3, - 'manufacturer_id' => 24, - 'license_name' => 'Marco Polo', - 'license_email' => 'g@m.com', + 'name' => $license->name, + 'serial' => $license->serial, + 'seats' => $license->seats, + 'company_id' => $license->company_id, + 'manufacturer_id' => $license->manufacturer_id, + 'license_name' => $license->license_name, + 'license_email' => $license->license_email, 'reassignable' => true, - 'supplier_id' => 11, - 'order_number' => '12345', - 'purchase_cost' => '25.00', + 'supplier_id' => $license->supplier_id, + 'order_number' => $license->order_number, + 'purchase_cost' => $license->purchase_cost, 'purchase_date' => '2016-01-01', 'expiration_date' => '2018-01-01', 'termination_date' => '2020-01-01', - 'purchase_order' => '234562', + 'purchase_order' => $license->purchase_order, 'maintained' => true, - 'notes' => 'lorem ipsum omicron delta phi' + 'notes' => $license->notes ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/admin/licenses/create'); + $I->amOnPage(route('create/licenses')); $I->submitForm('form#create-form', $values); $I->seeRecord('licenses', $values); $I->dontSee('<span class="'); $I->seeElement('.alert-success'); } + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete a license'); + $I->amOnPage(route('delete/license', License::doesntHave('assignedUsers')->first()->id)); + $I->seeElement('.alert-success'); + } + } diff --git a/tests/functional/LocationsCest.php b/tests/functional/LocationsCest.php index d8babf1e54..a5d233df3a 100644 --- a/tests/functional/LocationsCest.php +++ b/tests/functional/LocationsCest.php @@ -1,6 +1,8 @@ click('Login'); } - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { /* Create Form */ $I->wantTo('Test Location Creation'); $I->lookForwardTo('Finding no Failures'); - $I->amOnPage('/admin/settings/locations/create'); + $I->amOnPage(route('create/location')); $I->dontSee('Create Location', '.page-header'); $I->see('Create Location', 'h1.pull-left'); } @@ -30,7 +28,7 @@ class LocationsCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/settings/locations/create'); + $I->amOnPage(route('create/location')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -39,7 +37,7 @@ class LocationsCest public function failsShortValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with short values"); - $I->amOnPage('/admin/settings/locations/create'); + $I->amOnPage(route('create/location')); $I->fillField('name', 't2'); $I->fillField('address', 't2da'); $I->fillField('city', 't2'); @@ -54,21 +52,29 @@ class LocationsCest } public function passesCorrectValidation(FunctionalTester $I) { + $location = factory(App\Models\Location::class, 'location')->make(); $values = [ - 'name' => 'Test Location', - 'parent_id' => 26, - 'currency' => 'YEN', - 'address' => '046t46 South Street', - 'address2' => 'Apt 356', - 'city' => 'Sutherland', - 'state' => 'BV', - 'country' => 'AF', - 'zip' => '30266', + 'name' => $location->name, + 'parent_id' => $I->getLocationId(), + 'currency' => $location->currency, + 'address' => $location->address, + 'address2' => $location->address2, + 'city' => $location->city, + 'state' => $location->state, + 'country' => $location->country, + 'zip' => $location->zip, ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/admin/settings/locations/create'); + $I->amOnPage(route('create/location')); $I->submitForm('form#create-form', $values); $I->seeRecord('locations', $values); $I->seeElement('.alert-success'); } + + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete a location'); + $I->amOnPage(route('delete/location', Location::doesntHave('assets')->doesntHave('assignedAssets')->first()->id)); + $I->seeElement('.alert-success'); + } } diff --git a/tests/functional/ManufacturersCest.php b/tests/functional/ManufacturersCest.php index 4b7e54d5d6..119ca402e4 100644 --- a/tests/functional/ManufacturersCest.php +++ b/tests/functional/ManufacturersCest.php @@ -1,6 +1,8 @@ click('Login'); } - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { $I->wantTo('Test Manufacturer Creation'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/admin/settings/manufacturers/create'); + $I->amOnPage(route('create/manufacturer')); $I->seeInTitle('Create Manufacturer'); $I->see('Create Manufacturer', 'h1.pull-left'); } @@ -28,7 +26,7 @@ class ManufacturersCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/settings/manufacturers/create'); + $I->amOnPage(route('create/manufacturer')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -37,7 +35,7 @@ class ManufacturersCest public function failsShortValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with short name"); - $I->amOnPage('/admin/settings/manufacturers/create'); + $I->amOnPage(route('create/manufacturer')); $I->fillField('name', 't'); $I->click('Save'); $I->seeElement('.alert-danger'); @@ -45,13 +43,25 @@ class ManufacturersCest } public function passesCorrectValidation(FunctionalTester $I) { + $manufacturer = factory(App\Models\Manufacturer::class, 'manufacturer')->make(); $values = [ - 'name' => 'Testufacturer' + 'name' => $manufacturer->name ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/admin/settings/manufacturers/create'); + $I->amOnPage(route('create/manufacturer')); $I->submitForm('form#create-form', $values); $I->seeRecord('manufacturers', $values); $I->seeElement('.alert-success'); } + + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete a manufacturer'); + $I->amOnPage(route('delete/manufacturer', Manufacturer::doesntHave('models') + ->doesntHave('accessories') + ->doesntHave('consumables') + ->doesntHave('licenses')->first()->id + )); + $I->seeElement('.alert-success'); + } } diff --git a/tests/functional/StatusLabelsCest.php b/tests/functional/StatusLabelsCest.php index 0cce0f6d0f..cbe50f0f74 100644 --- a/tests/functional/StatusLabelsCest.php +++ b/tests/functional/StatusLabelsCest.php @@ -1,6 +1,8 @@ click('Login'); } - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { $I->wantTo('ensure that the create statuslabels form loads without errors'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/admin/settings/statuslabels/create'); + $I->amOnPage(route('create/statuslabel')); $I->dontSee('Create Status Label', '.page-header'); $I->see('Create Status Label', 'h1.pull-left'); } @@ -28,7 +26,7 @@ class StatusLabelsCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/settings/statuslabels/create'); + $I->amOnPage(route('create/statuslabel')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -36,27 +34,35 @@ class StatusLabelsCest public function passesCorrectValidation(FunctionalTester $I) { + $status = factory(App\Models\Statuslabel::class, 'pending')->make(); $submitValues = [ - 'name' => 'Test Status', + 'name' => 'Testing Status', 'statuslabel_types' => 'pending', 'color' => '#b46262', - 'notes' => 'lorem ipsum something else', + 'notes' => $status->notes, 'show_in_nav' => true, ]; $recordValues = [ - 'name' => 'Test Status', - 'pending' => 1, - 'deployable' => 0, - 'archived' => 0, + 'name' => 'Testing Status', + 'pending' => $status->pending, + 'deployable' => $status->archived, + 'archived' => $status->deployable, 'color' => '#b46262', - 'notes' => 'lorem ipsum something else', + 'notes' => $status->notes, 'show_in_nav' => true, ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/admin/settings/statuslabels/create'); + $I->amOnPage(route('create/statuslabel')); $I->submitForm('form#create-form', $submitValues); $I->seeRecord('status_labels', $recordValues); $I->seeElement('.alert-success'); } + + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete a Status Label'); + $I->amOnPage(route('delete/statuslabel', Statuslabel::doesntHave('assets')->first()->id)); + $I->seeElement('.alert-success'); + } } diff --git a/tests/functional/SuppliersCest.php b/tests/functional/SuppliersCest.php index 4e1ad04326..f2fbabea04 100644 --- a/tests/functional/SuppliersCest.php +++ b/tests/functional/SuppliersCest.php @@ -1,6 +1,8 @@ click('Login'); } - public function _after(FunctionalTester $I) - { - } - // tests public function tryToTest(FunctionalTester $I) { $I->wantTo('ensure that the create settings/suppliers form loads without errors'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/admin/settings/suppliers/create'); + $I->amOnPage(route('create/supplier')); $I->dontSee('Create Supplier', '.page-header'); $I->see('Create Supplier', 'h1.pull-left'); } @@ -28,7 +26,7 @@ class SuppliersCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/settings/suppliers/create'); + $I->amOnPage(route('create/supplier')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The name field is required.', '.alert-msg'); @@ -37,7 +35,7 @@ class SuppliersCest public function failsShortValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with short name"); - $I->amOnPage('/admin/settings/suppliers/create'); + $I->amOnPage(route('create/supplier')); $I->fillField('name', 't2'); $I->click('Save'); $I->seeElement('.alert-danger'); @@ -45,25 +43,33 @@ class SuppliersCest } public function passesCorrectValidation(FunctionalTester $I) { + $supplier = factory(App\Models\Supplier::class, 'supplier')->make(); $values = [ - 'name' => 'Test Supplier', - 'address' => '046t46 South Street', - 'address2' => 'Apt 356', - 'city' => 'Sutherland', - 'state' => 'BV', - 'country' => 'AF', - 'zip' => '30266', - 'contact' => 'Mr. Smith', - 'phone' => '032626236 x35', - 'fax' => '342 33 6647 3555', - 'email' => 'p@roar.com', - 'url' => 'http://snipeitapp.com', - 'notes' => 'lorem ipsum indigo something' + 'name' => $supplier->name, + 'address' => $supplier->address, + 'address2' => $supplier->address2, + 'city' => $supplier->city, + 'state' => $supplier->state, + 'country' => $supplier->country, + 'zip' => $supplier->zip, + 'contact' => $supplier->contact, + 'phone' => $supplier->phone, + 'fax' => $supplier->fax, + 'email' => $supplier->email, + 'url' => $supplier->url, + 'notes' => $supplier->notes ]; $I->wantTo("Test Validation Succeeds"); - $I->amOnPage('/admin/settings/suppliers/create'); + $I->amOnPage(route('create/supplier')); $I->submitForm('form#create-form', $values); $I->seeRecord('suppliers', $values); $I->seeElement('.alert-success'); } + + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete a supplier'); + $I->amOnPage(route('delete/supplier', Supplier::doesntHave('assets')->doesntHave('licenses')->first()->id)); + $I->seeElement('.alert-success'); + } } diff --git a/tests/functional/UsersCest.php b/tests/functional/UsersCest.php index 90de61ee38..b343184a55 100644 --- a/tests/functional/UsersCest.php +++ b/tests/functional/UsersCest.php @@ -1,5 +1,7 @@ fillField('password', 'snipeit'); $I->click('Login'); } - - public function _after(\FunctionalTester $I) - { - } - // tests public function tryToTest(\FunctionalTester $I) { $I->wantTo('ensure that the create users form loads without errors'); $I->lookForwardTo('seeing it load without errors'); - $I->amOnPage('/admin/users/create'); + $I->amOnPage(route('create/user')); $I->dontSee('Create User', '.page-header'); $I->see('Create User', 'h1.pull-left'); } @@ -27,7 +24,7 @@ class UsersCest public function failsEmptyValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with blank elements"); - $I->amOnPage('/admin/users/create'); + $I->amOnPage(route('create/user')); $I->click('Save'); $I->seeElement('.alert-danger'); $I->see('The first name field is required.', '.alert-msg'); @@ -38,7 +35,7 @@ class UsersCest public function failsShortValidation(FunctionalTester $I) { $I->wantTo("Test Validation Fails with short name"); - $I->amOnPage('/admin/users/create'); + $I->amOnPage(route('create/user')); $I->fillField('first_name', 't2'); $I->fillField('last_name', 't2'); $I->fillField('username', 'a'); // Must be 2 chars @@ -52,42 +49,56 @@ class UsersCest } public function passesCorrectValidation(FunctionalTester $I) { + $user = factory(App\Models\User::class, 'valid-user')->make(); $submitValues = [ - 'first_name' => 'John', - 'last_name' => 'Smdt', - 'username' => 'jsmdt', - 'password' => 'Sutherland', - 'password_confirm' => 'Sutherland', - 'email' => 'g@roar.com', - 'company_id' => 3, - 'locale' => 'en-GB', - 'employee_num' => '1636 636', - 'jobtitle' => 'Robot', + 'first_name' => $user->first_name, + 'last_name' => $user->last_name, + 'username' => $user->username, + 'password' => $user->password, + 'password_confirm' => $user->password, + 'email' => $user->email, + 'company_id' => $user->company_id, + 'locale' => $user->locale, + 'employee_num' => $user->employee_num, + 'jobtitle' => $user->jobtitle, 'manager_id' => 19, 'location_id' => 67, - 'phone' => '35235 33535 x5', + 'phone' => $user->phone, 'activated' => true, - 'notes' => 'lorem ipsum indigo something' + 'notes' => $user->notes ]; $storedValues = [ - 'first_name' => 'John', - 'last_name' => 'Smdt', - 'username' => 'jsmdt', - 'email' => 'g@roar.com', - 'company_id' => 3, - 'locale' => 'en-GB', - 'employee_num' => '1636 636', - 'jobtitle' => 'Robot', + 'first_name' => $user->first_name, + 'last_name' => $user->last_name, + 'username' => $user->username, + 'email' => $user->email, + 'company_id' => $user->company_id, + 'locale' => $user->locale, + 'employee_num' => $user->employee_num, + 'jobtitle' => $user->jobtitle, 'manager_id' => 19, 'location_id' => 67, - 'phone' => '35235 33535 x5', + 'phone' => $user->phone, 'activated' => true, - 'notes' => 'lorem ipsum indigo something' + 'notes' => $user->notes ]; - $I->amOnPage('/admin/users/create'); + $I->amOnPage(route('create/user')); $I->wantTo("Test Validation Succeeds"); $I->submitForm('form#userForm', $submitValues); $I->seeRecord('users', $storedValues); $I->seeElement('.alert-success'); } + + public function allowsDelete(FunctionalTester $I) + { + $I->wantTo('Ensure I can delete a user'); + $I->amOnPage(route('delete/user', User::doesntHave('assets') + ->doesntHave('accessories') + ->doesntHave('consumables') + ->doesntHave('licenses') + ->where('username', '!=', 'snipeit') + ->first()->id + )); + $I->seeElement('.alert-success'); + } }