-- Host: db-master-8.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=13664;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$KtUIFGTVsYZ86fGKxAAqQKeZ5W6FGkaTuPLN9fgugUCvPUqFDkowX','admin','ak_d2c1d7096bf41152','2023-01-18 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$TIphIaUBO2rzTvbpLotjI096NNXRBSTUrp4TFjWv/iuSE/lmLPIus','user','ak_8f6581eba57db806','2023-06-12 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$PPSKGsguP0qLArSNQbblHQEBhEFr81tfX5YYms.txh02bpHwflJbC','user','ak_29dbf9e4615f595c','2023-07-11 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Y8dCktLL81OR.aFIXy0kUsNccsYs0SSMkKQb3nqiU6Y89PgwQqKdr','user','ak_338719e89fc99763','2023-01-25 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$aciYC4AoL/.bzY8zfm8Fue.m5uKkanwKmyxvVChc7lO0HzZDjdYZG','admin','ak_fe7df95b9236758c','2023-10-24 10:09:00',NULL);

