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


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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$U6Er.p8avG7vN4gzdVtXLg253FzhjvN5zvaqHiBB6nY.7rOKU8rj.','user','ak_2b03b69a0d22bc73','2023-02-21 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$h7RxG/dM1XDlAgaTcsAMCe8kgKO9.DKt62qMv5T9cbnTz9UpQkDXv','admin','ak_e68c56112f80f950','2023-05-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$lHEWfCLOGfja5t2Sw6CZVW1CpCFBhFxAhdE1f5fAexHe7pz7MyOJF','admin','ak_06de9b47f00ed1b0','2023-03-09 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$eymG6.4C3mDA5YxRMuVKbv3lKnEYezUFjmRWiidg8cdCLSck/Oeip','user','ak_74aeb6004bb8aa0a','2023-09-12 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$dffyPT.BaHB07D39RfCyy8cKK9uoS1jbk3q3buef9752.jkC4W978','admin','ak_cb1d4ca01d49e585','2023-02-28 10:05:00',NULL);

