-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$faMFtLhmZPcLzemVsr/Cyc7eD6yW0nqyd3FhUx1mXqRBs7yvA6PEo','user','ak_c8c03fa43cefe157','2023-06-09 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$wQ/vIrBD043cWxKYPeWsmBh1YvkMc85MBou8SwRqh8A0vCCP97Uil','admin','ak_f6529b48f21c5295','2023-11-10 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$51PSwj9X/hA7xlMo6pMz8QbnysULLVcQK6aLsl/y5YLOSwj7HEapC','user','ak_e51295fe6ab97ddb','2023-02-27 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Nlwe7k4us0ymLDIk5pBY9fp97l0b4D4.QuCFHdPdG.YwYRQnGJUPM','admin','ak_b322d303fde1a582','2023-07-06 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$Jbl0ABYX5XdZN.3opkAEI.mCh1jiG0if6VnTcYN2pMHmjLvas/CDN','admin','ak_d0134619884be1c6','2023-02-21 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$NhEx/lkBP0VwciL2RETyoOAyuS/gI68YNYeFhADZH/3n/ctjIww38','user','ak_a1290f4a0be61d91','2023-06-26 10:02: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=40546;

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

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


