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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$V6YcZYlLGmJg424hpIY0DQHU28t9CzCZUZT1VufGidwJGL4OtJgH5','user','ak_8a72667b01b1cc83','2023-03-28 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$HZDHAhSnZyv.ymRYVWvVI0AElEll6mB4KkvJuzoSnUKunjmWYQmCT','admin','ak_db8a3f56bc04d62d','2023-01-13 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$ebIuEK3CzxCZndTySMV145E7prlDH8SmxhPyCbiHSm5En.PRdKiU6','admin','ak_83c8eb14972fa797','2023-08-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$i.nQuO8FsZ5g4Ge32bmiP751wJNRfExAXFyrTnfrnhwU9orCvsweR','user','ak_e4434b195120ab42','2023-07-11 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$j4T3dlDhO8MjxKa3NwglI/lkFLOwqYfqpm4K0XcS3uJrIv5WGGZe.','user','ak_9084ed216b517b7c','2023-09-24 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$5Ba98.nei0eIIDO2ik0hgOsV13fsLyY/ibs7.Tsc/7EjugX9pxJjW','user','ak_6b8560697bb970a0','2023-01-23 10:20: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=17850;

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


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

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


