-- Host: db-master-4.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=39124;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$edJQ/Ly1AJqSn/XWFxTye.vI4gCr7HMtu3RbVJ0kDC6OCBHpxuFTP','user','ak_3cbd872b4f4da330','2023-12-04 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$WXP/tCe7efbAe5gQsmcEJJGvmv/4cRx4eDk6sePF6EnbOESmEjY0K','admin','ak_2d8d67fc01d955da','2023-09-24 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$U9fOft5nvrCf8upETr/rwm5cPYCCND5Oq9bcRHsBpCBa6n45aciRs','user','ak_e90398228f62d7fd','2023-12-08 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$F5NKO30tkoghQZKkXXoDavzA.cx0dg94U.WA3iSpwDg2kGw.5MsBt','user','ak_f1d66fc51a94932f','2023-04-14 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$LsA1teK2tJ8gSNktKifo2x7HH/WjMB0SUY0Lpo0Qf4K2IIXuPbXXW','user','ak_3cb88de916d655fc','2023-01-18 10:12: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=11724;

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


