-- Host: db-master-5.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=39294;

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$dmupSzZcOFYFyJmBygSduPniT.Z5t5Szn5rnn7jJEkj.f6UK9DR9.','user','ak_85d21aa9bd3d6020','2023-05-01 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$/opCJkpBZwhlgXGn7jwsTP//0SNn0gv0JRmiYYU8.HFpPGBxgWN.k','user','ak_f0e8bcb1bac5499a','2023-10-04 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$gU1XJ8BHyp1e0x4gn2kmIHiJcu/PXIsgY.mGHijxDZ4X/jxtFMmKj','user','ak_05f4d0387ab836eb','2023-07-22 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$QGlrEfN5mtOrLar3B10Cdb5UnAJ6DtbSioksOOGjxda6WQ.EHEz95','user','ak_ea93a3ea3b797cb5','2023-11-14 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$nObWO0HCyWAJjeiU0uRoGixj0aLyJyGoPW9a9TSAuX1QVn98i8YNv','user','ak_89a20ec9805d1804','2023-08-25 10:12:00',NULL);

