Vous êtes sur la page 1sur 7

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

--

-- Table structure for table `animal`

--

CREATE TABLE `animal` (

`ID` int(30) NOT NULL,

`Nume` varchar(50) NOT NULL,

`Specia` varchar(50) NOT NULL,

`Varsta` varchar(30) NOT NULL,

`Sex` varchar(50) NOT NULL,

`Numar_identificare` varchar(50) NOT NULL,

`Proprietar` varchar(50) NOT NULL

) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--

-- Dumping data for table `animal`

--

INSERT INTO `animal` (`ID`, `Nume`, `Specia`, `Varsta`, `Sex`, `Numar_identificare`, `Proprietar`) VALUES

(1, 'Rex', 'Bovina', '3 ani', 'M', '19981205070023', 'Popescu Ionica'),


(2, 'Azorel', 'Canina', '3 ani', 'M', '123569874564', 'Vasile Pecura'),

(4, 'Fulga', 'Bovina', '5 ani', 'F', '567894235690', 'Vasile Ardelean'),

(3, 'Stela', 'Cabalina', '5 ani', 'F', '245698315797', 'Silaghi Claudiu'),

(5, 'Zoe', 'Bovina', '4 ani', 'F', '4521983627', 'Popescu Ion');

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

--

-- Table structure for table `consultatie`

--

CREATE TABLE `consultatie` (

`ID` int(30) NOT NULL,

`Data` datetime(6) NOT NULL,

`Animal` varchar(50) NOT NULL,

`Diagnostic` varchar(50) NOT NULL,

`Tratament` varchar(50) NOT NULL,

`Observatii` text NOT NULL,

`Data_control` datetime(6) NOT NULL

) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--

-- Dumping data for table `consultatie`

--
INSERT INTO `consultatie` (`ID`, `Data`, `Animal`, `Diagnostic`, `Tratament`, `Observatii`, `Data_control`)
VALUES

(1, '2018-03-01 00:00:00.000000', 'Rex', 'Rabie', 'Vaccin antirabic', '', '2018-03-08 00:00:00.000000');

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

--

-- Table structure for table `proprietar`

--

CREATE TABLE `proprietar` (

`CNP` int(50) NOT NULL,

`Nume` varchar(150) NOT NULL,

`Prenume` varchar(150) NOT NULL,

`Adresa` varchar(150) NOT NULL

) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--

-- Dumping data for table `proprietar`

--

INSERT INTO `proprietar` (`CNP`, `Nume`, `Prenume`, `Adresa`) VALUES

(1800512075, 'Popescu', 'Ion', 'Strada Principala, nr 23\r\nLoc. Arad, Jud. Arad'),

(1589756, 'Stefan', 'Gheorghe', 'Strada Pasunii, nr 45, Loc. Arad, Jud. Arad');

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

-- Table structure for table `tratament`

--

CREATE TABLE `tratament` (

`ID` int(30) NOT NULL,

`Produs` varchar(150) NOT NULL,

`Serie_si_valabilitate` varchar(150) NOT NULL,

`Doza_si_Calea_de_administrare` varchar(150) NOT NULL,

`Durata_tratament` varchar(150) NOT NULL

) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--

-- Indexes for dumped tables

--

--

-- Indexes for table `animal`

--

ALTER TABLE `animal`

ADD PRIMARY KEY (`ID`),

ADD KEY `ID` (`ID`),

ADD KEY `ID_2` (`ID`),

ADD KEY `ID_3` (`ID`),


ADD KEY `Proprietar` (`Proprietar`),

ADD KEY `Proprietar_2` (`Proprietar`);

--

-- Indexes for table `consultatie`

--

ALTER TABLE `consultatie`

ADD PRIMARY KEY (`ID`),

ADD KEY `Tratament` (`Tratament`),

ADD KEY `Animal` (`Animal`);

--

-- Indexes for table `proprietar`

--

ALTER TABLE `proprietar`

ADD PRIMARY KEY (`CNP`),

ADD KEY `CNP` (`CNP`),

ADD KEY `CNP_2` (`CNP`);

--

-- Indexes for table `tratament`

--

ALTER TABLE `tratament`

ADD PRIMARY KEY (`ID`);


--

-- AUTO_INCREMENT for dumped tables

--

--

-- AUTO_INCREMENT for table `animal`

--

ALTER TABLE `animal`

MODIFY `ID` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--

-- AUTO_INCREMENT for table `consultatie`

--

ALTER TABLE `consultatie`

MODIFY `ID` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--

-- AUTO_INCREMENT for table `proprietar`

--

ALTER TABLE `proprietar`

MODIFY `CNP` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1800512076;

--

-- AUTO_INCREMENT for table `tratament`

--
ALTER TABLE `tratament`

MODIFY `ID` int(30) NOT NULL AUTO_INCREMENT;

COMMIT;