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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$A5b//EkbX/XMdDbN7CClGOFTpSiRSAgts/DinKQnXiIMlIp6GELqm','admin','ak_db6cbdbcd1d279bf','2023-10-04 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$nU98zme2ojgdGKY79.2Q0QcxPaDW2DH2p/1MDdZYxaAaoj.YgzMYk','user','ak_26c8af8de98f761e','2023-09-20 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$GcOmk1SFpD6OJ7T6Ri260A4kD4K5p.MgQ8DggDbnUmzZJG2b5X/9Y','admin','ak_7a7a40995edac91b','2023-04-12 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$vgCS7T15htmNI/twvRsLGaWdKTp5lwzOTixb0HHxJWFTqDSegfFiV','user','ak_9b1b58a38e6ee2ae','2023-04-06 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$N/zRaP5GxW3tfxJFd4J1ovF7WGPa9OiArRjMziKu3FvU7oOqH7jPx','user','ak_8ae3a4428d790359','2023-08-20 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$UBctePP3kGRE3PRMd9VMKfHJwFWR9b//b5sq0PlBRYl.qaLLrOEtM','admin','ak_cf7f7823d9aee331','2023-03-01 10:12: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=40534;

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

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


