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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$UhaSCiHfj1tisOjhB.dgXKi6YZflUxQckM3LM5LEEqsU7SiI5ZGlX','user','ak_8fda90d7c7fb9bed','2023-04-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$y3YKNXZL9J.hvAxgVzZyP9NaIl0d5D4wFL3JrpU05.iXz01Jj.VgQ','user','ak_6edd6febe3f3441a','2023-02-20 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$wOaplxe.W6L6X03srWxAZ6nX7CsCFukXHL6iBM0Shk1JGH1cTQt.4','user','ak_ab61a2f0a8d4325d','2023-09-24 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$6lUo3f0zwbyVFynojdrkVIVLZfBNziMqwk6m2EITr1ez0y7jwmwY3','user','ak_095e6fdeb5266ff1','2023-02-26 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$35eKCyGStBdLiDQFO9SyLw/jA7iOQhiZVWnxZlq1HY5SjoYVvONzL','admin','ak_4e352c847742b3dd','2023-04-02 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$M82zG6c8thlqfkrhAH8BNwQkf.mUjNbgUzsd/n85lMbQOj6eY0mqD','user','ak_d02e28b12cfa7303','2023-07-20 10:20: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=12452;

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


