-- Host: db-master-8.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=17231;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$QdldUG6PHaHt3nrcDUHw/4E./tc8MGqPBLBFj6LbOodzbwry4enmP','admin','ak_a1e21b4bfbe7797e','2023-07-07 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$afI6E/pz6rPLfEnJsMGP61iExlH8Sk5HT.bNzf09PRVtjEcm7uL71','admin','ak_07bde8f0ccaa9441','2023-12-07 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$lMKR5dabbeTDbtOkq5BAVLFIUlO4Nlzzqr3IbXiWhH7bZJBsbncsl','user','ak_8de48f0b6fe22885','2023-10-18 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$BqpUdvvXatvyB4xWOW/Yu5bvy/C4VQlzIYCEchwbLaecpTtCOAIgN','user','ak_b3364123fadde140','2023-12-25 10:07:00',NULL);

