-- Host: db-master-5.internal    Database: production_db


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

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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=18859;

--
-- Dumping data for table `orders`
--


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$zmy6TAiDlc.WiV2NzWizn49tHKfMgXip3zBmooCZ9I9yELQGktXLh','admin','ak_8ccddf3a5c4492b8','2023-12-26 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$cKxHjtm80B/AW8jsGYpbc8JBTEhOfH0JYpLiKrCHEsQcTfHFAsC6J','user','ak_ac70fb713b92800d','2023-09-22 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$SY1UE2xdlHCs6zu7pCVPwzFCVQ1MDdt5y0LyikAnGKMyaxSyJ/IX8','user','ak_bb5188d19d39cdc2','2023-12-28 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$bH9pNO/R7vWk/NYLptFbU4zgoygsh4/be2iw0TSmODneoLZcRJeAq','user','ak_e596d93fe454d4ee','2023-05-10 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$Ux1AN26dUcbKyqUneXtLNvuW3Dj1Jdri6HynvhWRdf/c9KwgPyjl2','admin','ak_222902343f892cda','2023-03-28 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$mcEizMMmXCL8cONrMYnEuMp5Q8qnj18M/ISNzktOXZ.4LuKGIcvco','user','ak_44f457dfec7adcac','2023-12-25 10:22:00',NULL);

