export const roles = pgTable('roles', {
id: uuid('id').defaultRandom().notNull().primaryKey(),
precedence: integer('precedence').notNull().default(1),
name: text('name').notNull().unique(),
notification: notificationEnum('notification').notNull().default('none'),
notificationScope: notificationScopeEnum('notificationScope').notNull().default('self'),
invite: inviteEnum('invite').notNull().default('none'),
role: roleEnum('role').notNull().default('none'),
quickLink: quickLinkEnum('quickLink').notNull().default('none'),
course: courseEnum('course').notNull().default('none'),
profile: profile('profile').notNull().default('write'),
profileScope: profileScope('profileScope').notNull().default('self'),
batch: batch('batch').notNull().default('none'),
marks: marksEnum('marks_enum').notNull().default('read'),
marksScope: marksScope('marksScope').notNull().default('self'),
registrations: registrationEnum('registrations_enum').notNull().default('read'),
registrationScope: registrationScope('registrationScope').notNull().default('self')
})
export const roles = pgTable('roles', {
id: uuid('id').defaultRandom().notNull().primaryKey(),
precedence: integer('precedence').notNull().default(1),
name: text('name').notNull().unique(),
notification: notificationEnum('notification').notNull().default('none'),
notificationScope: notificationScopeEnum('notificationScope').notNull().default('self'),
invite: inviteEnum('invite').notNull().default('none'),
role: roleEnum('role').notNull().default('none'),
quickLink: quickLinkEnum('quickLink').notNull().default('none'),
course: courseEnum('course').notNull().default('none'),
profile: profile('profile').notNull().default('write'),
profileScope: profileScope('profileScope').notNull().default('self'),
batch: batch('batch').notNull().default('none'),
marks: marksEnum('marks_enum').notNull().default('read'),
marksScope: marksScope('marksScope').notNull().default('self'),
registrations: registrationEnum('registrations_enum').notNull().default('read'),
registrationScope: registrationScope('registrationScope').notNull().default('self')
})