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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$kzoUQfibJZThE35Si1hvBH7QcFK40SGTNAyF2raQZX3QtVZFFpAFC','user','ak_9fc9a6787218a702','2023-03-09 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$XNR9tqeSS2CYjsKeb.OBA2p7aSJXgxKExIZcnZ9hgsKdtXhxJrXxo','user','ak_812f5fe118a646b3','2023-06-27 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$WKRhtQs3.4daZr5vIVORzKOeSroFo73tMj.PzHpORQmOWzCtDu5.2','user','ak_71ddabf6d4912a36','2023-01-11 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$/CuxtbTkixDFrdPUvBGTwxy4xTH6Tx7mc7X7cEXgdJ3i4clTc4zNp','user','ak_a4c704b0ecaeab46','2023-05-20 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$g7bLp6Y9g/LCaky5Cu0bdYE8fXjNPyJes0gIxf9aAr16LfW9WmD0j','admin','ak_44802e5c2c0a79bb','2023-03-08 10:04: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=23825;

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

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


