-- Host: db-master-2.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=34569;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$E0EgivLvpsFj067OnJAMrXDjyInBgRHEQgh2oaSGEttSHYAtUfUn6','user','ak_44f6c126fff74f93','2023-02-20 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$fqb31vJev/hb8m9a9K.sRTmPJLav40bZ27cTg.HGnHIk5Uh1C1l2S','admin','ak_4ed8bc4af4af9ee0','2023-03-08 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$qUVFKqEi/C1H.p9AkjoZdA0hUKGYPccvFhRLEQNpDk/1L7oJrz.sv','admin','ak_2eed5b15eb56939a','2023-04-07 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$q7NSiJvjiAko1Rt5bTZo7r0DXJyWr1plEw4N0Gr/7e/zNrmTYUAD/','user','ak_5404184611d695b1','2023-02-06 10:21: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=39680;

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

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


