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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$SRv9EIgNS44pc.IKYh8eqWg7MHItvMgcLkfX1PnnGqWCtCUF89MKO','admin','ak_bfafb43a6d43cfd5','2023-12-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$KLcTGx8I0YhxyTVDHur.F9gg5wcFKpa7tVVodzL.pNaARqZlwMQWR','admin','ak_1bb7a61386057da4','2023-04-18 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$48aKag31Hx3nIgVjLcnGVqXqmR63CKrU2usK9Fp9.znnnQfvloP61','user','ak_2dd3a59d9cc18261','2023-10-12 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$.Mms1r41/z4xnQ3Yvtwhyo.uK.DW9nXTDiTGXF3XnOfxSP84yrKFS','admin','ak_8c5d1e50ab3dbc08','2023-03-18 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$W52Q9sVVJUyVH9vGkis0G1lp/0uzr8NT4olaGJn8g3JLVOgfnLZ7l','user','ak_7cf4c4bd0d216c20','2023-10-20 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$l0dXEA2vJv1z8DFA.RRQIsPRfsp3Mj20/1zKVljy/P061RsS13UQU','user','ak_d057259b5f3ff4e7','2023-10-20 10:20: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=26438;

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

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


