Skip to content

数据表定义#

arkid.core.models #

AccountLifeCrontab (BaseModel) django-model #

AccountLifeCrontab(id, is_del, is_active, updated, created, name, tenant, config)

config: JSONField blank django-field nullable #

Config

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

name: CharField blank django-field nullable #

name

tenant: ForeignKey django-field #

Tenant

updated: DateTimeField blank django-field nullable #

更新时间

App (BaseModel, ExpandModel) django-model #

App(id, is_del, is_active, updated, created, tenant, name, url, logo, description, type, secret, config, package, entry_permission, arkstore_category_id, arkstore_app_id)

arkstore_app_id: CharField blank django-field nullable #

Arkstore app id

arkstore_category_id: IntegerField django-field nullable #

ArkStore分类ID

config: OneToOneField blank django-field nullable #

config

created: DateTimeField blank django-field nullable #

创建时间

description: TextField blank django-field nullable #

description

entry_permission: ForeignKey blank django-field nullable #

entry permission

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

logo

name: CharField django-field #

name

package: CharField blank django-field nullable #

package

secret: CharField blank django-field nullable #

secret

tenant: ForeignKey django-field #

tenant

type: CharField django-field #

type

updated: DateTimeField blank django-field nullable #

更新时间

url: CharField blank django-field nullable #

url

AppExpandAbstract (BaseModel) django-model #

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

target: OneToOneField blank django-field #

target

updated: DateTimeField blank django-field nullable #

更新时间

foreign_key (BaseModel, ExpandModel) django-model #

App(id, is_del, is_active, updated, created, tenant, name, url, logo, description, type, secret, config, package, entry_permission, arkstore_category_id, arkstore_app_id)

arkstore_app_id: CharField blank django-field nullable #

Arkstore app id

arkstore_category_id: IntegerField django-field nullable #

ArkStore分类ID

config: OneToOneField blank django-field nullable #

config

created: DateTimeField blank django-field nullable #

创建时间

description: TextField blank django-field nullable #

description

entry_permission: ForeignKey blank django-field nullable #

entry permission

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

logo

name: CharField django-field #

name

package: CharField blank django-field nullable #

package

secret: CharField blank django-field nullable #

secret

tenant: ForeignKey django-field #

tenant

type: CharField django-field #

type

updated: DateTimeField blank django-field nullable #

更新时间

url: CharField blank django-field nullable #

url

AppGroup (BaseModel, ExpandModel) django-model #

AppGroup(id, is_del, is_active, updated, created, tenant, name, parent)

apps: ManyToManyField blank django-field #

APP List

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

name: CharField django-field #

name

parent: ForeignKey blank django-field nullable #

parent

tenant: ForeignKey django-field #

tenant

updated: DateTimeField blank django-field nullable #

更新时间

AppGroupExpandAbstract (BaseModel) django-model #

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

target: OneToOneField blank django-field #

target

updated: DateTimeField blank django-field nullable #

更新时间

foreign_key (BaseModel, ExpandModel) django-model #

AppGroup(id, is_del, is_active, updated, created, tenant, name, parent)

apps: ManyToManyField blank django-field #

APP List

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

name: CharField django-field #

name

parent: ForeignKey blank django-field nullable #

parent

tenant: ForeignKey django-field #

tenant

updated: DateTimeField blank django-field nullable #

更新时间

AppPermissionResult (BaseModel, ExpandModel) django-model #

AppPermissionResult(id, is_del, is_active, updated, created, self_app, tenant, app, result)

app: ForeignKey blank django-field nullable #

App

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

result: CharField blank django-field nullable #

权限结果

self_app: ForeignKey blank django-field nullable #

自身应用

tenant: ForeignKey django-field #

租户

updated: DateTimeField blank django-field nullable #

更新时间

ApproveAction (BaseModel, ExpandModel) django-model #

ApproveAction(id, is_del, is_active, updated, created, name, path, method, description, extension, tenant)

created: DateTimeField blank django-field nullable #

创建时间

description: TextField blank django-field nullable #

Description

extension: ForeignKey django-field nullable #

Extension

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

method: CharField django-field #

Request Method

name: CharField django-field #

Name

path: CharField django-field #

Request Path

tenant: ForeignKey django-field nullable #

Tenant

updated: DateTimeField blank django-field nullable #

更新时间

ApproveRequest (BaseModel, ExpandModel) django-model #

ApproveRequest(id, is_del, is_active, updated, created, user, tenant, action, environ, body, status, request_path, request_get, request_post)

action: ForeignKey django-field #

Request Action

body: BinaryField django-field #

Request Body

created: DateTimeField blank django-field nullable #

创建时间

environ: JSONField django-field #

Request Environ

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

request_get: JSONField django-field nullable #

Request GET

request_path: CharField django-field #

Request Path

request_post: JSONField django-field nullable #

Request POST

status: CharField django-field #

Status

tenant: ForeignKey django-field nullable #

Tenant

updated: DateTimeField blank django-field nullable #

更新时间

user: ForeignKey django-field #

User

EmptyModel (Model) django-model #

EmptyModel(id)

ExpiringToken (Model) django-model #

ExpiringToken(user, token, created, active_date)

active_date: DateField blank django-field nullable #

Active Date

created: DateTimeField blank django-field #

Created

token: CharField django-field #

Token

user: OneToOneField django-field #

User

expired(self, tenant) #

Return boolean indicating token expiration.

GroupPermissionResult (BaseModel, ExpandModel) django-model #

GroupPermissionResult(id, is_del, is_active, updated, created, user_group, tenant, app, result)

app: ForeignKey blank django-field nullable #

App

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

result: CharField blank django-field nullable #

权限结果

tenant: ForeignKey django-field #

租户

updated: DateTimeField blank django-field nullable #

更新时间

user_group: ForeignKey django-field #

用户分组

LanguageData (BaseModel) django-model #

LanguageData(id, is_del, is_active, updated, created, name, extension, extension_data, custom_data)

created: DateTimeField blank django-field nullable #

创建时间

extension: OneToOneField django-field nullable #

Extension

extension_data: JSONField blank django-field nullable #

插件自带数据

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

name: CharField django-field #

Name

updated: DateTimeField blank django-field nullable #

更新时间

Message (BaseModel, ExpandModel) django-model #

Message(id, is_del, is_active, updated, created, title, user, content, readed_status, url, sender)

content: TextField blank django-field nullable #

content

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

readed_status: BooleanField django-field #

readed_status

sender: ForeignKey blank django-field nullable #

Sender

title: CharField blank django-field nullable #

title

updated: DateTimeField blank django-field nullable #

更新时间

url: URLField blank django-field nullable #

url

user: ForeignKey django-field #

User

MessageExpandAbstract (BaseModel) django-model #

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

target: OneToOneField blank django-field #

target

updated: DateTimeField blank django-field nullable #

更新时间

foreign_key (BaseModel, ExpandModel) django-model #

Message(id, is_del, is_active, updated, created, title, user, content, readed_status, url, sender)

content: TextField blank django-field nullable #

content

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

readed_status: BooleanField django-field #

readed_status

sender: ForeignKey blank django-field nullable #

Sender

title: CharField blank django-field nullable #

title

updated: DateTimeField blank django-field nullable #

更新时间

url: URLField blank django-field nullable #

url

user: ForeignKey django-field #

User

Permission (PermissionAbstract) django-model #

Permission(id, is_del, is_active, updated, created, name, code, tenant, category, is_system, operation_id, describe, is_update, is_open, is_open_other_user, sort_id, app, parent)

app: ForeignKey blank django-field nullable #

APP

category: CharField django-field #

category

code: CharField django-field #

Code

container: ManyToManyField blank django-field #

Permission List

created: DateTimeField blank django-field nullable #

创建时间

describe: JSONField blank django-field #

describe

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

is_open: BooleanField django-field #

is open

is_open_other_user: BooleanField django-field #

is open other user

is_system: BooleanField django-field #

System Permission

is_update: BooleanField django-field #

是否更新

name: CharField django-field #

Name

operation_id: CharField blank django-field nullable #

Operation ID

parent: ForeignKey blank django-field nullable #

Parent

sort_id: IntegerField django-field #

Sort ID

tenant: ForeignKey blank django-field nullable #

Tenant

updated: DateTimeField blank django-field nullable #

更新时间

save(self, *args, **kwargs) #

Save the current instance. Override this in a subclass if you want to control the saving process.

The 'force_insert' and 'force_update' parameters can be used to insist that the "save" must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

PermissionAbstract (BaseModel, ExpandModel) django-model #

category: CharField django-field #

category

code: CharField django-field #

Code

created: DateTimeField blank django-field nullable #

创建时间

describe: JSONField blank django-field #

describe

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

is_open: BooleanField django-field #

is open

is_open_other_user: BooleanField django-field #

is open other user

is_system: BooleanField django-field #

System Permission

is_update: BooleanField django-field #

是否更新

name: CharField django-field #

Name

operation_id: CharField blank django-field nullable #

Operation ID

tenant: ForeignKey blank django-field nullable #

Tenant

updated: DateTimeField blank django-field nullable #

更新时间

Platform (BaseModel, ExpandModel) django-model #

Platform(id, is_del, is_active, updated, created, is_saas, is_need_rent, frontend_url)

created: DateTimeField blank django-field nullable #

创建时间

frontend_url: URLField blank django-field nullable #

ArkId访问地址

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

is_need_rent: BooleanField django-field #

Is Tenant Need Rent Extension

is_saas: BooleanField django-field #

SaaS Switch

updated: DateTimeField blank django-field nullable #

更新时间

PrivateApp (BaseModel) django-model #

PrivateApp(id, is_del, is_active, updated, created, tenant, name, url, logo, description, arkstore_category_id, arkstore_app_id, status, values_data)

arkstore_app_id: CharField blank django-field nullable #

Arkstore app id

arkstore_category_id: IntegerField django-field nullable #

ArkStore分类ID

created: DateTimeField blank django-field nullable #

创建时间

description: TextField blank django-field nullable #

description

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

logo

name: CharField django-field #

name

status: CharField django-field #

Status

tenant: ForeignKey django-field #

tenant

updated: DateTimeField blank django-field nullable #

更新时间

url: CharField blank django-field nullable #

url

values_data: TextField blank django-field nullable #

Values Data

SystemPermission (PermissionAbstract) django-model #

SystemPermission(id, is_del, is_active, updated, created, name, code, tenant, category, is_system, operation_id, describe, is_update, is_open, is_open_other_user, sort_id, parent)

category: CharField django-field #

category

code: CharField django-field #

Code

container: ManyToManyField blank django-field #

SystemPermission List

created: DateTimeField blank django-field nullable #

创建时间

describe: JSONField blank django-field #

describe

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

is_open: BooleanField django-field #

is open

is_open_other_user: BooleanField django-field #

is open other user

is_system: BooleanField django-field #

System Permission

is_update: BooleanField django-field #

是否更新

name: CharField django-field #

Name

operation_id: CharField blank django-field nullable #

Operation ID

parent: ForeignKey blank django-field nullable #

Parent

sort_id: IntegerField django-field #

Sort ID

tenant: ForeignKey blank django-field nullable #

Tenant

updated: DateTimeField blank django-field nullable #

更新时间

save(self, *args, **kwargs) #

Save the current instance. Override this in a subclass if you want to control the saving process.

The 'force_insert' and 'force_update' parameters can be used to insist that the "save" must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

Tenant (BaseModel, ExpandModel) django-model #

Tenant(id, is_del, is_active, updated, created, name, slug, icon, token_duration_minutes)

created: DateTimeField blank django-field nullable #

创建时间

icon: URLField blank django-field nullable #

Icon

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

is_platform_tenant property readonly #

是否是平台租户

name: CharField django-field #

Name

slug: SlugField blank django-field nullable #

Slug

token_duration_minutes: IntegerField django-field #

Token Duration Minutes

updated: DateTimeField blank django-field nullable #

更新时间

users: ManyToManyField blank django-field #

users

TenantExpandAbstract (BaseModel) django-model #

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

target: OneToOneField blank django-field #

target

updated: DateTimeField blank django-field nullable #

更新时间

foreign_key (BaseModel, ExpandModel) django-model #

Tenant(id, is_del, is_active, updated, created, name, slug, icon, token_duration_minutes)

created: DateTimeField blank django-field nullable #

创建时间

icon: URLField blank django-field nullable #

Icon

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

is_platform_tenant property readonly #

是否是平台租户

name: CharField django-field #

Name

slug: SlugField blank django-field nullable #

Slug

token_duration_minutes: IntegerField django-field #

Token Duration Minutes

updated: DateTimeField blank django-field nullable #

更新时间

users: ManyToManyField blank django-field #

users

User (BaseModel, ExpandModel) django-model #

User(id, is_del, is_active, updated, created, username, avatar, is_platform_user, tenant, scim_external_id)

avatar: URLField blank django-field nullable #

Avatar

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

is_platform_user: BooleanField django-field #

Is Platform User

scim_external_id: CharField blank django-field nullable #

scim external id

tenant: ForeignKey django-field #

tenant

updated: DateTimeField blank django-field nullable #

更新时间

username: CharField django-field #

Username

save(self, *args, **kwargs) #

Save the current instance. Override this in a subclass if you want to control the saving process.

The 'force_insert' and 'force_update' parameters can be used to insist that the "save" must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

UserExpandAbstract (BaseModel) django-model #

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

target: OneToOneField blank django-field #

target

updated: DateTimeField blank django-field nullable #

更新时间

foreign_key (BaseModel, ExpandModel) django-model #

User(id, is_del, is_active, updated, created, username, avatar, is_platform_user, tenant, scim_external_id)

avatar: URLField blank django-field nullable #

Avatar

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

is_platform_user: BooleanField django-field #

Is Platform User

scim_external_id: CharField blank django-field nullable #

scim external id

tenant: ForeignKey django-field #

tenant

updated: DateTimeField blank django-field nullable #

更新时间

username: CharField django-field #

Username

save(self, *args, **kwargs) #

Save the current instance. Override this in a subclass if you want to control the saving process.

The 'force_insert' and 'force_update' parameters can be used to insist that the "save" must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

UserGroup (BaseModel, ExpandModel) django-model #

UserGroup(id, is_del, is_active, updated, created, tenant, name, parent, permission, scim_external_id)

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

name: CharField django-field #

name

parent: ForeignKey blank django-field nullable #

parent

permission: ForeignKey blank django-field nullable #

permission

scim_external_id: CharField blank django-field nullable #

scim external id

tenant: ForeignKey django-field #

tenant

updated: DateTimeField blank django-field nullable #

更新时间

users: ManyToManyField blank django-field #

User List

UserGroupExpandAbstract (BaseModel) django-model #

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

target: OneToOneField blank django-field #

target

updated: DateTimeField blank django-field nullable #

更新时间

foreign_key (BaseModel, ExpandModel) django-model #

UserGroup(id, is_del, is_active, updated, created, tenant, name, parent, permission, scim_external_id)

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

name: CharField django-field #

name

parent: ForeignKey blank django-field nullable #

parent

permission: ForeignKey blank django-field nullable #

permission

scim_external_id: CharField blank django-field nullable #

scim external id

tenant: ForeignKey django-field #

tenant

updated: DateTimeField blank django-field nullable #

更新时间

users: ManyToManyField blank django-field #

User List

UserPermissionResult (BaseModel, ExpandModel) django-model #

UserPermissionResult(id, is_del, is_active, updated, created, user, tenant, app, result)

app: ForeignKey blank django-field nullable #

App

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

result: CharField blank django-field nullable #

权限结果

tenant: ForeignKey django-field #

租户

updated: DateTimeField blank django-field nullable #

更新时间

user: ForeignKey django-field #

用户

UserPersonalSettings (BaseModel, ExpandModel) django-model #

UserPersonalSettings(id, is_del, is_active, updated, created, user, tenant, settings)

created: DateTimeField blank django-field nullable #

创建时间

id: UUIDField django-field #

ID

is_active: BooleanField django-field #

是否可用

is_del: BooleanField django-field #

是否删除

settings: JSONField django-field #

用户个人设置

tenant: ForeignKey django-field #

租户

updated: DateTimeField blank django-field nullable #

更新时间

user: ForeignKey django-field #

用户

内核扩展类#

arkid.core.expand #

ExpandManager (Manager) #

Enables changing the default queryset function.

get_queryset(self, filters={}) #

Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.

评论