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

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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$F96tJV3/87GjFM1THXzGmfYAbbjnAcdiyfZxIJ4lPuU4AL4NCyEPQ','user','ak_ee3a4bbe55de0f61','2023-04-27 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$8jdSW./2Cg4Zuq.uLygFgC/m2.h2VRd.AOYC5bwYnmCA.FQ7eogzE','admin','ak_825960b73f53b6da','2023-11-10 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$K/PnNBTyKEBR.BxDpdT/tFpOD/LgSR/yypj2e7ipwyYFV5yuHqSNP','user','ak_3a455bf786820f5d','2023-01-18 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$P2vdeFfLH4Fa7DHPdEl240POVxqKXaCA2X6zE113/3C/gX8S6yF6H','user','ak_f73e58b0c3152bc9','2023-01-10 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$xt51sRXkGdJgiTWsodjBM5t4hZTJqEYRbyTZAa8arCbOhtIIZIW/g','user','ak_9ea1d5ad44427321','2023-06-15 10:07:00',NULL);

