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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$oXcIfqnmOQQkNEAkF9yV49z6FMWWebxVo/y2rnSLdIXkxAe.akjco','admin','ak_ce3619612428b2e6','2023-07-25 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$OBbfAnsJQhBotFdTMrnclroCe1YI4I5snG2XTu7DNAPe0357d6iBt','admin','ak_0ca74fb9087e0392','2023-02-13 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$tLkqyHw7f.5wUS47Agx4k7jUWfmZQ3ssFPE0n1ewEocrDh/uHdQ8K','admin','ak_485dfe25745d9e09','2023-11-22 10:05:00',NULL);

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

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


