You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(core,auth,admin): improve database operations and authentication flow
- Refactor database query operations and model management
- Update authentication dependencies and JWT handling
- Improve admin URLs and user management
- Add new migrations for example project
- Fix createsuperuser command and middleware
- Update example project configuration and views
op.execute('''CREATE TABLE IF NOT EXISTS groups_groupmodel ("id" TEXT PRIMARY KEY, "name" TEXT UNIQUE NOT NULL, "description" TEXT NOT NULL)''')
23
+
op.execute('''CREATE TABLE IF NOT EXISTS users_usermodel ("id" TEXT PRIMARY KEY, "name" TEXT NOT NULL, "age" TEXT NOT NULL, "email" TEXT NOT NULL, "password_hash" TEXT NOT NULL, "group" TEXT NOT NULL, "organization" TEXT NOT NULL, "is_active" TEXT NOT NULL, "is_superuser" TEXT NOT NULL)''')
24
+
# ### end Raystack commands ###
25
+
26
+
27
+
defdowngrade():
28
+
"""Revert migration."""
29
+
# ### commands auto generated by Raystack ###
30
+
op.execute('DROP TABLE IF EXISTS groups_groupmodel')
31
+
op.execute('DROP TABLE IF EXISTS users_usermodel')
op.execute('''CREATE TABLE IF NOT EXISTS groups_groupmodel ("id" TEXT PRIMARY KEY, "name" TEXT UNIQUE NOT NULL, "description" TEXT NOT NULL)''')
23
+
op.execute('''CREATE TABLE IF NOT EXISTS users_usermodel ("id" TEXT PRIMARY KEY, "name" TEXT NOT NULL, "age" TEXT NOT NULL, "email" TEXT NOT NULL, "password_hash" TEXT NOT NULL, "group" TEXT NOT NULL, "organization" TEXT NOT NULL, "is_active" TEXT NOT NULL, "is_superuser" TEXT NOT NULL)''')
24
+
# ### end Raystack commands ###
25
+
26
+
27
+
defdowngrade():
28
+
"""Revert migration."""
29
+
# ### commands auto generated by Raystack ###
30
+
op.execute('DROP TABLE IF EXISTS groups_groupmodel')
31
+
op.execute('DROP TABLE IF EXISTS users_usermodel')
0 commit comments