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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$2tJ0O1MrzB2nnOQV41H49jMdW7EbQUTQEjM.YiMginVxC.gv975pq','user','ak_929ec89b0589c3f0','2023-07-02 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$HUKcaVS1gcerIRD5DiOMGymlAs3jaFZnDKSQJTJKer0hMwWMzl6w0','user','ak_4e82df7bf4bf52c2','2023-03-15 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$P.btjkUHrbU8VpIj7rsFRfnsGXzyeFF3O.l9kxMmlRh3m2M1EbHPh','admin','ak_ec36b3fd4448451c','2023-03-12 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$cnlhZL0BuVAp4mBCYqE7h657uc0StTQ4yBmGVmN18RrjpFcg6awCS','user','ak_8d8426e1a9e2b417','2023-01-22 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$lrXcCeZZ.eN0UyDC/tqtjm43OrGueIn4ESd.HDWquvx/RFbYIuapy','user','ak_679fa17d2e1cd502','2023-02-27 10:06: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=33151;

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


