joke
This commit is contained in:
@@ -8,7 +8,8 @@ cursor.execute('''CREATE TABLE IF NOT EXISTS jokes (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
joke TEXT NOT NULL,
|
||||
contributor TEXT NOT NULL,
|
||||
published TEXT NOT NULL,
|
||||
created_date TEXT NOT NULL,
|
||||
approved BOOLEAN DEFAULT 0,
|
||||
sentiment_score REAL DEFAULT 0.0,
|
||||
sentiment_label TEXT DEFAULT '😐 Neutral'
|
||||
)''')
|
||||
@@ -23,5 +24,5 @@ cursor.execute('''CREATE TABLE IF NOT EXISTS user_sentiments (
|
||||
)''')
|
||||
|
||||
conn.commit()
|
||||
print("✅ Database and tables created successfully with AI sentiment columns and user sentiment tracking!")
|
||||
print("✅ Database and tables created successfully with approval system and user sentiment tracking!")
|
||||
conn.close()
|
||||
Reference in New Issue
Block a user