You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
976 B
Go

package dbi
const ActivityReportSchema = `
CREATE TABLE users (
APIKey text not null,
FirstName text not null,
LastName text not null,
Password text not null,
Status text not null CHECK (Status in ('faculty', 'admin')),
Username text PRIMARY KEY
);
CREATE TABLE scholarship (
UID text PRIMARY KEY,
Citation text,
Hyperlink text,
DocumentLink text,
Status text not null CHECK (Status in ('reported','posted')),
Created text,
Modified text,
Username text REFERENCES users(Username)
);
CREATE TABLE activities (
UID text PRIMARY KEY,
Title text,
Description text,
Hyperlink text,
Status text not null CHECK (Status in ('reported','posted')),
Created text,
Modified text,
Username text REFERENCES users(Username)
);
CREATE TABLE appearances (
UID text PRIMARY KEY,
Title text,
Description text,
Hyperlink text,
Status text not null CHECK (Status in ('reported','posted')),
Created text,
Modified text,
Username text REFERENCES users(Username)
);
`