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


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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$tdaAA7nwyO9UIQB32q/lMeUZ6qfKE/ORMIY5naRQQh6ITYZBCM35L','admin','ak_d85be61adfb96ed6','2023-04-06 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$DaTcPrlXo2OfAbgRQAxA4WNVW05HfbbZcrz5IC5vJS9mi88FbarCb','admin','ak_a4442c44a8ee7a6f','2023-10-19 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$uZhH9zXRE3NU2ME4G5JbwfHGi9./KqFJaA71dTpDHheZenuyi4KAl','admin','ak_8d9212e38eab14f8','2023-07-02 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$9lwmPdb64t4XIx8agqx4T/AajeWlDLpnNWzyRWUwIIBSpLTVxPxIR','admin','ak_eb61c14877ec50de','2023-04-17 10:19: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=20361;

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


