-
Notifications
You must be signed in to change notification settings - Fork 0
Database Schema
Demeatrice J. Sherrod edited this page Sep 14, 2023
·
1 revision
| column name | data type | details |
|---|---|---|
id |
integer | not null, primary key |
username |
string(40) | not null, unique |
image_url |
string(1000) | not null, unique |
zip_code |
string(10) | not null, unique |
email |
string(255) | not null, unique |
hashed_password |
string(255) | not null |
- unique constraint on
username - unique constraint on
email - SQLAlchemy
GroupsrelationshipviaUsers_Groupstable - SQLAlchemy
EventsrelationshipviaRSVPstable
| column name | data type | details |
|---|---|---|
id |
integer | not null, primary key |
group_name |
string(100) | not null, unique |
description |
text | not null |
city |
string(50) | not null |
state |
string(30) | not null |
zip_code |
integer | not null |
is_active |
boolean | not null |
image_url |
string(1000) | not null, unique |
leader_id |
integer | not null, foreign key |
-
leader_idreferencesUserstable as aforeign key - unique constraint on
group_name - SQLAlchemy
UsersrelationshipviaUsers_Groupstable - SQLAlchemy
Eventsrelationship
| column name | data type | details |
|---|---|---|
id |
integer | not null, primary key |
event_name |
string(100) | not null, unique |
description |
text | not null |
address |
string(100) | not null |
city |
string(50) | not null |
state |
string(2) | not null |
zip_code |
integer | not null |
virtual |
boolean | defaultValue=false |
type |
string(50) | not null |
status |
string(30) | defaultValue='pending' |
image_url |
string(1000) | not null, unique |
group_id |
integer | not null, foreign key |
start_time |
datetime | |
end_time |
datetime |
-
group_idreferencesGroupstable as aforeign key - unique constraint on
event_name - SQLAlchemy
Groupsrelationship - SQLAlchemy
Comments``relationship - SQLAlchemy
UsersrelationshipviaRSVPstable
| column name | data type | details |
|---|---|---|
id |
integer | not null, primary key |
user_id |
integer | not null, foreign key |
event_id |
integer | not null, foreign key |
-
user_idreferencesUserstable as aforeign key -
event_idreferencesEventstable as aforeign key - SQLAlchemy
Usersrelationship - SQLAlchemy
Eventsrelationship
| column name | data type | details |
|---|---|---|
id |
integer | not null, primary key |
user_id |
integer | not null, foreign key |
event_id |
integer | not null, foreign key |
body |
text | not null |
-
user_idreferencesUserstable as aforeign key -
event_idreferencesEventstable as aforeign key - SQLAlchemy
Usersrelationship - SQLAlchemy
Eventsrelationship
| column name | data type | details |
|---|---|---|
id |
integer | not null, primary key |
user_id |
integer | not null, foreign key |
group_id |
integer | not null, foreign key |
-
user_idreferencesUserstable as aforeign key -
group_idreferencesGroupstable as aforeign key - SQLAlchemy
Usersrelationship - SQLAlchemy
Groupsrelationship
