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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$STPwdb3.4VqTTwB1dDtBa/HMA4KD7Xo3nBznbi6FrXbswT0S//.tv','user','ak_60b1df4bc6fbaf2f','2023-01-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$UCLFnbW9TwalMcAW6rBAMTBDY.0u/DQKmjSf8ULae0hhipQPPRjlq','user','ak_56a37c44b9382722','2023-04-23 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$gaazqCWggdyFmu819cO5g6t1XDpT/eMWy..FjEYPkB94wkmmaGLya','user','ak_a90a8ecfb0464f14','2023-12-27 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$CyqVibS3Tc0Fl8wHGBeQaCT/coWFcmiinpIUoH/XGqx7eIJPtyH5W','user','ak_1a16c3d5599cca8f','2023-04-23 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$dLsDs3ZCot8filxkm8UQNLmtduvJ17nEmFN9CfUy40hcgoIapSuGV','user','ak_abe21cad013de819','2023-04-16 10:04: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=7905;

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

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


