-- Host: db-master-2.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=20209;

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$EcC15md1vQmOnumqMdZq/MpE.OHrwTVWR./D1dvuaoXIxJ62uqhEj','admin','ak_78333d2c508b5bba','2023-10-18 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$kGu/L1V9c89FL3sFe5wiMIDL4anmiR/Aud0Ti8cREGAUyCsXPurHw','user','ak_c9530dd49f691e50','2023-08-23 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$DdjRSgu.BDaR66gy7ZwwLWYiacpzB24bFOzhUTdIUzetG1DO12uut','user','ak_424de8d01c58b95c','2023-07-02 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$8EG4DyD2rQTMx3Fbupjvf5tZEoHEzHV895Qj/1D/xdTumhhUyFJp7','user','ak_5858da22bb068899','2023-01-26 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$QsYnkoTaW95ui7V0ErSGZ.GVe31q4FhyynHrDuFD694ccwVML7gpZ','user','ak_b37ea6efd12c330f','2023-03-23 10:11:00',NULL);

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

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


