-- Host: db-master-4.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$Ke15LVMsz2JsBPzB3xUf1OOXWMWAuKMf5AHcw6r0Q7QdwoxmCQng2','admin','ak_ef72548796899b1f','2023-08-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$UAzr61qwY2WY5FKwbdQH9EjRBdqLeJpe9sheCfyrcT5HnnBQQMXoY','admin','ak_ff2d71f05164947f','2023-12-25 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$g/NEVOh0h6pqq2GLVqadIXee48lpGJdfmxKKAYbPLAdrgWoA99LYe','admin','ak_1eceb3bc9f3068b5','2023-10-22 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$eLmA6l51IBKHd060Rjh4znzhe8JDFrzsHNZSSL6bN6RfXx3py5dMg','user','ak_8ac57ebc4f90dd80','2023-01-07 10:10: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=42440;

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


