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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=40304;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$UocCD4M8jVyEqggkdqcdpBzBG9w.Q9CvupmquQ8GHyjSX6kDvvtuI','user','ak_77aa1185b3d6b1c1','2023-06-23 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$c/16E4.Xo8FXTdQGsnOeq21swjXCtLalajRKoH/ucjqH9u5wmazAr','admin','ak_672fbe0f1965769f','2023-02-09 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$MpYgEhUL/fE/TCwambxKjx67Vtu7wTphXzVeqxtk6/bMCLRPEW6Jx','user','ak_327e44ffe08ade92','2023-04-19 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$GKZyF/wr1UCQKxgMko41d1Eb/OtviGS0VafVMpflc9p2tXj4VXoXF','admin','ak_7461c8cad8373326','2023-07-16 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$jUatK7z6sz69L8gBJuLM6vSMYXPXibNdSrkZrbGUlDHgx.0U0CQV4','user','ak_358008b4659dd1f0','2023-08-03 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$QjUsl.qC057lMnCl9k5SdhMPSU6YizydiMFSkMK2q5IsVYw72p8p/','admin','ak_1bf406f807ec9b67','2023-07-06 10:17:00',NULL);

