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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$nGXeaKvgFe6VufmDkwrgEJ6MG192t8Vo3cDUe4BiMKZSclW3UtaKX','user','ak_a4795394620207eb','2023-08-10 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$T3GR6VdNo/Ot2fpm9Bw0zvzsUAA/fM9xmTL9c9mG4.3lg8amgouAv','user','ak_d6016399384618de','2023-09-17 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$AlicFRGCnO5GEtV77fEHEBCqLAFzsVs9w7M.hskYkXqy9G4/1cFUO','user','ak_0d99572daacf0895','2023-07-11 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$eAhyG27f8nNLjQbE28U4P8c2uiYppJapjR5uCEV3vzILYDQjlvep6','admin','ak_9f0621a5abe4b132','2023-08-20 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$YfMUIfe2myjGo3RtLNchWfR/iWRcJBiMudYpLBjpPbRhH0788JKwW','user','ak_78c44579f9da3f7f','2023-07-17 10:22: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=29256;

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

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


