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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$X5ChUMz0VWgw6AFqU/biRfDxw.AW/mwL2TkIwqZ3cMfz5cylJ9bvQ','admin','ak_5ec3093f55f90c4f','2023-05-26 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$a3.05066Qs.i1tVC0LM3ZKhoX8pCCV.Ftw.RmeWkuDNnFgW4J4nnH','admin','ak_d92cf1b8f58cff7f','2023-10-13 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$.mDQ85ymr0mQDX0IEApc.aBZiVdc2GPiCtjaU4kqOxWDZv/Oypep8','user','ak_91e7d9939b869ae3','2023-09-13 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$S.aUKDYSMH/mIvm1Bq702IF.ZZiywlppueLplwiemkyXerU26ztDW','user','ak_fc34ebd9d7070df4','2023-07-14 10:14:00',NULL);

