-- Host: db-master-3.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=11800;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$rY6.7CbJdO/vK1HhTr0AfS8NnXmMGXorTHvAXZ2h2SZJffIxRhUmj','admin','ak_ba3db6479873459e','2023-03-18 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$7osS3TFsZUd.q/UvCESVzZrkhbZTrKPKmsaU1J73Lsjc2SGuNzS7A','admin','ak_0d06434b19485cb7','2023-03-02 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$gdeiCnW7e3AioHOyxZEwI1yH/XytUyk1uXABWITpko37XG32IKMrh','admin','ak_2e69091cdbf68613','2023-07-12 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$a0gYp5dq6iJE67dZ.JAq/29roCEbIwkQre1qA2FotGGw5t1T3gfYc','user','ak_bb9369618e207840','2023-03-16 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$lTXS2L3u9eTQvluh4N4/RrYPjFrCr2DG8hxY4b1WN43/..Nh8hrc1','user','ak_4f3dab7ac82b53cf','2023-06-05 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$t.CVZH4VbWjEpoqOC7D4rD6Pc1mIgxf6iqFFJo984dVD7/j0Enei7','user','ak_c8343fec5e146b88','2023-10-26 10:07:00',NULL);

