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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$vxdIonool1TmkhkIxBd2aKh81MLEShIVhEBU4MzKbHPh8XI7et80g','user','ak_c0e695db6ed1f6f6','2023-04-21 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$NETaWEApq.fFuNuBvROb.BStU6biCNJmpXfvV993LSk1hg5S6QtcC','user','ak_7a321be6e629577b','2023-01-27 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$KkVs.j8HFrvpl7RU7yFXhIl.Fc1xkfeo8iresVLcqT0LAJrtZLKhT','user','ak_78c9260b577a735e','2023-12-09 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$5Y70q1gYktN4F4kfIVbMoTJBu45p/lbAqZv26iZ92dTRbk1Z9OeRC','user','ak_f7250c9bbff36413','2023-07-07 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$3exBBkHhYwMlJTfpNTxE/m3pPWvAY1CH/QpV5WZ6Hj3ZHLvlKNnfh','user','ak_9b16590a071e6bd9','2023-04-06 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$k0/WmyRKWximZmS1MaH5r0yqSeOG5QKpGGhu3lBJdxMO3WQu95QUn','user','ak_f2e34b458446bb0b','2023-09-19 10:05:00',NULL);

