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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$PlqVQp73eklU7nceNcWwlfvw2ABHqmJnEWqKncd.3Fu6l21.giliK','admin','ak_7647827f52d3b045','2023-08-22 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$3g4EL1uHO1ZPhL.uUIUM1/Z4czrptgiMnAIVACPq/dNH9DQjvPExm','user','ak_0fefb44cb2f867e3','2023-04-15 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$fhY1zt5IVPiV.9jojO/HQx1jQY4bJOYg1d/S2yw7j84ZvQLPnmMef','user','ak_35f4a93c768e2572','2023-10-11 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$1RsIhqnJVR17tfV9IzKmqz6mOugSAhLTq8f29oI3zlDIx3pIWioE5','user','ak_95e98111f8518489','2023-03-05 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$yqi0Wv1bkwY53xA9BVfyWmWsMK9LKDG8eYRf1Z5d0Fz6qK1DVZQSZ','user','ak_2cc6ada2d264be66','2023-08-11 10:09: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=3236;

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


