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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$sb5Ai.I7AvyoHlUHtOGskawvawftzEbORbJCM9rKXgfyPKKasAxeG','admin','ak_c71d7776699e57f0','2023-01-18 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$P1aOqWvROBDsdDeNEFg5tmc2uxFN5qRgUaiL9jTDH6MB5hK5OsMeX','admin','ak_d2cf4de8e8831b38','2023-08-21 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$i4.JA4V52FnAD.VZA9SpIc42kHB29ViyRW3aKF/CQhC3BatQ7kPo0','user','ak_651a5b049870c68d','2023-03-19 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$XKHs2ZmpAd2hHK3plJ34lEoeXKyalsgHgwM5V5T4bX9TpLSYbU3bW','user','ak_0f6012cb1536dbf2','2023-03-04 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$x/tnqaJx5OlfHjruG8hB4fvJJBvLtOaEtcmGiux3oQHql7xZthVgC','user','ak_1de07c54d65e0129','2023-08-12 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$D5S2xfa00ZY8db8btkhjncvsywSC9dspFXwPkGs9i5MUnCl0Mnkxn','admin','ak_6cf8941584bd6e6b','2023-11-24 10:20: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=32086;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=27889;

--
-- Dumping data for table `products`
--


