contractUndertaker.yaml 1.1 KB
version: v1
kind: Schema
metadata:
  name: contractUndertaker
  description: 共创合约承接方
  attributes:
    - ref: usersId
      required: true
    - ref: cooperationContractId
      required: true
    - ref: usersName
      required: true
    - ref: phone
      required: true
    - ref: status
      required: true
    - ref: usersCode
      required: true
    - ref: usersType
      required: true
    - name: org
      description: 用户的组织
      type:
        schema: orgs
    - name: department
      description: 用户的部门
      type:
        schema: department
    - name: attachment
      description: 附件
      type:
        array: attachment
    - name: hasReferrer
      description: 是否有推荐人
      type:
        primitive: boolean
    - name: referrerUser
      description: 推荐人信息
      type:
        schema: usersBase
    - name: hasSalesman
      description: 是否有关联业务员
      type:
        primitive: boolean
    - name: salesmanUser
      description: 关联业务员信息
      type:
        schema: usersBase