diff --git a/dbi/schema.go b/dbi/schema.go new file mode 100644 index 0000000..c7d6223 --- /dev/null +++ b/dbi/schema.go @@ -0,0 +1,37 @@ +package dbi + +activity_report_schema = ` +CREATE TABLE users ( + FirstName text not null, + LastName text not null, + Username text not null, + PRIMARY KEY Username +); +CREATE TABLE scholarship ( + UID text PRIMARY KEY, + Citation text, + Hyperlink text, + Created text, + Modified text, + Username text REFERENCES users(Username) +); +CREATE TABLE activities ( + UID text PRIMARY KEY, + Title text, + Description text, + Hyperlink text, + Created text, + Modified text, + Username text REFERENCES users(Username) +); +CREATE TABLE appearances ( + UID text PRIMARY KEY, + Title text, + Description text, + Hyperlink text, + Created text, + Modified text, + Username text REFERENCES users(Username) +); +` +