Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d75249a
added new column (price) in subscriptions and in users table added no…
Jun 26, 2025
9eac172
added roles constant and type to use in BE/FE .. added in schema
Jun 26, 2025
e851aa4
added role in validate request to check in apis authorization
Jun 26, 2025
73a603c
created migration scripts for schema changes and added default values…
Jun 26, 2025
3a8646e
added admin auththorization wrapper function for admin routes only
Jun 26, 2025
057d9d4
added users , subscriptions get and update APIs
Jun 26, 2025
2e644e9
changed user response
Jun 26, 2025
4d169e2
removed reparate endpoint of update ... handled in by id route
Jun 26, 2025
f8f0081
sending updated user when subscription changed
Jun 26, 2025
bc9930a
added GET by id and PATCH by id on same route ..to update subscriptio…
Jun 26, 2025
9a28558
added GET by user and PATCH user By id route on same endpoint
Jun 26, 2025
120711c
added route to change role of the specific user
Jun 26, 2025
5c9a414
added role in login requst
Jun 26, 2025
93380de
navigation changes if role is admin
Jun 26, 2025
12acd48
added common axios client
Jun 26, 2025
19dc599
added admin route and basic functionality
Jun 26, 2025
cfc0581
added post api for the subscription add
Jun 27, 2025
d281fbe
added count of remaining and used count for the recordings
Jun 27, 2025
18b3819
Added edit functionality for user record
poojalandejosh Jun 27, 2025
9209aed
added changes in amdin route handler
Jul 1, 2025
07cc157
added sample transcription get api
Jul 1, 2025
cfe0498
added GET and DELETE by id routes for transcriptions
Jul 1, 2025
f17e858
added get transcriptions by id route .. user specific transcriptions
Jul 1, 2025
7bf1164
Merge branch 'admin-ui-changes' of https://github.com/joshsoftware/li…
Jul 1, 2025
d199bbc
api integration for user , subscription section and added modal for u…
poojalandejosh Jul 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/migrations/0011_sour_maria_hill.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Step 1: Set default if not already set
ALTER TABLE "user" ALTER COLUMN "role" SET DEFAULT 'USER';

-- Step 2: Fix existing data
UPDATE "user" SET role = 'USER' WHERE role IS NULL;

-- Step 3: Set NOT NULL constraint
ALTER TABLE "user" ALTER COLUMN "role" SET NOT NULL;

-- Step 4: New Column added and Set NOT NULL constraint with default value
ALTER TABLE "subscriptions" ADD COLUMN "price" integer DEFAULT 0 NOT NULL;
Loading