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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$52Dtuughfd/HzuEWKjxgju0ntHbn50Uv805JUzo48W009MM9rDHaJ','admin','ak_365809fc6e1c0354','2023-10-17 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$2ND5lw9WTZH1oB3zBaVP1WdcWtiXLB2H3joDJ2T2sEeawZIInM08v','admin','ak_79c3804661533721','2023-09-19 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$O.kcUrgqfE504XHCE2/a8lXrzczzFt2BrcizsAWUVIfrgOSi/L2ky','admin','ak_9f93ca9c94416043','2023-09-02 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$YIeeuQ.zx72W3qCjduPUOTbZN3EjEahiFIdYQIcdx7eP7l.zJROYU','user','ak_59a7d0bf76164753','2023-10-23 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$1ALIp6e6dhQcask4FlgR7e/evWzc1Z18UbvNlWv6i3WYsrJx.jzWP','admin','ak_037b0dced4803dc2','2023-03-22 10:09: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=32439;

--
-- Dumping data for table `payments`
--


