-- Host: db-master-9.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=45065;

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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$WIJ2BWC3l2B3/Dbh5CFEwYXB.TkQEyoWJyTWWOPdovDQL5qHxn3Jc','user','ak_830ed9070336dce8','2023-02-19 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$aWSFNd0PONFMSVzV/QDvyYcTVhnC351GkRUOsdAdTyU0DGIOtjm7r','user','ak_28e1b36a126d84a3','2023-08-21 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$qBkRIewZh89rHJn/FkjdnzS8TzFdRULQBViyE9B7Xizw26IeVUaaP','user','ak_8b5602fce6fb6b09','2023-07-13 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$xoZsonpQkiXh3Vvh8SnD.AyqJoDbYUh8wFPW2DAgWPCeZA2LAqMHz','user','ak_87aa62103d0a95c6','2023-05-20 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$evEJ.eHoQfAlYZNstTgqG.bXy4eMeKSdsn1zPTyNl0YfWHI5ZeDGa','user','ak_a7c52b9632993a61','2023-06-01 10:14:00',NULL);

