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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$zIdbomhJVt4KEmdZKQ4gJ.l7r6pyrt.Ky4p7.kQf02PnBRpXeuslD','admin','ak_725441dda4635665','2023-04-03 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$RZN9rsqqtACJZp8ayBHGWkHpYkUYHgE02mJbNM6/aHjZYRcGBcBAO','user','ak_febdbfa2b538a074','2023-04-26 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$COf8afuSZO.WnRPrC1mhVcDafCIv8BvWHaLqy2CTvLZ/VdGx/kbl0','user','ak_4ed702274e9a2408','2023-01-12 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$rFBhwZ6A8CwXkuRb/NK9yI06lmWOr1cMA.yoTIGMqLd5n5zlXEVmB','user','ak_ddfe34552d59b3db','2023-03-15 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$9XY1oth0iWFbT71Yd8WR5R5tc1p80Tuth44TbmhEd1SXns.TEb50G','user','ak_be8e5ab78ce80abd','2023-12-10 10:04:00',NULL);

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

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


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

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


