-- Host: db-master-6.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=12176;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$AewZlWGEWJ88Y.WvSH3rvF/Eqc0JoAeSZcCP4MgjxpfC.Rp/qlSg8','user','ak_268470e7246287f2','2023-05-16 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$QtxrVxGCha42bQqQQR2a08/6Cmt3JmwYze2JcpvQTo1U1QFWx7AdY','user','ak_862a66670ee422ca','2023-07-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$ra6bUFLbaK52jBHHh.go6SIO8bSHtfwSuzNS9n3sqNvn2Tw0FuDVk','admin','ak_8eab4154e8012e51','2023-07-08 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$l/UcJI1MllrgAiwIGAVPJpuvtcviq/WEMLZ1yec7IrP5xe56M7m3W','user','ak_e509f9a3d9be61f0','2023-04-20 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$Ye1YY0uW4GstR0v1syDHfbDbkAd.dK8zdMegjhNMHygTOEVGAnPaE','admin','ak_9fd2882ac81a61a8','2023-02-26 10:06: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=8892;

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


