Skip to content
Snippets Groups Projects
Commit f9491d99 authored by fcrisafulli-dev's avatar fcrisafulli-dev
Browse files

schema

parent 9f3ad80a
No related branches found
No related tags found
No related merge requests found
# Crisis Events Text Summarization
## Adgenda
## QSL Schema
```
Enum CollectionType {
TextFileList
URLList
HTMLFileList
}
Table EventCollections {
User: UUID,
CollectionType: CollectionType
CollectionID: UUID,
Summary: BLOB
}
Table TextFileCollections{
ID: UUID,
Collection: idk
}
... similar for all other enum types
```
\ No newline at end of file
File added
......@@ -8,6 +8,19 @@ def init_database():
#try to delete the databse and all relevant data
connection = sqlite3.connect("crisis_events.db")
cur = connection.cursor()
cur.execute("CREATE TABLE movie(title, year, score)")
cur.execute("""
INSERT INTO movie VALUES
('Monty Python and the Holy Grail', 1975, 8.2),
('And Now for Something Completely Different', 1971, 7.5)
""")
res = cur.execute("SELECT name FROM sqlite_master")
print(res.fetchone())
if __name__ == "__main__":
......
DROP TABLE
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment