-- Host: db-master-6.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=17680;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$X9N2WCRCNFMJC6CuOGv1kKHNwr4Cnk2B8.yZpGEpJl3unCZhVaBeZ','admin','ak_0ba5aaaf11fe3780','2023-02-12 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$uJblEYTfkMWixeDMyUSkj02swYWRsTLZcSE19N9xM5oJZvzW0sSr/','user','ak_48545f066c97b2e9','2023-04-18 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$tux.YZoksnuAtgx3Ezx80NBlUKn3YvHGhMaSgda1HxedAta74Ky2k','admin','ak_5af53ee82426833f','2023-02-24 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$TlI6pogvuOM7dcEbcok5Df1eWrCZhyf4AeTFsgPwwVs/HetzDaDn4','user','ak_bc1413ad3d18d690','2023-09-27 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$HFv7hgTbHi/XVrAB.sxb0rr36ndyJslgF5pYNL9VPfLsetzNPCo7C','user','ak_8993c3c1438519f3','2023-05-15 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$RwTwgQSEr9CLDOTtO7Hr78XviUsQoSDk0/ScfrObXqvpQ3RJGUfBp','user','ak_3a6a8f458180818b','2023-02-09 10:17:00',NULL);

