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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$x.QECg.R477amxjOyNaRswB.eydGQH8TNwrivJTWQ9Ikj/AcFnhoe','admin','ak_f6f488a769f619c2','2023-04-21 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$zCrA8eEWkiN.UFZpRTx6PVsSLAAzValimqkEQh6S1bcb/eXb4QhzW','user','ak_6812b64dce03626a','2023-08-21 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$/ywOhOAAeIZMiZ8Mmi/jBGHz4ncpg1yDHfzLcZbWSpi6D8ymMt8fe','admin','ak_d5729976532376d9','2023-11-19 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$jfV.1rMiQ/UGBijK99zQ08E7qF6ZuFjN2UE8xyy.p10Lauo871xGd','admin','ak_795e53624cac866f','2023-09-11 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$Sae559s83fyeNcyvJYTFZVvWG9vk48b3Gl7VuK7uglu.5dKCHvRRw','user','ak_9545a9540a7f2ba3','2023-05-24 10:19: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=5495;

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

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


