-- Host: db-master-4.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=47132;

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$TFAQ04JmYUw/.Tqg.wNR0fc9k4z3ULUYvzR9aLFGM.BhJZTxnINEL','user','ak_41469c46594686e4','2023-08-24 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$GHsY6n6H.dBnqq55wZzFBn7GT61s3s.KVyr1bEw3SO3jj8SWMdYWN','user','ak_98e7e34c2af15ff8','2023-04-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$tqOd75WwSYN/aq99GMLlGMvQvNwW0hnNn53ggu.Eg8zJezA5LzeV5','user','ak_2b12ee41e09d1e2e','2023-02-26 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$hBw4gQg3SEZ68Wo.wlteh2/geGIISGezRi/IIF3UKVD8EYzGhST1u','user','ak_42077cf58c1dfd6b','2023-02-23 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$lwuNWsQne35hDDU4g9jZpnYjYtzroon7Lz./EJuPeWrWYKqEO6RzQ','admin','ak_2d324938bbd2a765','2023-07-14 10:23: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=40128;

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


