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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$nhRYx2X/R5QO/3eHFrb5xPzf2o6qKlD.mJgMAx1Z8x6Iwr/iAxTJJ','admin','ak_2a9143a153690742','2023-04-11 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$GD6BUBEH0GRaFF2MKMcQgjTF9tGriYMoso/4a61iBYfmkKUPqnX55','user','ak_066f08b1908e732b','2023-04-25 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Sjk.Uk.cFKB85HQH8AAP3yewm9o58Ldi/lgFNFxo8TX86RRzRHYdO','user','ak_138602dc7a273628','2023-11-16 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$ldTyOHVCn1RuddjY51ONQVqzng/Oe/YjDoxYyMhTBNhB/z495avFL','user','ak_952f5e977b76c7d3','2023-11-01 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$l17jiiyTui769Q4e/pNtcfEJ26EXr68RYCLZqjHbxZWXB2jx86TDB','user','ak_ac41e60478082d5b','2023-06-01 10:15:00',NULL);

