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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$fcF4quQfkYxbqr18frYOfsFXihghfnpM/6gq60oL7qjibTWqvCalu','admin','ak_cb354ac1160bfa09','2023-09-18 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$kHO5NRFiUH7hjBCoMjLcT93NVhzdO02ONbQ7wp23OSpoN8Mcp1j8/','admin','ak_5b0fa6cc6f9a1928','2023-09-28 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$eFE8FhJ2HcTZngJY.72mlG5nqr5lBAS/JHCkraPxvv7xpJA0QcEgu','user','ak_30fa507b155f5f83','2023-07-11 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$BWa3LP3QLeE4UrwfuIBhwfjaJe6JGuYMSXggFIYs.GKJ3noWiI5mG','admin','ak_a85e86a99ca7eb3e','2023-11-07 10:13: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=37999;

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


