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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$6Vs12YsAgGr1W.GHRJIVeEc4ELiJN.T1jOICbwpO1SoUgICLwkfzV','user','ak_c99d742a28e4cd82','2023-02-24 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$ALRxnEJExD6MjwLvWGtn2mlBdHybpOQuZGJz1OG5qlp9RngyAG4an','admin','ak_f8f9592295c206ea','2023-10-21 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$T2IoW0f7yJLHCTXmLUV9fLn1WrdvRSXf0BjOFFZW80FSewulRC589','user','ak_8aad89b98eeb7aef','2023-10-13 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$5dsU1VUqXmYTKJkky5bHg20oy3O37ZAU3L5ElfiL2vp8yrvkhCyK4','user','ak_e9435f9b74d413a2','2023-08-17 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$sykDX1UKDmcjZuirWQAAdRBU7tP2.iXn4GDgDfXCb6p2vE3XJu/wz','user','ak_5de4c25ab3a97326','2023-02-15 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=12319;

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


