-- Host: db-master-2.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$fwbnwnHrK2qIfMh9XRYu1g18mvhh4h94LnMUGKOQk7CuunzcQAZ4h','user','ak_0c34d9450894c1f3','2023-04-07 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$DEznxegiaGXLJ5msDShjXH9BuBT3UG8XgIQz9HvpadeTqYPVpMtkM','admin','ak_1581c9f2ae1b21f6','2023-04-02 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$D3sAept/5eNFTsuGgrcrtO6N9gxqKeCS7vFYjdTL951lse6fjW588','user','ak_a9fee817847066ea','2023-03-18 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$L6ysoB/DL1rAP7zOxFeK5RU.x3gOVXx9IcOHK5shSaCXex9timYnO','user','ak_fba4caba128119da','2023-08-21 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$TrZGEeWFkmimx4KGNv/uSFX1cJ5W0vAKeC4UKLnTPfwjhhk0r.qsU','user','ak_29f8dc5aaf047136','2023-10-25 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$ZI/p7Og9x88gOHNtswC3b6W98/ZLv2sJZjj./eEu7kTSmtfnsZfpR','user','ak_03c6935faf5d1be7','2023-01-11 10:16:00',NULL);

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

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

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


