-- Host: db-master-0.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=16048;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$hLDhVcNDIUYGtkWqRJbrWyJoFxTx7o1BGKDMoFnkllt.o7Mr5r25G','user','ak_f346b521fd3e208d','2023-05-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$KkrcKdfAzZiDxlm3wDB5QsC4yJH0LKNPW1XXC9Q27Vb5RYMr5Wjb2','admin','ak_a44625372c7afa41','2023-09-11 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$InYCPNCsbGWsr1e69AWK7vyaim3UdGr9p4fIGeMWm3iG3Jr1kuFcO','user','ak_d528d7daec625551','2023-05-26 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$Bs4NGRpmdwCcPq/C15mPK33OyUkdfr5N3mjqQZ0As5pB2/Keu7SpW','user','ak_3e3c57c723ee765a','2023-08-13 10:13: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=17595;

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


