-- Host: db-master-1.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$RVHa9rRuDqRdVbbLwA0J32QW2zH3cgKL/JipsshtKklseankbrk8l','admin','ak_79bcaad3735ae5dd','2023-11-15 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$ARJrSkZykFAHza.e1j/Ysk835IYXe0gp6Htr1iIWZg2MOUrz84r87','admin','ak_3e44c810967c52e0','2023-10-24 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$rkpS4r.EfqfTvW5aBxSgkQ/hmfzAmZnCkCod30aAnGXX3i1hJMPQ6','user','ak_80416742c00e45c5','2023-11-02 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$d47O20DCPM7/8aYjHU3YGBMK8sc4kFGKJFHXX8OTsLxNBtrwy0d7k','user','ak_858cb9ab08555f9e','2023-04-03 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$UtoQVHZ7lpcDcSKAIjdmV9y1lKlElh0jjAcjR4uiNxO8q8o26VtuR','user','ak_4cb040b12d335cb0','2023-05-27 10:08: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=15488;

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


