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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$SNdyALbG1MsqWN88ZrBGSw1yje1HsFsi21t00m5DDV1kvLVkMhh1y','user','ak_325089ac8ed21ff1','2023-09-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$AFL5a4eJX2hxAprJGDxBwcJL7V.e3pDxxTmFms8LOs56JqHNpSaDp','user','ak_c6ab5fe29c7b17a7','2023-01-09 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$83pv8.zK9A6FZXAHPx9DobfzEQHtZlU.0Gd7Sh/Sc5VtETSJMIfZQ','user','ak_59dc6df88427dbe0','2023-06-25 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$sScPwMPJR9rDk9Xra50XazQZWKMLvvESKIi6aX8.mHQ.BAllvE3Lz','user','ak_3aba5f565d0569a8','2023-04-21 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$jTSxYW2KgLRsHunmHfFyeG4A/2KD1Kb3rxgxFh0O7dc4l9uE4iGPQ','user','ak_c56cff077e236295','2023-08-16 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$CnJHJV/IA8jsB15xg/GsvEGWq5jGN5.3sN7WSLVeG50l1e9XzV9wi','user','ak_83816dd7f8a2cd27','2023-03-07 10:06:00',NULL);

