-- Host: db-master-4.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$FC2CkJG8aPZHKcJ2aBSLrnym8F0KwJDgE.cBsfY4KqNQO3ELaGNH9','admin','ak_d90afd18912eb26e','2023-05-18 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$3e4yjSvfAYablSL7yGPwaaDgv/0QukeAQSec8UwgdtFKHLSmQF91s','user','ak_2cba0e44774039e1','2023-07-25 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$8lHRJpWf6bYqlLSozumTKwezClF.O2KvaW9ubep/9yBiL6Gls9sf9','user','ak_846a8ffed7d11ac5','2023-09-22 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$uC/BhDHLz0LAIXXUatz/z2PPiTGWDTsB7J4wtlHWZouL0qcZtjjeQ','admin','ak_8deb7cf10965c6f6','2023-06-13 10:17:00',NULL);

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

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

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


