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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$snD2vpO27/xZHKW37yFiSkiximP/Y2SGpk2rkEX5DI8yqA69s7e/h','user','ak_7a70c3203f89f13b','2023-05-08 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$bnzvC82MNd4JQ7U9LtULX.6LLBBAK.VW3olG6Lt./kMbAsHdWooIx','user','ak_76f53e716178ecc6','2023-02-09 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$/NrLUWuzrdjJTMI0yJ3Vh3P2inryTJyVVm5vM.2.36U4X8ZIkW5oz','user','ak_a4fbee506a19f1d9','2023-10-02 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$3Lkg1S3AIn7ncbNh1RRGZ7pOgr3f1hDBnKu8y1aZDTFXd5OKx3YsM','user','ak_bbc115e8e6a4d049','2023-02-06 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$H471ejQM7FBP76fH0qkkwoHV2ppScCnC5NlOZrl5Fy13gxCBzCybQ','user','ak_54b365603cee4c75','2023-10-06 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$F6celAymhP3CKHAwKoJ/8pMdb6YkRMd8qFb.MrKwAA/dDtuQFwYdd','user','ak_15a768d6147f9e81','2023-11-24 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=39338;

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

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


