-- Host: db-master-8.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$/HRxjCBm7Ulgo.tWaUNdSjXNMghoR85YqojSY26uFIw7P7TCLifzM','user','ak_a7e0c0081543529a','2023-06-04 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Dt1.1cdY/BNXZjqX5NvEx4a1tK85tvA6uXKrEJyHYZEVEZXdUKZlY','admin','ak_ca11aff6ef4cbfdf','2023-10-12 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$AM/dixn/IdUoiENDCM5Ewty2hkcpVyaRNszXIfn5ENSDM3Dn9H737','admin','ak_eb573bf549af422c','2023-06-13 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$tfXW7b5ks9wf2UkO9ABYmL8/f8P1rNeN00KyFGgH7N/JZizoeRNy1','user','ak_6de61ba2badabd09','2023-05-06 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$uv2zIvJoL7asZdhBrC8fN7PTN2EhmUuU7nYzO728k9a8QIZG9fUc.','user','ak_7b9af695b7e8e103','2023-02-22 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$3d2O17pSxi8hggaMP39dvUNmGylvAuN7.aBDOsfn0cKyflIF0kTo6','user','ak_f108705e8ecc171c','2023-03-01 10:00: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=28090;

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

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


