作者 yangfu

1. remove model

access
companyCustomer
companyProduct
companyRegion
2. add ext
version: v1
kind: Schema
metadata:
name: access
description: 权限 (base) (停用)
attributes:
- name: accessId
description: 权限Id
type:
primitive: int64
- name: parentId
description: 父级ID
type:
primitive: int64
- name: accessName
description: 权限名称
type:
primitive: string
- name: accessCode
description: 权限编码 eg:users:delete
type:
primitive: string
- name: status
description: 状态 1:启用权限验证
type:
primitive: int
- name: sort
description: 排序
type:
primitive: int
- name: desc
description: 描述说明
type:
primitive: string
version: v1
kind: Schema
metadata:
name: companyCustomer
description: 客户信息 (base) (停用)
attributes:
- ref: companyCustomerId
required: true
- ref: companyId
required: true
- ref: customerCode
required: true
- ref: customerName
required: true
version: v1
kind: Schema
metadata:
name: companyProduct
description: 产品信息 (base) (停用)
attributes:
- ref: companyProductId
required: true
- ref: companyId
required: true
- ref: productCode
required: true
- ref: productName
required: true
version: v1
kind: Schema
metadata:
name: companyRegion
description: 公司区域 (base) (停用)
attributes:
- ref: companyRegionId
required: true
- ref: companyId
required: true
- ref: regionCode
required: true
- ref: regionName
required: true
- ref: parentRegionId
required: true
- ref: remark
required: true
... ... @@ -6,6 +6,8 @@ metadata:
attributes:
- ref: configId
required: true
- ref: companyId
required: true
- ref: configCode
required: true
- ref: configName
... ...
... ... @@ -10,8 +10,6 @@ metadata:
primitive: int64
- ref: companyId
required: true
- ref: organizationId
required: true
- name: menuId
description: 菜单id
type:
... ...
version: v1
kind: Schema
metadata:
name: ext
description: 冗余附加数据
attributes:
- ref: usersName
required: true
- ref: orgName
required: true
- name: phone
description: 手机号
type:
primitive: string
- name: depName
description: 部门名称
type:
primitive: string
... ...
... ... @@ -8,10 +8,8 @@ metadata:
required: true
- ref: companyId
required: true
- name: organization
description: 组织信息
type:
schema: organization
- ref: organizationId
required: true
- ref: roleName
required: true
- name: menuAccess
... ... @@ -22,6 +20,10 @@ metadata:
description: 角色描述
type:
primitive: string
- name: ext
description: 扩展数据
type:
schema: ext
- ref: createAt
required: true
- ref: updateAt
... ...
... ... @@ -6,14 +6,10 @@ metadata:
attributes:
- ref: usersId
required: true
- name: name
description: 用户姓名
- name: usersInfo
description: 用户信息
type:
primitive: string
- name: avator
description: 头像
type:
primitive: string
schema: usersInfo
- name: phoneAuth
description: 手机认证
type:
... ...
... ... @@ -12,18 +12,16 @@ metadata:
required: true
- ref: usersType
required: true
- name: usersInfo
description: 用户信息
type:
schema: usersInfo
- ref: usersCode
required: true
- name: organization
description: 组织机构
type:
schema: organization
primitive: int64
- name: department
description: 所属部门
type:
schema: organization
primitive: int64
- name: usersOrg
description: 用户关联的组织
type:
... ... @@ -44,10 +42,10 @@ metadata:
description: 启用状态(启用:1 禁用:2)
type:
primitive: int
- name: isCompanyCreater
description: 公司的创建者[0:否][1:是],默认:0
- name: ext
description: 扩展数据
type:
primitive: int
schema: ext
- ref: createAt
required: true
- ref: updateAt
... ...
... ... @@ -6,12 +6,14 @@ metadata:
attributes:
- ref: usersName
required: true
- ref: usersCode
required: true
- name: phone
description: 手机号码
type:
primitive: string
- name: avator
description: 头像
type:
primitive: string
- name: email
description: 邮箱
type:
... ...