-- Host: db-master-1.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=44193;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$UNyDiC5S.jDZPFfVrD1CIpRobSOKKNw2posWyydQYwLABDtycUZPN','admin','ak_8fa9d44274c2f3dc','2023-01-26 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$aXsAigj4rZo8q93UsPQ.fTBNWVDMaFpOSlIdDGKhfPuIpLPQ5TEwE','user','ak_7acc4313ff3e06e1','2023-06-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$JtmrKm.2EH.RgjgyQgS1QqDVtDbk3klP0tAc.ZlNmgpswZtsVK98o','user','ak_eb311839d3b5e3cc','2023-08-27 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$/pgQCykKxAh54/OVli21gLT35ik/8uczvOZF89DRUT0I077RKTerm','user','ak_0701954578000b1f','2023-10-14 10:07: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=3984;

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


