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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$rk2MwY7HQI3jz8J4YCTTHxEBgWfgep6lAhj6cUDAI.3oKgxHczOdo','user','ak_6cac3c01ec88a7fe','2023-12-08 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$E/0p96nq9Mexkl8UdMrv11nYJ2FTaXfsJiMaDiKxahADt5r2Bsxqq','user','ak_57866fc5543f06bd','2023-12-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$QLZdtvzazzj9HfRHsGyYH6UhdwF0aD2VDEwObuQCRNQolYSNagDTX','admin','ak_7e2590a0d267e76e','2023-05-08 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$T7yhwb/EqmQZMQUIiuCI0WxJGboJ4rBatv4xy0ws7sFaYXfsAuTVL','user','ak_fe40bb7392fcff5c','2023-09-19 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$z0Gf2EJrZ6a7u6hYPYMyH7s.Z8kX56xf37YVoE7dQY7QMonO0LUas','admin','ak_52f1f89158d30540','2023-10-28 10:06:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=47365;

--
-- Dumping data for table `products`
--


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

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


