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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$5legb3vFgLnvMg/.VETW0CePXiLCZ/D6e6xI3XIJqJW2rSrpnZXDG','admin','ak_3019fabb67acddd4','2023-06-15 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$1cjUsM2g8R95jv7KXelme11LgW7ax/7cuEb4xBnPB1rI4i1LaREos','user','ak_656dadd2904b2b4e','2023-03-01 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$o3cUCwyi/j8v9BlQNaWY72qxnmyOF4rsoH3uu5gN7COXEDA29ZKjH','user','ak_b8cd3a36348ede9b','2023-06-06 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$vMDp3iyyCG.tr72FDq0lTGIFUM4gChd7ndkUNh4FcpDuhlJkGVP6M','user','ak_4292ed80b605ca42','2023-05-11 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$hYSdx5XKBJXXpWQEtHocHMGakkbb65OAZNN4gwSALtmLQ0vRXIlym','user','ak_c6a0a25dec4c89df','2023-09-21 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$.TyfKjS1aIa/b00D2aEhOCIt6NEZdJuDnIhlQxOKBbhRuHz8hCgKx','user','ak_6c9afce8637b64d6','2023-03-02 10:12: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=10642;

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

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


