Commit Graph

16 Commits

Author SHA1 Message Date
de306ede14 Feat: Add schema v2 with post_type column 2025-10-03 12:40:52 -07:00
33c759cec7 Fix: Use robust JSON helper for header handling 2025-10-02 11:54:25 -07:00
8d54c79545 Feat: Add 'mod' role and set_role API action 2025-10-02 11:29:33 -07:00
301364400a Refactor: Revert to pass_hash auth, remove sessions 2025-10-02 11:15:11 -07:00
9c24781322 Feat: Add sessions table and cascade deletes 2025-10-02 11:07:40 -07:00
8c26d21842 Feat: Add password auth, delete action, and schema caches 2025-10-02 10:52:25 -07:00
ab86df1e92 Fix: Use partial indexes for votes and improve errors 2025-10-02 10:34:20 -07:00
6ee7e1cd16 Fix: Correct D1 schema creation and improve votes table 2025-10-02 10:30:59 -07:00
a8ae9cced6 Refactor: Improve API error responses with cause 2025-10-02 10:03:41 -07:00
efd62ff3a7 Fix: Use db.exec for schema creation as batch is unsupported 2025-10-02 09:59:27 -07:00
467666cf67 Refactor: Version schema definition as schemaV1 2025-10-02 09:53:28 -07:00
70fb4d3e74 Feat: Add pass_hash to users table for authentication 2025-10-02 09:44:57 -07:00
8cd486d7c2 Refactor: Rename post url column to link for clarity 2025-10-02 09:39:25 -07:00
4beae0afa2 Refactor: Simplify ban logic to use only banned_until 2025-10-02 09:33:15 -07:00
0ab28bb33a Feat: Add user roles for admin/owner powers 2025-10-02 09:07:19 -07:00
be41af9e13 Feat: Add API endpoint for D1 schema management 2025-10-02 08:50:32 -07:00