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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$Dxv9Vq3Ou78JeGjr1fmTtQq4O67fhMmtRsOmFOmvFvNONgab5/ici','user','ak_f1dda177006c0098','2023-02-12 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$zhSOvmD3aKRyQz11fF9xKRma28P0WUg.qqmXvFT/tvpmPGj/jq3et','user','ak_7659d0c4fbf2b599','2023-05-25 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$uUgwKHiTr0cmlp1oAbYmCjSgcSgRBkU.aeMl6C4x3HYW0KOdzg6mJ','user','ak_cd5c493972ac851d','2023-06-14 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$unwQaMQY6qUl0oeyy.pxv/W1y5NE33tSj0ZyetAsvFH3L9Lqm0W3f','admin','ak_65b46054bfb926e8','2023-03-26 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$gWK5M8EJgbgGatc7VKi4X1rd4wayVZDFjeKVgsBQFAFlq1xl7C.Hi','admin','ak_036557ea3ec3e731','2023-12-18 10:05: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=14201;

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


