-- Host: db-master-4.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=6991;

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$kHjUDlsi.ze/7AoPpE0tFv6lFRdRniytuZ11EVjQOcwiqO8CymAHz','user','ak_23f4787729839519','2023-05-07 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$qdep9x4IQj6LI0XD0VCS8tKMTGSoNkrcze1RDB1zNOR4sd//yp5VZ','user','ak_9b0216867815a663','2023-11-25 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$GAuOU.wo3bmncEH8S6jwJDfmdnF8M3u9EHaTylWgrfJ7pim9sLEZJ','admin','ak_6fc49ebd4c3c2799','2023-03-06 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$69q/dN/5VoeNqm2IEzYWcdHyaQOVheMZ.MpPS92Wf3mGb9Spd97Sk','user','ak_8cdd8c02b6d64bed','2023-02-12 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$X4J0ZtOitx3qHYR/V0Fc95Vj/.iUUD7Osezkpt7aZljoLU6aevLnb','user','ak_5a7ff7a288d18f20','2023-12-24 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$hx8Y4r6UgycFu9Q8MmtpTeNuGywZNHf9LKL177TYPf8dcwqR574Un','user','ak_bee070cbc65af47c','2023-01-11 10:22:00',NULL);

