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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$bgz8ldaz3ron2WhFmAc5chqjbB1C0dWdxgSb7YPZANzM82zog24qo','user','ak_c7ab8f0bace97fa2','2023-07-03 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$O3Q8ZKijQnneuxDrAALptmn1WUAdsV0HR/dVW45iZzoA7eEqKp.Ql','user','ak_4c18c32aba807dd1','2023-02-15 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$5TjmPrqznhzUH/9zUVwHiExDdeNOsorI6upG/UHFEMsUjM3nXjUua','user','ak_88d58ec69c02cc51','2023-06-22 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$b6zSFqmQJ/aL4L5IXwZZ9qcgSvh89jMh9h7vY2zfPSAt9A.gaUjol','user','ak_0156759843ce4cb9','2023-01-24 10:23: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=50502;

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


