Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Scratchcat1 authored Feb 27, 2018
1 parent bfaea73 commit 7efef92
Show file tree
Hide file tree
Showing 24 changed files with 88 additions and 0 deletions.
Binary file modified docs/Documentation/AATC_AStar Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Client Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Client_Text_UI Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Config Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Coordinate Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Create_Graph Writeup2.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Crypto Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_CryptoBeta Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_DB Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Drone Writeup2.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Drone_Logic Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_GPIO Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Monitor Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Monitor_Viewer Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_NoFlyZoneGrapher Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_PriorityQueue Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Server_002 Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Server_Starter Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/AATC_Weather Writeup.odt
Binary file not shown.
88 changes: 88 additions & 0 deletions docs/Documentation/DDL.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
CREATE TABLE User(
UserID INTEGER PRIMARY KEY AUTO_INCREMENT,
Username TEXT,
Password TEXT,
PublicVisibleFlights INT,
PermissionAdder INT ,
ZoneCreatorPermission INT,
ZoneRemoverPermission INT,
ZoneModifierPermission INT)

CREATE TABLE Drone(
DroneID INTEGER PRIMARY KEY AUTO_INCREMENT,
UserID INT,
DroneName TEXT,
DroneType TEXT,
DroneSpeed INT,
DroneRange INT,
DroneWeight REAL,
FlightsFlown INT,
LastCoords TEXT,
LastBattery REAL,
FOREIGN KEY(UserID) REFERENCES User(UserID))

CREATE TABLE Monitor(
MonitorID INTEGER PRIMARY KEY AUTO_INCREMENT,
MonitorName TEXT,
MonitorPassword TEXT)


CREATE TABLE MonitorPermission(
MonitorID INT ,
UserID INT,
LastAccessed TEXT,
ExpiryDate TEXT,
PRIMARY KEY(MonitorID,UserID),
FOREIGN KEY(MonitorID) REFERENCES Monitor(MonitorID),
FOREIGN KEY(UserID) REFERENCES User(UserID))


CREATE TABLE Flight(FlightID INTEGER PRIMARY KEY AUTO_INCREMENT,
DroneID INT,
StartCoords TEXT,
EndCoords TEXT,
StartTime REAL,
ETA REAL,
EndTime REAL,
Distance REAL,
XOffset REAL ,
YOffset REAL ,
ZOffset REAL,
Completed INT,
FOREIGN KEY(DroneID) REFERENCES Drone(DroneID))


CREATE TABLE FlightWaypoints(
FlightID INT,
WaypointNumber INT,
Coords TEXT,
ETA REAL,
BlockTime INT ,
PRIMARY KEY(FlightID,WaypointNumber),
FOREIGN KEY(FlightID) REFERENCES Flight(FlightID))



CREATE TABLE NoFlyZone(
ZoneID INTEGER PRIMARY KEY AUTO_INCREMENT,
StartCoord TEXT,
EndCoord TEXT,
Level INT,
OwnerUserID INT,
FOREIGN KEY(OwnerUserID) REFERENCES User(UserID))


CREATE TABLE DroneCredentials(DroneID INTEGER PRIMARY KEY AUTO_INCREMENT ,
DronePassword TEXT)


CREATE TABLE InputStack(chat_id INT ,
stack_pos INT,
value TEXT,
PRIMARY KEY(chat_id,stack_pos))

CREATE TABLE Sessions(chat_id INT PRIMARY KEY,
UserID INT)



Binary file modified docs/Documentation/HedaBot Writeup.odt
Binary file not shown.
Binary file modified docs/Documentation/Install_and_Setup.odt
Binary file not shown.
Binary file modified docs/Documentation/OOP.odt
Binary file not shown.
Binary file modified docs/Documentation/Recvall Writeup.odt
Binary file not shown.

0 comments on commit 7efef92

Please sign in to comment.