mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-10-12 02:26:09 -05:00
Refactor frontend data models
This commit is contained in:
14
src-ui/src/app/data/user.ts
Normal file
14
src-ui/src/app/data/user.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { ObjectWithId } from './object-with-id'
|
||||
|
||||
export interface User extends ObjectWithId {
|
||||
username?: string
|
||||
first_name?: string
|
||||
last_name?: string
|
||||
date_joined?: Date
|
||||
is_staff?: boolean
|
||||
is_active?: boolean
|
||||
is_superuser?: boolean
|
||||
groups?: number[] // Group[]
|
||||
user_permissions?: string[]
|
||||
inherited_permissions?: string[]
|
||||
}
|
Reference in New Issue
Block a user