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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$xXuYxzjO1Jqv77UqImNmzeTxtwkrvL0rB//1edVAI2gFauEBcoSMf','admin','ak_1163f0960f994a59','2023-05-03 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$/2.TxOk7PwEUo9aF09dqvwJTaVbYFi3QuB7yJhcijmfn64pV9BOJb','user','ak_72a6030c3985a14b','2023-01-27 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$130d8SW1qlxctyGUPN46fYaUVxwdPJ9XLeiYIN1E4sw774YD5wQ86','admin','ak_a5ea072e688a8729','2023-04-11 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$vE55DLuvMyhxbIm2SnFMMlto//dPt2zAX6P8MGJv09axsjhzbqzMs','user','ak_faf0997689177c57','2023-05-01 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$zOivXT.8jdQ2IEj47.khYW7fvwWfHoSd.DJEJdYJdnaDIOioZZdS3','user','ak_27e7678579874772','2023-05-10 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$TMw2GVKW9/oaoJnM3N2u4CbyixWOegp6gjGMEgjZ.2.BHsbYfrlRB','user','ak_bd7a277efc992d3f','2023-06-26 10:02: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=35148;

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


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

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


