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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$RcNDqtJJ1.lNfhrhVWf.1GZmfry6JYb4/bsflaj643yHRdPq8tZtC','admin','ak_c1b0db25ff716ade','2023-03-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$OrxNb5KxhtPwflG3rhb5tt2dz7dpyVYFWXKr2aJpygyz/FRRq8/gd','user','ak_b0c5dc0bd58e6892','2023-06-16 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$8D61XSRTravoAa4bPHahHdhQskqeeIhLmSMMGu2MaGvmc8lBTj8y2','user','ak_0c4098ee8fbbae44','2023-01-11 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$mvgJMb1Ub0xF/vWoVqtYOyVUSreqcVIv1LmGpjiW7WlVdM43eBrc1','user','ak_eb63783db78f4ee5','2023-11-11 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$4XE/cHrSYRcBtrs6mZRFCN9OWNT.YsNJDI.Tu6mp9msEG9TLoKTrA','user','ak_d3957af3d8b15328','2023-11-16 10:03: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=39544;

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


