作者 陈志颖

feat:添加项目合约

version: v1
kind: Attribute
metadata:
name: contractUndertaker
description: 共创合约承接人
type:
schema: user
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: cooperationContractReferrer
description: 合约推荐人
type:
schema: any
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractRelevant
name: cooperationContractRelevants
description: 共创合约相关人
type:
array: any
array: user
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: cooperationContractSalesman
description: 共创合约业务员
type:
schema: any
schema: user
... ...
version: v1
kind: Attribute
metadata:
name: cooperationContractUndertakerType
description: 共创合约承接对象,1员工,2共创用户,3公开
type:
array: int32
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: cooperationContractUndertakers
description: 共创合约承接人列表
type:
array: any
array: user
... ...
... ... @@ -4,4 +4,4 @@ metadata:
name: cooperationMode
description: 共创模式
type:
schema: any
schema: cooperationMode
... ...
... ... @@ -12,7 +12,9 @@ metadata:
required: true
- ref: cooperationContractNumber
required: true
- ref: userId
- ref: contractUndertaker
required: true
- ref: organization
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Schema
metadata:
name: cooperationContract
description: 共创项目合约实体
attributes:
- ref: cooperationContractId
required: true
- ref: cooperationContractDescription
required: true
- ref: cooperationContractName
required: true
- ref: cooperationContractNumber
required: true
- ref: cooperationContractReferrer
required: true
- ref: cooperationContractSalesman
required: true
- ref: cooperationContractUndertakerType
required: true
- ref: cooperationContractSponsor
required: true
- ref: cooperationMode
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...