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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$8oje8Vn0JvOt2BLZJhbKVNGwZVmVRROp2vnhmhCfjpL7WfqufSbBn','user','ak_48fe903b12452456','2023-08-26 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$Y64qqNj8iYn5TQi4FBP7SVcwhGKj8JzJ9Vs1r8Lrfzy4AvQXGFzA9','user','ak_1b03ebab936c13a7','2023-01-13 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$vPyVW/2ZtVT2vEik0y.ZRY.wlK/sCRXQeElgT1NrsUY5pqiAI4/ZP','user','ak_0c76698b6142c33b','2023-12-25 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$/YF/4Y6w/mclvmBjv61uXJsQh.gTExfzDKl7bR5HxEN4/hHOB8ZrH','user','ak_5971290530b2e748','2023-04-15 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$/gn0DVZ4uUkKqYud/39eoHOyIeJkKydHI6VstTAEPYgXraP1NjOOd','user','ak_bae122fada6f38c4','2023-03-28 10:16:00',NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=1865;

--
-- Dumping data for table `payments`
--


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

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


