-- Host: db-master-2.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$aNDnXFaIezeFG6JTaJ7jWwZPv8nTbAJ6Kl8abfHWHB8YkPiBB7qYx','user','ak_8c641dc023e28496','2023-08-18 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$369iU8keVDO1BPC65sM3HrJkHzAgcUZg94GU8S/R9oMzjzkRlKbzJ','admin','ak_a0d55628a271ceb7','2023-11-10 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$vEiguSNR7VEGnYw9DTd317OfgSanytx7h.RefeJ2mBUP7tGegqz2p','user','ak_d0ac4aa5047337f2','2023-04-12 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$IgyRab0y3wRzI2EmLHRJeG3YdDM2yyKYLhTA.UgrPnf6JLGJ8g6WX','admin','ak_de063fd50a7b8b83','2023-02-06 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$fcoZk6nYcMbkr1euzAa3GhYK6qYJCVup9kqWfiHWErZcmRJ./I.G4','admin','ak_64db1d2ae2ed5233','2023-04-03 10:08:00',NULL);

