-- Host: db-master-2.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=15690;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$E3yDbszGD3voNyLpMKEd7yRt5Fzu9JGcCe1WDLsO.fye9XNu12.PQ','admin','ak_9d8bb04e4a12accb','2023-04-20 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$yQfsKja93g4jxqwZHytwrh1zZGv1nYPLFdt7NVnIoJYc8ycmy3oJI','admin','ak_8a850bf0c777bfd4','2023-12-12 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$WG0au/EXdLEgfWQ4/Q71.cFGoIbtlbHfsMoYk/xmawAszi6OovkQ/','admin','ak_91003de8e9bfe6b5','2023-03-07 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$x0HKDCe70WH1infPX63dS8e1ylvHXWNO3A.Y9QGLmV8NqJva0ro/k','user','ak_f53140f4a84af655','2023-01-01 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$WdIAaoiHrrtpJS3N4jyNnL5pbNbZg6U3y36pJwEQEnMXQ42yvtsOy','admin','ak_c7dc70246289d996','2023-02-02 10:11: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=1485;

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


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

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


