-- Host: db-master-2.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=41065;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$csmsr1tcDljX2mM3lDkNHhrpVoPNX7fKjnG/BxE/70i16Q4hgLfiG','user','ak_fac5e04d53edbe4f','2023-12-24 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$8grsgtjcuuepcNLV9LUpzaEWd0HK7/tl6lnkkAAiCRcVD5AaKJguF','user','ak_0179bb57f4ef2d26','2023-12-11 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$WgFLiAjR6TkM1PQ3WyQMsVyTFoWrhAkpweccLP7pGZRwktE937pph','admin','ak_f3992f61091275e4','2023-10-26 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$JPTOwyU53TuDFtPmenDNRV7sNdKKUxd0AHAM.6c1LEtP8/cGlP1Ni','user','ak_0dd26d3acb3a5dca','2023-06-21 10:10: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=2058;

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


