-- Host: db-master-5.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=9078;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$V31x3dS0H9tLJJIcqYKBF2/H61q/oGMY9YneV9PNBWYQ0j8esU8ri','admin','ak_a4808bacb2825570','2023-02-26 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$tsP8TdKnNyxOdjjXl/nn6liODUjc5DCdlwXqBYGqyoO19DThKijAW','user','ak_9c175c9f11d5bf73','2023-11-02 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$4aRS9N2TCrXxtrL2brPizJW8yAhZFqWIYx4eG9TnFgLLn7eL8QyrK','user','ak_7827b0123b023f8f','2023-05-13 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$UaNM0nq5806tfbNz4/esniZJ3xfTSzjHFonA5QKoz7Oh14hxhJTUk','admin','ak_82b6ccfd137be499','2023-06-17 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$9flcWDVjBJtGy3McZFPHlDKvw9Krxfy2ZhXIsfMP6WfD7raAZ3qFO','admin','ak_50900c4c72fb7b6d','2023-05-01 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$CqEpeLkvW.KMu/Dwbolv92igQN71qeb.IW8mpzBIsI3CqIiWnhyt/','admin','ak_7c307241ac4b2c2f','2023-12-23 10:01: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=4150;

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


