-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,325 changed files
with
78,665 additions
and
312,976 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 5.2.0 | ||
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: 127.0.0.1 | ||
-- Generation Time: Jul 29, 2022 at 01:44 AM | ||
-- Server version: 10.4.24-MariaDB | ||
-- PHP Version: 8.1.6 | ||
|
||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
START TRANSACTION; | ||
SET time_zone = "+00:00"; | ||
|
||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!40101 SET NAMES utf8mb4 */; | ||
|
||
-- | ||
-- Database: `auctions` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `bids` | ||
-- | ||
|
||
CREATE TABLE `bids` ( | ||
`id` int(128) NOT NULL, | ||
`amount` int(128) NOT NULL, | ||
`bidder_id` int(128) NOT NULL, | ||
`item_id` int(128) NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; | ||
|
||
-- | ||
-- Dumping data for table `bids` | ||
-- | ||
|
||
INSERT INTO `bids` (`id`, `amount`, `bidder_id`, `item_id`) VALUES | ||
(38, 1, 14, 17), | ||
(39, 2, 14, 17); | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `items` | ||
-- | ||
|
||
CREATE TABLE `items` ( | ||
`id` int(128) NOT NULL, | ||
`title` varchar(80) COLLATE utf8_bin NOT NULL, | ||
`description` varchar(255) COLLATE utf8_bin NOT NULL, | ||
`image` varchar(24) COLLATE utf8_bin NOT NULL, | ||
`ending` datetime(2) NOT NULL DEFAULT current_timestamp(2), | ||
`owner_id` int(128) NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; | ||
|
||
-- | ||
-- Dumping data for table `items` | ||
-- | ||
|
||
INSERT INTO `items` (`id`, `title`, `description`, `image`, `ending`, `owner_id`) VALUES | ||
(17, 'IBU', 'International Burch University - Intro to Web Programming 2022', 'mjv3YZXg7FsSjQ49BIc.png', '2022-07-30 01:45:00.00', 5), | ||
(18, 'Lorem ipsum', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin sed justo libero. Nulla massa massa, facilisis non dictum quis, dictum in odio. Nunc tincidunt fringilla lectus nec consectetur. Etiam vitae eleifend velit, fringilla suscipit nibh massa nunc.', 'wQdbNJe7g7EyQD0q7hy.jpg', '2022-07-29 10:10:00.00', 14); | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `users` | ||
-- | ||
|
||
CREATE TABLE `users` ( | ||
`id` int(128) NOT NULL, | ||
`email` varchar(80) COLLATE utf8_bin NOT NULL, | ||
`firstname` varchar(80) COLLATE utf8_bin NOT NULL, | ||
`secondname` varchar(80) COLLATE utf8_bin NOT NULL, | ||
`username` varchar(80) COLLATE utf8_bin NOT NULL, | ||
`password` varchar(96) COLLATE utf8_bin NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; | ||
|
||
-- | ||
-- Dumping data for table `users` | ||
-- | ||
|
||
INSERT INTO `users` (`id`, `email`, `firstname`, `secondname`, `username`, `password`) VALUES | ||
(5, '[email protected]', 'ajdin', 'hukic', 'ajdin', '$argon2i$v=19$m=65536,t=4,p=1$NmJuLlFDbDBFdlYyaHlOTg$gshH63RiSQSaHI00hiW4nScu80SnpWkBUARyI+u0V58'), | ||
(14, '[email protected]', 'ajdin', 'hukic', 'ajdiNN', '$argon2i$v=19$m=65536,t=4,p=1$NmJuLlFDbDBFdlYyaHlOTg$gshH63RiSQSaHI00hiW4nScu80SnpWkBUARyI+u0V58'); | ||
|
||
-- | ||
-- Indexes for dumped tables | ||
-- | ||
|
||
-- | ||
-- Indexes for table `bids` | ||
-- | ||
ALTER TABLE `bids` | ||
ADD PRIMARY KEY (`id`), | ||
ADD KEY `bidder_id` (`bidder_id`), | ||
ADD KEY `item_id` (`item_id`); | ||
|
||
-- | ||
-- Indexes for table `items` | ||
-- | ||
ALTER TABLE `items` | ||
ADD PRIMARY KEY (`id`), | ||
ADD KEY `owner` (`owner_id`); | ||
|
||
-- | ||
-- Indexes for table `users` | ||
-- | ||
ALTER TABLE `users` | ||
ADD PRIMARY KEY (`id`); | ||
|
||
-- | ||
-- AUTO_INCREMENT for dumped tables | ||
-- | ||
|
||
-- | ||
-- AUTO_INCREMENT for table `bids` | ||
-- | ||
ALTER TABLE `bids` | ||
MODIFY `id` int(128) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40; | ||
|
||
-- | ||
-- AUTO_INCREMENT for table `items` | ||
-- | ||
ALTER TABLE `items` | ||
MODIFY `id` int(128) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; | ||
|
||
-- | ||
-- AUTO_INCREMENT for table `users` | ||
-- | ||
ALTER TABLE `users` | ||
MODIFY `id` int(128) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; | ||
|
||
-- | ||
-- Constraints for dumped tables | ||
-- | ||
|
||
-- | ||
-- Constraints for table `bids` | ||
-- | ||
ALTER TABLE `bids` | ||
ADD CONSTRAINT `bids_ibfk_1` FOREIGN KEY (`bidder_id`) REFERENCES `users` (`id`), | ||
ADD CONSTRAINT `bids_ibfk_2` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`); | ||
|
||
-- | ||
-- Constraints for table `items` | ||
-- | ||
ALTER TABLE `items` | ||
ADD CONSTRAINT `owner` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`); | ||
COMMIT; | ||
|
||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"require": { | ||
"mikecao/flight": "^2.0", | ||
"firebase/php-jwt": "^6.5", | ||
"zircote/swagger-php": "3.*" | ||
} | ||
} |
Oops, something went wrong.
98c62d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
auctions-ba-rest – ./rest
auctions-ba-rest.vercel.app
auctions-ba-rest-ajdinnn.vercel.app
auctions-ba-rest-git-main-ajdinnn.vercel.app
98c62d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
auctions-ba – ./
auctions-ba-git-main-ajdinnn.vercel.app
auctions-ba.vercel.app
auctions-ba-ajdinnn.vercel.app