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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$o9JAfrgtO5/W1G5fZcLtGH0pOaJyHYK5csvtIty7Jn7MF5AczSFMH','admin','ak_0a2fa0cae970120b','2023-05-02 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$VVqm2GxG6a9QE13ef61kwd1GG5w3s/lg1uWsagdTU3nFuLO1ZxZ.X','admin','ak_b1c8a878ca7466a7','2023-07-24 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$4CWbVysu.OptMD6pHxlBSedyQ/GYTAgArgB5IBR8YglDZ8mQC3Qzt','user','ak_a2b6114829ff803c','2023-07-05 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$HmafIm2TFLBX/bDsfNVaf9bgkXG7GfQiLiENLqVJPridUSBHDMVrv','user','ak_782fc2e2078cc538','2023-03-09 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$Eyi6Ytd8ad8CH5vmn2hvtr4UVBFTO081sOaLkRL96RGAPlAO8.Ya3','admin','ak_14bdaf936748dad2','2023-01-23 10:08: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=21999;

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

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


