-- Host: db-master-6.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=24968;

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$/nf1qjPNyLbJxvIGTevwGT4hDurEiKTSQNoTyTVV83Jm55zcY2yr2','admin','ak_b84d4e7a4767d639','2023-09-16 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$uc52Yya.8n8BhgnNwTss0t8c2tOH6IjCH5Kz0aOJSRhnOQaV/1XH8','user','ak_361162dfb1ea0085','2023-04-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$zdGQu4UIlIjM92tunUKTveJEp2HlR55yszIqR0mNkqaG313L3Fytq','user','ak_15cd85bbbedfd9b2','2023-09-01 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$4fs3hzD6st87xVSXZggxeckN4ojzYBwa1.gdnCDHSx1vW7zc2e.4Y','admin','ak_eae2824304936308','2023-03-09 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$1AvuD1DJANC80fD4AXRXxbhw3avVaP0hWXOzN2nlZJ1ruCwE4LJ86','user','ak_54e123250f6ec906','2023-02-27 10:19:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=5120;

--
-- Dumping data for table `audit_log`
--


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

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


