Add kick and file management features
- Implement kick functionality with add, remove, and check operations - Add file management with create, request, and verify operations - Update database schema with new tables and columns - Enhance command handling in client module for new features - Fix argument order in verify_password function
This commit is contained in:
parent
91b6942348
commit
b8f2a91411
6 changed files with 436 additions and 10 deletions
7
migrations/004_create_kick_table.sql
Normal file
7
migrations/004_create_kick_table.sql
Normal file
|
@ -0,0 +1,7 @@
|
|||
CREATE TABLE IF NOT EXISTS kick (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT, -- Unique ID for each kick
|
||||
user_name VARCHAR(255) NOT NULL -- ID of the user who made the kick
|
||||
);
|
||||
|
||||
-- -- Create an index on the user_name column for faster lookups
|
||||
CREATE INDEX IF NOT EXISTS idx_kick_user_name ON kick (user_name);
|
8
migrations/005_create_files_table.sql
Normal file
8
migrations/005_create_files_table.sql
Normal file
|
@ -0,0 +1,8 @@
|
|||
CREATE TABLE IF NOT EXISTS files (
|
||||
id SERIAL PRIMARY KEY,
|
||||
name VARCHAR(255) NOT NULL,
|
||||
path VARCHAR(255) NOT NULL,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_files_name ON files (name);
|
2
migrations/006_add_admin_verified_to_files.sql
Normal file
2
migrations/006_add_admin_verified_to_files.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE files
|
||||
ADD COLUMN admin_verified BOOLEAN DEFAULT FALSE;
|
Loading…
Add table
Add a link
Reference in a new issue