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


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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$/tPvtRU7a33xWTuo/5OeYV8GqwxZpPgv79gGROeavIZdjWHimxpy8','admin','ak_ea063c0a7aa45e97','2023-01-24 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$6rHrcX9cp.Q7dBvZNaQoY3NnW9XQgRwy29Ce6/a3jrFHUy6u2cInS','user','ak_543944f1db41a34c','2023-10-15 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$xlV16vWWBli1F5hJPFXpInNN0wuslC5OiSCo7ZDWM536Q3p5N7uu9','user','ak_5658ec694ba0a5e1','2023-11-24 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$DowtArAklRvrt.Ueg7uk.x/RO4/mcbriWEmX4CSKHDVgxqcbQzPXe','admin','ak_2ba72e7790daa171','2023-03-14 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$GOptkX/EtyEvMNteKGoBmTEby2qnkeFjSFFwZQ2yULZZ5KoHr989g','admin','ak_ff7bf89239f062f7','2023-04-01 10:12:00',NULL);

