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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$8YEnqSAZepvIn0XyRZfdAnpp3qXcq1/srYrd.qeIQ8dL5xBgRR.6p','user','ak_2858bf4af1ce137c','2023-06-16 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$whPYH5EfIAoruJJOvml6bY6MplQ951Ee24za4aMwMwrCh4hFr2of4','user','ak_3a1cce45f86f3d04','2023-06-09 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$45350HZ/p4UPbO8SweBPXe3XbygKelfNV68MDrMN9aHCPZnhmvkVj','admin','ak_9deef03737e330cd','2023-08-19 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$FBr/JnialagORMtuMWIaeWQt7lbsZT30eqVkyM5liawq7myv3kkiW','user','ak_24f93d866d35ead2','2023-05-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$2q5EMgZT2SN9EJ0oV2GHXawKpCDoawBGhH6u.ig2dRUtlG5uFy.Mi','user','ak_e9226626aa59d051','2023-06-06 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$OH7ZR72cjZGFMOALdq9IiwJW2XKzEL5FEEMbJPNjyYr1W4r.6rhc6','user','ak_0bdfc43b8f072133','2023-01-03 10:08: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=8503;

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


