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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$gfohv6e1RKepL6jf64cyNMl1JJglhJWzZJkkvZ0WoggTOn86eO5rY','user','ak_c4d0f40735fce468','2023-03-13 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$d7ihNvTK925H5428xhrfTaGZWgSKlgG6nUSLCrsbAZfjQFMvQq3.U','admin','ak_1e126865b7a3033b','2023-02-09 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Az4nPyUi21Qaq2nO4efgLs3H7MXQSTUN6WQg00Bpqfp5PCnQ.Xr9t','user','ak_56d496ab2e85f975','2023-12-01 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$ucGFAKZwnZXmz2oGgdNU5eeMs4homWSlecfyNELAtsRgVb5Cx.Pis','admin','ak_d27ae257fc0021ee','2023-11-02 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$u3u5R0GejWCGv0Iwa8TTTZPt7uU8O3LkKULDDbTTowoNyqUGAO2Q5','user','ak_6729c1ec51333d54','2023-07-08 10:18: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=17174;

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


