作者 yangfu

1. remove model

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