-- Host: db-master-9.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=10277;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$kiESiBq6INZa6Z3tjcH8DzkEKn5d10MeLVm.y0J4JxRxskjaanKXu','user','ak_5b5e31c9c7cffb84','2023-03-09 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$yxwAbNr0f6Fyt/UXzUITUbcehJsetE6AYdigQ4dy8/KaWUP8E.BYv','admin','ak_1a1253ebdf3b0eb4','2023-01-10 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$EStwD3WyPWJzQtymzsjAQvXTwR56uaN.cZ/7pasK1EaF9weI9mSPD','admin','ak_9e79f01aa5b47123','2023-02-12 10:00: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=36151;

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


