-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: May 18, 2023 at 12:58 PM
-- Server version: 5.7.42
-- PHP Version: 8.1.16

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

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

--
-- Table structure for table `oc_medication_dispense`
--

CREATE TABLE `oc_medication_dispense` (
  `medication_dispense_id` int(11) NOT NULL,
  `dispense_code` varchar(255) NOT NULL,
  `product_type` varchar(255) NOT NULL COMMENT '(herbs, granule)',
  `parent_id` int(11) NOT NULL,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `oc_medication_dispense`
--

INSERT INTO `oc_medication_dispense` (`medication_dispense_id`, `dispense_code`, `product_type`, `parent_id`, `status`) VALUES
(1, 'SELF', '', 0, 1),
(2, 'ETCM', '', 0, 1),
(3, 'SELF_HERBS', 'herbs', 1, 1),
(4, 'SELF_BREWING', 'herbs', 1, 1),
(5, 'SELF_GRANULE', 'granule', 1, 1),
(6, 'HERBS', 'herbs', 2, 1),
(7, 'DECOCTION_BY_PARTNER', 'herbs', 2, 1),
(8, 'GRANULE', 'granule', 2, 1),
(9, 'SELF_OINTMENT', '', 1, 1),
(10, 'SELF_POWDER', '', 1, 1),
(11, 'SELF_PILLAR', '', 1, 1);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `oc_medication_dispense`
--
ALTER TABLE `oc_medication_dispense`
  ADD PRIMARY KEY (`medication_dispense_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `oc_medication_dispense`
--
ALTER TABLE `oc_medication_dispense`
  MODIFY `medication_dispense_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
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 */;
