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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$LrwImKPURubYGibgkurgnm0LcfF9sM2/9emsaHHNprRu2Qi.18GCv','admin','ak_a40729febadaa797','2023-06-27 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$mbNFVlU7s0z4PfR6mx1sdvvgPzYCraJTEWmvc3aG2yqSLlCFFmNLj','user','ak_41c4c9f0b902ffbb','2023-06-04 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$AceHmQl6mCualjPyjrDREPJXap8XQxRXAffNy1ArR5iRKB/L4sR29','user','ak_46706e72c0299e64','2023-05-11 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$O88idswEI5oOb7ABn/ndvnWmlp34BuvbBEAv3Vak5kX3G/jNnEQ5.','user','ak_9749b373b843d2b5','2023-02-11 10:14: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=25381;

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

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


