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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$4Iu77jUsP499S6A9l3cqlMmLfoSP5rRrpImzcVmsQfpF5dL/oH1XO','user','ak_2caa97113c31ad21','2023-04-03 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$5YMVjHhd5ybyGpVYSd6Cf00EIUtiDhL5pZDniELInD/dfKbCDu10B','user','ak_4bf2db03e5b2e349','2023-09-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$bWhyJfYqMVM6YJfpAvQ3QVDuzd6zeGya3nkoWp0mPpg/zcKHWBaum','user','ak_c0428e1f53b0063d','2023-08-09 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$m54PDXrn1/m/xiehnYqnbX7jRCBOvUr0g3.W2nc1nkHtJX.IWQP9g','user','ak_20c5d9632bc0dea5','2023-12-05 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$6brE2POmgJhsuqHScBgkUAfSQm/LB9a0l.6DpJFByzDBoN2G9KH6k','user','ak_3d2cd74e27af7dd6','2023-10-28 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$sg9zVFO1QYyrjfkfxLMpFLqf/6RnqBX6eBonEx/Jnd8apoAi6Gkm.','admin','ak_1b5301dc2f2e8464','2023-10-12 10:20:00',NULL);

