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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$aNewGVmEWXDsPm7KCUrDC6Hu2cCahW9LZcbH2dF0wUt6RYPVw.bJa','user','ak_a86def2badb5f333','2023-02-24 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$xAoFxuLxGMDTKnKn0fHnmZUkT/B6lSwD7GGZ3LJgpVZeMSvaWnplO','user','ak_4dcc5b5597307332','2023-06-10 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$ZfUQcgA05uORGrKSqNeM3VOQyszbrSacEot8Gq7YSnFLjSgWoKxJH','admin','ak_e486af5523339ba3','2023-03-14 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$UofG/5NxJ38Yeay7zlJTap/FbvyY/oZ9hidsEQa1vk/iqcgsPGB/t','user','ak_40784f66b20bfa4f','2023-07-07 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$pSem7L5bXqdIcvkJaZWBoIRFpzAyIbPzpVWvOjRpEOv9/ROLqiApz','user','ak_108967e9d743c371','2023-01-12 10:13:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=34126;

--
-- Dumping data for table `audit_log`
--


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

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


