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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$VXGg48o6wGNyJHcl/gNb/VL8Fw048UGas1x0e0bgFOQTwDakSS9K.','admin','ak_c88dc58f4479d561','2023-09-21 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$Bc0WeN2h7ZG8c849SvMCWoKGsoeDkWzaORbceRHEWHBr8rwjCpZNm','user','ak_1562d23ba53321c0','2023-08-13 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$SNs8JIOFt7m1eyALgnIby7KA.9XP4J0YppigdgNaD.4QQ6LcI0/bf','user','ak_737dc8d60f9c6abb','2023-08-28 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$XFsdDg1Bten./GMwrFIagTPi5PC7z7exyLba.ufP9R1ud6RrtribF','user','ak_b6fc31165c026683','2023-02-05 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$izJknESVMbCAlmTMZaEeyU5HmM.agj8U5BUQG9ZdqCwCooyOXv.3s','admin','ak_e2950446ba41c529','2023-05-24 10:15: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=22868;

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


