track tuhmayto xhamster activity
This commit is contained in:
20
tuhmayto/dummy.sql
Normal file
20
tuhmayto/dummy.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
-- Create the table if it doesn't exist
|
||||
CREATE TABLE IF NOT EXISTS activity_log (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
timestamp TEXT NOT NULL
|
||||
);
|
||||
|
||||
-- Insert dummy data for one year
|
||||
DELETE FROM activity_log; -- Clear existing data
|
||||
|
||||
WITH RECURSIVE dates(date) AS (
|
||||
SELECT datetime('2023-12-01 00:00:00')
|
||||
UNION ALL
|
||||
SELECT datetime(date, '+1 hour')
|
||||
FROM dates
|
||||
WHERE date < datetime('2024-12-01 00:00:00')
|
||||
)
|
||||
INSERT INTO activity_log (timestamp)
|
||||
SELECT date
|
||||
FROM dates
|
||||
WHERE random() % 4 = 0; -- Randomly select approximately 25% of hours for activity
|
||||
Reference in New Issue
Block a user