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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$LVSnqoADwmk/8pagTWD4e2VaeEACik.ZjDeXY3G7HfGu9Y9O5r4KS','user','ak_424910496cd2aa12','2023-02-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$HcRtvnp56.gKdgYt.qP42nudmqRD.UjI.dgobEVqF22yOzObmrzgd','user','ak_e86ba4a0b8781692','2023-07-13 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$epPr1T0fBNPymTSr6yeeZZchke8BU3zXwyO7d7U30tftBDi3.j0DI','admin','ak_baddbcac4d38d5a8','2023-02-07 10:05: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=41025;

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


