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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$abVZBzqohU2aorb1Dmyg.eczigLGF32CpQvfE/Hwbz2tPUdwLS.22','admin','ak_5f5a783269c56a9f','2023-04-25 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$md1D2Ixsqnv9IPTwfp7u40i5kLoEFzj1uXHjlQto1GE9je6WoWHVW','user','ak_109343c60aae0c96','2023-06-15 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$/wpgNq7VegiXGvQ2O3yF98zEHd5zw.zou2tlYeqhIXx7O5B9lFZaf','user','ak_e1bbf25a5ca2b691','2023-09-19 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$PT.B.wWCQlC.dXQwPt2WCGXSZkM6s6OknbM/lkHTzWswRvIsk5DIt','user','ak_84b4673e442aee2e','2023-06-23 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$/gqfIRGO/vxli.b3cOQXHrAzj6tZ5UN/EjW/DrZJxLueFyB.aTpq7','admin','ak_8cd03a0c20a83ef6','2023-04-21 10:07:00',NULL);

