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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$xFjd9sud3RETEWm3.IUa3Rp3jtDW9af6HQ2b7brQhk.Ilg4oGkjh/','admin','ak_ac22a564039cfe08','2023-09-14 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$wtVZHajU5bhZ5gv7osa5QQPDZ5ycwcvXD0FcHwQYf9urM6BGqwLCW','admin','ak_bae12e2241254d4c','2023-07-01 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$z4qINUIzUQixkuOVqvW1i7BXy8H7mMkJhKNP/FytKHSUSc64UgLna','admin','ak_497f3cdbf9fe5a61','2023-08-06 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$6dmuYhfUkKLyS2x5ZckD6FY63DcMzHCGENf47oUQHNLPhk1JLD4tf','user','ak_f9bfb9783851b725','2023-07-05 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$32o1uFMXmtmpYXBqO/43tERh5zgjAUdPnsoi8JCu3ZCbqg6nedFh5','user','ak_40bec66be326ec84','2023-11-17 10:14:00',NULL);

