chatserver/migrations/005_create_files_table.sql
Andrea b8f2a91411 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
2025-04-22 23:04:35 +02:00

8 lines
240 B
SQL

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);