-- Host: db-master-5.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$CNc5Ue60Bhas6msX02Lqff0GVgFUpW.TfKi0IesdVw/QmyXUu6jWd','user','ak_7786ab8b4520e1f6','2023-02-20 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$9GgixeizmdWRif6WSUyr8yn8id4rbYSoMgIGUTOufiZvXIhKHmdad','user','ak_715c32dbf1a94c33','2023-12-17 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$tBfm.yzzjId.0XMPbNr0DfB850KQw6fQIpaqcMxaFSjDEBqODKuxr','user','ak_fbc8388c6be051a8','2023-07-15 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$flvrbh0gvieAEKo.c7eQZT4YdhJYdv8eSVdcRf0IxjqpineZd2NIn','user','ak_fe60c09eebf183db','2023-10-28 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$TYkMUJUVmWkpgLuwc9WwM1XuYyaFcxT3ASY8XH2vUg26SqStFV8nK','admin','ak_8cc5686bba74d0ea','2023-11-24 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$S/l18sMY8n3svvOjRUJmRiUGJ0diMQ7HzVhlDzi64lwl.tKQQn2tM','admin','ak_512e5fd62b8b6899','2023-11-17 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'root@internal.io','$2b$12$aJ272aYedocxNsiYuznFYDEBDwjoEwjjJdDx3BfRTTIhjoQ1AMH8c','user','ak_62938f68e4a8517a','2023-12-20 10:18:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=30120;

--
-- Dumping data for table `audit_log`
--


