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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$ZM/02p63/4lbNZei9JXQzh3sEgQjZfWFL0MyeXm5NxUtKOj0bdbFo','admin','ak_13146387cbeb1eb3','2023-09-27 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$POyrjeALnB0FdzXZ3HVyvwqjT8tbenXXdp4KeYMLWSYZBaFoKce2j','admin','ak_b3c1f2b95bf02718','2023-12-25 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$xGdc0N9QFo3tmKVM3O.GOsXuW8AKDIOs1GUQxgxYxAHFoJGW06UbI','user','ak_172d3a0aee6c2279','2023-02-24 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$3bMXLz7VFkzZaRmj2aZU./nyHVHLcgv/i7gDbXv5jYFjkuPCTxzI1','user','ak_5e983cff5aab0661','2023-12-15 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$Lt5RYtf4HVHxppF0msbxzBCuXFrQFyy0TGN1ZOWkEY10s73c/clna','user','ak_a4aa4dccc8e09560','2023-11-17 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$eeqs4cl6ZVqZj3z3FwXcxmYyX58C0xoY.tgBC13Jwnh/TEBXzept4','user','ak_90adabe93c82e51d','2023-10-22 10:22:00',NULL);

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

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


