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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$J/59cInBl0iEwYxQ7HEs8IGcIpQAAn9pbBhLQIzQhalyrB6HwUvvg','admin','ak_9d38521d688b9cca','2023-06-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$VMwrlziGuTLxCNioiWFa6oxn35xWwOypyiFenWBZXBp2iUPXyiTur','user','ak_c81b8b8169f9878b','2023-05-06 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$gzYwqV.mBZN8JJ7ztrWcMOFsT.cO3qYMv7W6mOb86qXOsjcZOo8fm','admin','ak_104156232854ec84','2023-11-18 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$UvnrSNCVFuxb4VC6lAbtm8Yt3iFmEzvqlag5kxali6hLJLfIYfDFx','admin','ak_5f9228c3c1b6f8eb','2023-06-24 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$7gvINvBcK0CQldtHA4YCn5ngnjBmIlNGjipJvn4W3msxDhPiuG6yC','user','ak_a5a7933bffdcd0ae','2023-01-10 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$Q0fOf6BnjH6boc8xGVuqCmfsyiQSGbNDFKreFJCxtSNBH7wepqGIs','user','ak_ab08baa580386a6c','2023-05-06 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$Iyag0942A5HTD7uKthgmeZUz3.ss9pbD4drZvoJaZdUW9pu/245KH','user','ak_77c3198badacddb1','2023-07-08 10:18: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=1113;

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

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


