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


--
-- 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=37556;

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


--
-- 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=18637;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$ul17bAvcl/vqhrCPJQlkjeJuhs/eL3ldsGVYwC7BX/7PN9BDbC2w4','user','ak_2fc958bb4273c122','2023-05-11 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$4fDn4B0VYG1gayKqBeCBwnUd0iu8qnbYnc1fbbFdgEV4L8w4FBuI3','user','ak_6dd348a2ad07f1c1','2023-07-13 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$27HlVJt0e4YRSuq/BBVNUneGm99h.Yksu74l4qXhuuBh0hQFfx8tC','user','ak_9169187162e74208','2023-09-02 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$0L.3v.pYQe1TQOTjOlYFfBtb0iMOyLTB9i6fIT2c18rZvVW/0jzEH','admin','ak_4ebab466becb4342','2023-04-28 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$ddXtp3s4cMcdW1NMRTSR.lCfImhJRni.fNo6UU5FQNq7DwG2NGPh1','user','ak_ca47298978977cba','2023-09-16 10:01:00',NULL);

