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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$xLny0WJGLvREU..fyjeylwK3dT7EIW4K7HzquJhxXy/NbceLC8Zte','user','ak_1e8780b18a8c5236','2023-07-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$J8VTX39bVMsyJsJaDxdKUnn.9K7fMt3Pw5o1BIUqNRjSYQ9uoV7kK','admin','ak_2f384aad33c758ba','2023-07-15 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Ve1U/w1lpi.DwEH0F2Wd/MX2fv4AOtCOGDqHXF2HSyUsfR3V4f.mU','admin','ak_ffba032c18916f72','2023-04-27 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$HHywap1aAGEmH2UJtwe6aYEtrAtNMQq5hM4Q6UuJhenqC8XksWPUk','user','ak_80800bc8d3200b45','2023-10-24 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$V..XPJR4qHc9znvBUq4i2KOss8rJtXjJCZtmsAzWu8fOCwiyfQL0L','admin','ak_93082caa25826a6e','2023-09-02 10:03: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=42172;

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

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


