-- Host: db-master-3.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=22317;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$1B8fKedC2oYi7gWkMbDv0o74JFgVh8k/Bz3Axb0thvBtjHWadzQkn','user','ak_91198fa46e0be937','2023-08-22 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$LAiFuHyX/o5mqqRbSncC.t8jzp8uORnXhP2fdAyKDS2uuWVV.ycjj','user','ak_67c7e078e5e6b0ec','2023-08-18 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$cDpyla2M08Kv0/z2S8oD8F8QC5UgAVxdkDavuWZH1qnIbFxHZnB0v','user','ak_6feeda468fade722','2023-10-20 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$kUGhivEifYk7kgF9avZoDG59/ep2iclcy8lOFxrUnbxDNdEyXCYO6','user','ak_54f708fe4c8b58e3','2023-12-08 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$xZcG6lxrbfqHoABeAe6mieZX5M0qJtagDAAqlJWMV2eQJiH7K.D7/','admin','ak_f33bc1402f9b6781','2023-09-24 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$skMvWrhX9ECf3RfeOn6DiuEFwdHzbrgvoBIbqYrn8iCo941730CzE','user','ak_5f95ead437b0c45f','2023-10-02 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$UBC3Ttu88y5.OuW1FYpVDxJeg7KZ47bWSFTvtzup6mcPrvUfJRj7c','user','ak_c1c475528dc64d27','2023-09-13 10:22: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=1675;

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


