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


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

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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$VlVrf.R3YXpyk1gjhU5DRNMSAL09hvmuESbo5SbEL97h4JTSJA0Vd','user','ak_245058d0ea7ecf3a','2023-01-27 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$Ikj/MZZ12KU1PmaE2y.vSD7gR4u7r0rj3B1bIxpYiPSJdaqgMPAMd','admin','ak_031d047d31e844eb','2023-01-17 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$8WbLLNBQaadkjgUmfCURlhPb2ogq0S2U1qMey1kidc0WsrbTT119H','user','ak_1bf67840201cd889','2023-12-28 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$5BEyu8Sz4rhTthp2fYKq3pC9D/q4a2UpEsTiAh/PSgn.802PPFqFp','user','ak_aea29942f4440ba7','2023-03-02 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$jd6/7AltYS9c/y1jDoXMpw0t4JchyaiugWGaPSbefl2TmiNASiaf3','admin','ak_4ab1834586f7d5e4','2023-10-23 10:06:00',NULL);

