-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor changes to Organization and add endpoint for address. Add Aviny…
…a type table
- Loading branch information
Showing
4 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
USE avinya_db; | ||
|
||
CREATE TABLE IF NOT EXISTS avinya_type ( | ||
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, | ||
active BOOLEAN NOT NULL, | ||
global_type ENUM("Employee", "Customer", "Volunteer", "Applicant", "Team") NOT NULL, | ||
name VARCHAR(255), | ||
foundation_type ENUM( | ||
"Advisors", | ||
"Educator", | ||
"Technology", | ||
"Operations", | ||
"Parent", | ||
"Student" | ||
), | ||
focus ENUM( | ||
"Bootcamp", | ||
"Healthcare", | ||
"Information Technology" | ||
), | ||
level INT | ||
); | ||
|
||
ALTER TABLE organization | ||
ADD COLUMN avinya_type INT NOT NULL; | ||
ALTER TABLE organization | ||
ADD FOREIGN KEY (avinya_type) REFERENCES avinya_db.avinya_type(id); |