-- Host: db-master-1.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$Dm1KXSSvxlmjbXQ/bvQN/aM/2lJqtIgv2jsGjWjUX9zNxCFi4oSXq','user','ak_e646963df71cc063','2023-07-06 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$1UpBExNpKE2eAazbwqtHOwBvr.PioDPQncCgqbDO1uPxkBo1EH0rD','user','ak_4ce9c7a20078abad','2023-08-10 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$o4W00X6rq4WWyziRxziBlVI1V6TOo0YUk/HvJtxRdMSE2V6cZBT1R','user','ak_412dd298e0d19c91','2023-06-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$iJKCWDyvLbcpeBNFDo81s9akr5zeEZVNR3FqmEyd2nA3bCoRVkIsW','admin','ak_8234ce2d13321898','2023-08-26 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$TGkQfsX0RJbarE/irUy2jfZPP5Q/AC.W9VyRbe.lqyubbKsPszp0N','user','ak_9fb4e34614a7e194','2023-12-23 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$JjOAFbcntviWUqhmo10uBfylo/4V80vy6zYt5K31ZsFAPqiFRChTC','admin','ak_fa2ef5c755cddd66','2023-06-15 10:10: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=9691;

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

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


