NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

CREATE TABLE Users (
User_ID INT AUTO_INCREMENT PRIMARY KEY,
User_Name VARCHAR(50) NOT NULL,
User_Password VARCHAR(500) NOT NULL,
Full_Name VARCHAR(100) NOT NULL,
Phone_Number VARCHAR(20) NOT NULL,
Is_Admin BOOLEAN NOT NULL DEFAULT FALSE
);


CREATE TABLE Plant (
Plant_ID INT AUTO_INCREMENT PRIMARY KEY,
Plant_Name VARCHAR(100) NOT NULL,
Scientific_Name VARCHAR(200) NOT NULL,
Plant_Description TEXT,
Image LONGBLOB
);


CREATE TABLE Culture_Medium (
Culture_Medium_ID INT AUTO_INCREMENT PRIMARY KEY,
Culture_Medium_Name VARCHAR(100) NOT NULL,
Culture_Medium_Description TEXT
);


CREATE TABLE Growth_Parameters (
Growth_Parameters_ID INT AUTO_INCREMENT PRIMARY KEY,
Temperature DECIMAL(5,2),
Photoperiod VARCHAR(50),
Light_Intensity VARCHAR(50),
Humidity DECIMAL(5,2),
pH DECIMAL(4,2),
Container VARCHAR(50),
Container_Size VARCHAR(50)
);


CREATE TABLE Laboratory (
Laboratory_ID INT AUTO_INCREMENT PRIMARY KEY,
Laboratory_Name VARCHAR(100) NOT NULL,
Address VARCHAR(200) NOT NULL,
Phone_Number VARCHAR(20) NOT NULL
);


CREATE TABLE Nursery (
Nursery_ID INT AUTO_INCREMENT PRIMARY KEY,
Nursery_Name VARCHAR(100) NOT NULL,
Address VARCHAR(200) NOT NULL,
Phone_Number VARCHAR(20) NOT NULL
);


CREATE TABLE Greenhouse (
Greenhouse_ID INT AUTO_INCREMENT PRIMARY KEY,
Greenhouse_Name VARCHAR(100) NOT NULL,
Address VARCHAR(200) NOT NULL,
Phone_Number VARCHAR(20) NOT NULL
);


CREATE TABLE Field (
Field_ID INT AUTO_INCREMENT PRIMARY KEY,
Field_Name VARCHAR(100) NOT NULL,
Address VARCHAR(200) NOT NULL,
Field_Size DECIMAL(10,2) NOT NULL
);


CREATE TABLE Culture (
Culture_ID INT AUTO_INCREMENT PRIMARY KEY,
Plant_ID INT,
Culture_Medium_ID INT,
Laboratory_ID INT,
Nursery_ID INT,
Greenhouse_ID INT,
Field_ID INT,
Start_Date DATE,
Duration_Of_Nursery_1 INT,
Duration_Of_Laboratory INT,
Duration_Of_Nursery_2 INT,
Duration_Of_GreenHouse INT,
Duration_Of_Field INT,
Growth_Parameters_ID INT,
FOREIGN KEY (Plant_ID) REFERENCES Plant(Plant_ID),
FOREIGN KEY (Culture_Medium_ID) REFERENCES Culture_Medium(Culture_Medium_ID),
FOREIGN KEY (Laboratory_ID) REFERENCES Laboratory(Laboratory_ID),
FOREIGN KEY (Nursery_ID) REFERENCES Nursery(Nursery_ID),
FOREIGN KEY (Greenhouse_ID) REFERENCES Greenhouse(Greenhouse_ID),
FOREIGN KEY (Field_ID) REFERENCES Field(Field_ID),
FOREIGN KEY (Growth_Parameters_ID) REFERENCES Growth_Parameters(Growth_Parameters_ID)
);


CREATE TABLE Growth_Record (
Growth_Record_ID INT AUTO_INCREMENT PRIMARY KEY,
Culture_ID INT,
Observation_Date DATE,
Height DECIMAL(10,2),
Width DECIMAL(10,2),
Number_of_Leaves INT,
Health_Status VARCHAR(50),
Image VARCHAR(100),
FOREIGN KEY (Culture_ID) REFERENCES Culture(Culture_ID)
);


CREATE TABLE Tasks (
Task_ID INT AUTO_INCREMENT PRIMARY KEY,
Task_Category VARCHAR(20) NOT NULL,
Title VARCHAR(50) NOT NULL,
Description VARCHAR(500),
Priority VARCHAR(10) NOT NULL,
Due_Date DATE NOT NULL,
Status VARCHAR(20) NOT NULL DEFAULT 'Incomplete'
);















     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.