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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$.wJZf6VwVJoyBgaO05YrNknQ3K/OddTbCrNhnQ560mwh/.SEL//4G','user','ak_e65828ac580fc2fb','2023-04-26 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$.Kv5fMtVATv53JPbkh/i1ctUvaWoD2CGmO9Ulk5jcdLe/QAHf9exm','user','ak_33758dd962c944e1','2023-06-19 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$FUR.HQFv5h76Erp.ZiJaphV.iMhWAPAV/Pwpg2aSfjmiLy/g/73UZ','admin','ak_835d53be1edca70b','2023-07-21 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$dwqcvIT.LCqEoYE.yYNvGA/zfajjR1XdFnsTQV8xOIICahXR0o6X.','user','ak_4073ea5515fba5bd','2023-02-04 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$Rpj6cQ3ELPl3hRBZQzA5Iw/vbma/FcOIuOO65UrmyUNI/gDFJr9Vk','user','ak_fbb5878b411dcef1','2023-10-05 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=28540;

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=37868;

--
-- Dumping data for table `payments`
--


