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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$wWJWS/KrcbHOzOdeHYLAbMRiczsdh8bEbjY2qBjFS3uQBd0sHOYkL','user','ak_f29459a26159b479','2023-11-20 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$rmCvIZnv1Skm5RX..eQ/hWtfHiQvCpbJtfas62PrVUkZRtLDrZmVM','admin','ak_da4004519af798e7','2023-02-15 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$pgCbgxL6hePiXmvyuwpBoUswjCK0ySVPW4q3JItvWJqi7eVs9yBeX','admin','ak_2a85d2f9c8a7e243','2023-01-06 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$delAR0jaxb9fWVFY/ekq0yS16MPC1U16abmM73khvE3W3hQ/uhrzV','user','ak_625e022935ced1b6','2023-06-13 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$DhSao74AJhKKxEPN70fXGEH5Eb0ttVN/H7ug5aF2jgeyEvV2Jp1rW','user','ak_ce7096d3bb9c153d','2023-02-03 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$Dq58StgWfFUsnLcV/igXkqez7ABPlOZodG7xur4G7NIM/.UerIbvW','user','ak_bbba566f42bbf9ee','2023-03-08 10:05: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=44929;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=3050;

--
-- Dumping data for table `products`
--


