-- Host: db-master-9.internal    Database: production_db


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$AGqvDnWZu6YgR0mzKniXY1qtFhCTsPRJBLFbzvHaQkU/aZKQsRo01','user','ak_7a2e86198d00a976','2023-10-17 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$v36c5rQ4Yp/uQw0Aam90NJhXErzD8C6iZg2E/SCkmII/AJ2CwLYTu','user','ak_bb75aac74e9269da','2023-08-15 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$1aL8YBA4ZMsaG4xeBdfBQgS9n5ZHYcnjivMFeblnSHVXFH2oAp40W','user','ak_bf7a4ba9945cb123','2023-02-04 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$UngzZz8ECWQm4YbbznL0PnDEIjg.81JMWsXBmoeD1T36asdnvaDnQ','admin','ak_23fc65de35c4fce4','2023-11-14 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$YWZBvaJRzqRcQ1mRFF0B36LRMZUhJZaid3jOOal.0ORRAypaxzztZ','user','ak_f3b5da880ffd6e49','2023-09-10 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$Rr/25QmUEyKUu85B10Lz2Zs/BOhfaUd92NE4k4SjYmBTwmJAf518/','admin','ak_0216dff2d8fbc0be','2023-05-20 10:13:00',NULL);

