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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=41169;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$meLa6YSWQb1jHPDKqmZ//f1w5asP2dkbVPYG.HuSJK.cHi8M.tvDj','admin','ak_597054bec0ce44b4','2023-08-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$hVkunrtq2leiaGrTB.eQMk/d6mSVwv9pLon/KAz1P7/lIqzz8oAyM','admin','ak_1d871c6abd8e0d95','2023-11-18 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$0dRRlph6VDOflprzEnqPwdztZUEsOsNwz4SpJyAenmHewxvLjl76u','user','ak_7f3c01b1b297063c','2023-08-02 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$otnP8tCou0FcRHjAFwTM0MtDEgea8EJNOpCvA74rCyWEZiVCT5/VK','admin','ak_4c169b0908dd41df','2023-07-20 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$ZjfiOzAKfQbr.iJq//pJ3uC9ihJQE4sHt9E8qjld1LSrl1u.OZ6El','user','ak_18a359fd66fab155','2023-07-25 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$u6yJDdW7TA1SlILOqGg.W4KHVMwWvoBbEnCgFEFLTCgnJDZolK2Ku','user','ak_7ed2947b80ead5e9','2023-09-18 10:13:00',NULL);

