0% found this document useful (0 votes)
11 views2 pages

Item Adjustment

This document is a SQL dump for a database named `u650672385_PhoneMate`, generated using phpMyAdmin version 5.2.1. It includes the creation of a table `item_adjustment` with various fields and data entries, along with primary key and foreign key constraints. The dump also sets the SQL mode, transaction settings, and character set configurations.

Uploaded by

cheema1141
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Item Adjustment

This document is a SQL dump for a database named `u650672385_PhoneMate`, generated using phpMyAdmin version 5.2.1. It includes the creation of a table `item_adjustment` with various fields and data entries, along with primary key and foreign key constraints. The dump also sets the SQL mode, transaction settings, and character set configurations.

Uploaded by

cheema1141
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

-- phpMyAdmin SQL Dump

-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 04, 2025 at 05:52 PM
-- Server version: 10.11.10-MariaDB
-- PHP Version: 7.2.34

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: `u650672385_PhoneMate`
--

-- --------------------------------------------------------

--
-- Table structure for table `item_adjustment`
--

CREATE TABLE `item_adjustment` (


`item_adj_id` int(11) NOT NULL,
`item_adj_price` int(11) NOT NULL,
`pieces_pu` int(11) NOT NULL,
`item_tag` varchar(20) NOT NULL DEFAULT 'normal_selling',
`fk_item_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `item_adjustment`
--

INSERT INTO `item_adjustment` (`item_adj_id`, `item_adj_price`, `pieces_pu`,


`item_tag`, `fk_item_id`) VALUES
(1, 160, 30, 'top_selling', 1),
(2, 250, 50, 'hot_selling', 2),
(3, 450, 190, 'normal_selling', 3),
(4, 250, 100, 'normal_selling', 4),
(5, 70, 200, 'normal_selling', 5),
(6, 100, 100, 'top_selling', 6),
(7, 120, 200, 'normal_selling', 7),
(8, 270, 200, 'normal_selling', 8),
(9, 200, 20, 'normal_selling', 9),
(10, 300, 50, 'normal_selling', 10),
(11, 200, 300, 'hot_selling', 11),
(12, 600, 100, 'normal_selling', 12),
(13, 2500, 10, 'top_selling', 13),
(14, 3500, 10, 'normal_selling', 14),
(15, 6000, 10, 'top_selling', 15),
(16, 3850, 1, 'hot_selling', 16);
--
-- Indexes for dumped tables
--

--
-- Indexes for table `item_adjustment`
--
ALTER TABLE `item_adjustment`
ADD PRIMARY KEY (`item_adj_id`),
ADD KEY `fk_item_adjustment_item_id` (`fk_item_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `item_adjustment`
--
ALTER TABLE `item_adjustment`
MODIFY `item_adj_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `item_adjustment`
--
ALTER TABLE `item_adjustment`
ADD CONSTRAINT `fk_item_adjustment_item_id` FOREIGN KEY (`fk_item_id`) REFERENCES
`items` (`item_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 */;

You might also like