-- Host: db-master-7.internal    Database: ecommerce


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=45843;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$miWjfF0j/SD8vCT3bdtsUGwysA.v07uzh/3SOKsv//tTE/kPKSMDM','admin','ak_2299460b050af346','2023-11-10 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$DCow6mGwClDcYYA/AGcCWovtsA/M0lHKTaZs8vEmgXo57/A63AaYT','admin','ak_83ef508c7da868f1','2023-06-23 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$ZAQGLTgwVJUcaaTLFIhMqeKpISBvq4vqu9LFI7mdgOuesjVxkummJ','user','ak_ce829ca2f5b5b0ef','2023-12-23 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$mHLRBCIopVScerrf0G0k9ROKU.frVWzmaIxvnRR.cGHuZ0EXIxPvY','admin','ak_8733e564f1a84183','2023-08-19 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$pIPuZInuzDNBk70SfVrXQaUDDEtWwDJqb1c2PyhvJfj1J1lOxNIAQ','user','ak_40089e167b48de1b','2023-08-15 10:11:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=32020;

--
-- Dumping data for table `sessions`
--


