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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$FpqX9GwlCi.jAAVzqdrVAnm665amuMPKmhOaHGZIRSIeKIZLj/1EU','admin','ak_2971a1fc5b75dd0d','2023-05-28 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$UXARqbwzhHbajioBmRBNqafBRqG.lnNGxGyllzzalvXKOz4uGHh5i','user','ak_3dae2e050c8648f0','2023-01-17 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$uGHJiHNY4YYhkBRg73Z2HZRnzKy.F/wEAVN8K.QC/Q8.hyxhM2UMv','user','ak_2b1093bc976b5169','2023-05-15 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$oPdl1YbLhrwcR8a79Pd.s0wqnuQFrNjxNg1f4qFlwLe1W5xlcCaje','admin','ak_b65f3d4169f93db0','2023-09-23 10:14: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=3304;

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


