-- Host: db-master-7.internal    Database: webapp_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=44969;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$14ViUMX44cYumgFpvnQwhaFxCm8asDop2PYBa6EC6FoxI6PphFyCc','admin','ak_31f5f2032e869c34','2023-12-05 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$gnDZI1j80QoB.Km97MIyhbeuxDGyTQlOZKwoA5ZapcngxTnkvCNqt','admin','ak_b2ca013326a049ba','2023-10-26 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$e/P5hN68szXP5fcel9Xc7sSei9e1IO/Jhl.9Riro6OtclD7zX2BDh','user','ak_f5c546006a766ac0','2023-01-23 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$320QimMJ5Oxo3.d/dNdC/RujVLiXwhZrqucuQkuENrfFtmgyKkjCF','user','ak_d4460b15304371b0','2023-09-09 10:16: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=38825;

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


