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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$TVUZ/.OgJooXgZgjG11ojAuLj8HC5HGXSX1K4rLIidcLURtXdBWRY','user','ak_4f48065471b018d7','2023-04-28 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$0Hajsr9dMPjWFr.JMcMMdjZP5wm0./vgH.0z3EDscThOLTlrmYgLU','admin','ak_cfcb0e8cd25bc0ee','2023-09-05 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$d9nhDdGScEWTPfkHWbTV.BERx7nj8G4DAbzFN4tJCjPTCeQA/jwty','user','ak_b839fb280b41d43c','2023-01-13 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$YX6F1btlIfwwIbBiBYDwznFAy.qvg.FRo5vsFxRau7TaqIKnZPlAO','user','ak_31cca1d505967cb1','2023-06-08 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$imLN8Ln/pW2jUaliZqKooH2eIIcKS7WkDXdgWaefpX6MMyeIBebUY','user','ak_ecb131de0be24742','2023-07-21 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$vfNK7KEKsMNqObZ3vlJimc8oQOVeul.pLA/7crSPZIzmqFZUAvUVH','admin','ak_fc66abb7f9060e6a','2023-06-17 10:22:00',NULL);

