-- Host: db-master-1.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=29609;

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$jm9lAG6hZQHrTkGILme5B3HRDMws7X.pwUrHAggoHcVQhmkFU/tKx','user','ak_5cb31c77d4934aca','2023-08-20 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$xYk1.AI89V2paq/iym0X7.zL3EGgVZOqFN.aR1S0iUfucWEuYC9YN','admin','ak_3054990e7f95f449','2023-04-23 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$ftPKonH9K9ROmHtPY2YTN4iList9DJR4W9ScXevA9zEQcqD0qYATO','admin','ak_cccdab1c3c43cfa4','2023-10-24 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$mtjZxJuEcYGKl4Qcv9sDCbXJnQ2X8GMq/JwrbkmS5PiGquXUDe9b0','user','ak_21bb0e0c6529a46f','2023-02-27 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$FipvyIjc2uHQSwa6C4hqlq0SgX6WvRJifkcv9zYpgR2jnTlayXmnR','user','ak_78fbd8972a620e5c','2023-09-05 10:08:00',NULL);

