-- Host: db-master-9.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=12783;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$SobMP2tAvYBeb1jb2gRl/bFbFuzHZq1foCIbwU/nkTl6zCVozQhoz','user','ak_4eb1c3c3aaa948a3','2023-12-12 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$kMdKuCzgcf7I7jkBCIyAd3lexYcsJ30wTCm.9d4Ab/t5Hmez4imvv','admin','ak_1494018576f9e536','2023-12-23 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$xyWd9TL3M2D9nt3aOgVI6yy1ihm6KK9aCrjMUyERL0YHeU1eH27EB','user','ak_dc0ea9a4bff4b227','2023-04-21 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$IjeqJKGzAWSVE6rKZjLY14ib4QwTCvo59fRhQO6iuDyS/MCpAZuwe','user','ak_560cae3bdb1330bc','2023-08-09 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$5XP7WV2FlnZGz8OrU4wtw3C57Xaq5WaCugfDWou5S8yML4fxhvtAb','user','ak_b946b12f40a8e2b0','2023-11-06 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$Hm0mwfzALW21IeCc7JNPSIAwlcyr6XOzh5vXPoMawYG/9OhWkzNxS','user','ak_2ed7fe8ccf40d450','2023-09-26 10:01:00',NULL);

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

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


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

--
-- Dumping data for table `payments`
--


