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

--
-- Dumping data for table `products`
--


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$Zvs/cV.WZ30Kb/hmhBJI2NhYginPx.JeWveDe3AHjyplUtXcbHgCK','admin','ak_d3a2db627ef2a241','2023-10-04 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$5YPO0ZWJSNF2TNDX8hyozZQUBGzWVFKkiQTSuuuSuR2q1YmPcPqqn','admin','ak_c3ad2ce1da1f49af','2023-10-12 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$0QFGeiRtIU2xu.c3WIflkBpdqULL/4TzfiDBP5rYpzQdQjgh8gWQZ','admin','ak_60d6bf911e95c886','2023-06-03 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$W5EtMF5DdSApwyOhzNyc8o3U2Hv3sbCSHTEO8UjY8p/cn395yZECV','user','ak_2a083ef99734ca45','2023-12-09 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$XfcseIfja6PvnVTZ32dbY0rRlQ1SKVbqLW3NvV3NfEePEdN5DkArA','user','ak_212c75c4ac55a871','2023-01-28 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$dA0GWTNdru05bJtJQN12TeOTKhKxpVFwF.CM8rTeotGMH91siBpau','admin','ak_a960ca26f1a1ac05','2023-01-18 10:14:00',NULL);

