-- Host: db-master-4.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=39652;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$LZ.BcD68lcMrDNPYUno0MO8ogl5lFcXUvRKvw7VGkPzLfulOhL7rx','admin','ak_63e2b867660fd832','2023-06-24 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$5f0WAT4hTGT8q6bEjEgq3ZdI3G91OmM9CwZSbH4oI1MYx00W06E/.','user','ak_39fa9787f29d9f63','2023-01-17 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$HH.a4gXyLxXZy4Ju3A6rwrdk7.6xR4WQHrbv7zzwCDepvSVNle0qo','user','ak_a63c496814dbd2e1','2023-06-03 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$nEs74Yh0ORJxz.CWl5J9LymWBtG9uEsskXdt919SEdb.8RZQ7TayB','admin','ak_a6820a7d78333a67','2023-09-22 10:22:00',NULL);

