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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$vC8gZneSANfdk.SZRUegPT3C45dCSlGt1hTENsOOXhNgrgTUuP2cm','admin','ak_a1ce1dbe3f234b24','2023-06-08 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$0UjdDSpOfXMd9ExMZMg1d1FH550M2IE1A3X/LM/71JNSEBFAOvncN','admin','ak_72b39b4e2f79f5ff','2023-05-25 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$jVjoj/fzD/VhPa/fwt3V5vVNNQ9aNVlNaNeidBUTiD.8rD4wGFcuH','user','ak_78b88bc9eae91232','2023-09-12 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$rV/NJrMEe0hdlb8fZmCE4glJzw0wyefmOeiO1RnzMgZndvHPdaSfe','user','ak_d462eda1fcc50a64','2023-09-04 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$zjz3.SJGp9sEZ3NJ9NOwicnBCu.pK1krr0EhuotF25T4m/pfAs8n/','user','ak_8ced232903e4f54b','2023-08-01 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$OE/gSo4f.IsnCnMVHH1bpS1Lu1bRMoE/hDGKuu11t4YBWkJBpNWwt','user','ak_7a28ef2785404c77','2023-08-02 10:06:00',NULL);

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

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


