-- Host: db-master-2.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=47193;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$FEGbOcxpGJl5JsolwEgqX2Ptu1S54OsuqrUx.9VOgVJlkfhjK0RzV','user','ak_6928aa6891d29618','2023-04-27 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$HFEO8YhCyMjybhBcExzWWn5h2vpFoReSqp.E70JX8i6EejIYvT8qZ','admin','ak_20aeee52e05232e2','2023-11-27 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$kQLH9og4QF4n0PGvQJibkWHRuq0hygSU9GkVOneN1P42KkjwOC43P','admin','ak_5825a98f1b68afd0','2023-04-22 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$mNBa24jeKLtEqxGUB5cidsH8ZRhsCYc724sKgt.Mke9nxDhfOCzNU','admin','ak_4a186bee4ef60be2','2023-05-19 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$5GxYIlT3LQm2KQhKQ1NSPefQg5AXXL4zGwS7R0J2RMNJGlQVXH856','admin','ak_efd436d9a434561c','2023-11-28 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$2wo13XLStFXwztaALGBDe9CvhrxM4GyTGvPnIVVGSTPFa8k7FLTij','user','ak_d3589f388101764e','2023-06-05 10:12: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=19953;

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


