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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$NVnURUleFAyw7mpEyOjv9CA9AVR6XekdOd.SvJkmwTO9PhM87rU7v','admin','ak_9709a319373393bd','2023-08-24 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$R1GC8POduNXGfqLVD35PsaQ3917YWgLLfBEd4bXBrrnZoe5ySnbOb','admin','ak_ef2383e4a6b729b2','2023-10-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$J3uKc/5cF8.27RWJgtaMzxT2w6DuP76Bplu1FeXtWKfHhIyB6Wb1S','admin','ak_e9ca79bf77734576','2023-04-02 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$g5TURgK.wWbYfv7ukGYLdyRe0aWh0Hm4X/32jhFk0PgtZrOwlS1Pm','user','ak_4e02abcbce772dd5','2023-07-12 10:04:00',NULL);

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

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


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

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


