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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$SKrjYXZim07PB2kVUqbtVYdWiyBuAnY5XssqC6kCD5vxUAk1NPqgL','user','ak_601642284b75ee93','2023-08-16 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$.IbasvqHP27ZzwYqcassqOJRJNzvOGAhq7oHDyPq4a0dqqizLPE5I','user','ak_f1e5091bd07f43f6','2023-03-27 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$fTfkj4xTQVNnUKYIdbllPRJk9.rP4gG/deHJar/.Q4WnmwC45uEpD','admin','ak_9200d08b55957f44','2023-12-18 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$oBqyzvwzK1J.C34R3ZCVC4L7F4r0cEN8bhennBqJyL0E/LBz3bMwo','user','ak_2d6a625969c5f420','2023-04-04 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$sIA7Uhb5rdoqr4x3kKipKS4uYIuOWo6/1er1NB.hSDDu5qi2GFkNZ','user','ak_de5baf1b81a53d44','2023-10-23 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$iccP6ZK4Rk95fgkWusRq4u3bj2.bSBv1/mS5jprVnvX3u8KSjIL4d','admin','ak_5ff538138ea35f43','2023-07-03 10:20:00',NULL);

