feat: Implement user enrollment interaction to assign a random class role and add new role configurations.

This commit is contained in:
syntaxbullet
2025-12-18 20:09:19 +01:00
parent a97a24f72a
commit 528a66a7ef
5 changed files with 124 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ export const classes = pgTable('classes', {
id: bigint('id', { mode: 'bigint' }).primaryKey(),
name: varchar('name', { length: 255 }).unique().notNull(),
balance: bigint('balance', { mode: 'bigint' }).default(0n),
roleId: varchar('role_id', { length: 255 }),
});
// 2. Users