{
  "virtualflag" : 0,
  "psdataentityname" : "OPPORTUNITYCOMPETITOR",
  "decat" : "DEFAULT",
  "validflag" : 1,
  "logicvalid" : 0,
  "detype" : 1,
  "codename" : "OpportunityCompetitor",
  "noviewmode" : 1,
  "createdate" : "2020-08-07 09:43:50",
  "storagemode" : 1,
  "logicname" : "商机对手",
  "existingmodel" : 0,
  "enatempdata" : 0,
  "systemflag" : 0,
  "tablename" : "RELATIONSHIPS",
  "psdedbcfgs" : [ {
    "validflag" : 1,
    "createdate" : "2020-08-07 09:43:50",
    "psdedbcfgname" : "MYSQL5"
  } ],
  "psdedrgroups" : [ {
    "codename" : "Auto122",
    "createdate" : "2020-08-07 09:43:50",
    "psdedrgroupname" : "详细信息",
    "ordervalue" : 10000
  } ],
  "psdefields" : [ {
    "enableuserinput" : 3,
    "psdefieldname" : "ACTUALVALUE",
    "psdatatypename" : "外键值附加数据",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/OPPORTUNITY/ACTUALVALUE",
    "physicalfield" : 0,
    "codename" : "ActualValue",
    "psdatatypeid" : "PICKUPDATA",
    "derpsdefname" : "ACTUALVALUE",
    "createdate" : "2020-08-07 09:43:50",
    "pkey" : 0,
    "logicname" : "实际收入",
    "majorfield" : 0,
    "deftype" : 3,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psderid" : "<PSDATAENTITY>/DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ACTUALVALUE][实际收入]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ACTUALVALUE][实际收入]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ACTUALVALUE",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 0,
    "psdefieldname" : "CREATEDATE",
    "psdatatypename" : "日期时间型",
    "pssysdbcolumnid" : "DEFAULT/RELATIONSHIPS/CREATEDATE",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "CreateDate",
    "psdatatypeid" : "DATETIME",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/RELATIONSHIPS",
    "pkey" : 0,
    "logicname" : "建立时间",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "tablename" : "RELATIONSHIPS",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[CREATEDATE][建立时间]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[CREATEDATE][建立时间]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "CREATEDATE",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 0,
    "psdefieldname" : "CREATEMAN",
    "psdatatypename" : "文本，可指定长度",
    "pssysdbcolumnid" : "DEFAULT/RELATIONSHIPS/CREATEMAN",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "CreateMan",
    "psdatatypeid" : "TEXT",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/RELATIONSHIPS",
    "pkey" : 0,
    "length" : 60,
    "logicname" : "建立人",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "tablename" : "RELATIONSHIPS",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[CREATEMAN][建立人]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[CREATEMAN][建立人]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "CREATEMAN",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "ENTITY2ID",
    "psdatatypename" : "外键值",
    "pssysdbcolumnid" : "DEFAULT/RELATIONSHIPS/ENTITY2ID",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/COMPETITOR/COMPETITORID",
    "physicalfield" : 1,
    "codename" : "Entity2Id",
    "psdatatypeid" : "PICKUP",
    "derpsdefname" : "COMPETITORID",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/RELATIONSHIPS",
    "pkey" : 0,
    "logicname" : "竞争对手",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 1,
    "psdername" : "DER1N_OPPORTUNITYCOMPETITOR_COMPETITOR_ENTITY2ID",
    "tablename" : "RELATIONSHIPS",
    "psderid" : "<PSDATAENTITY>/DER1N_OPPORTUNITYCOMPETITOR_COMPETITOR_ENTITY2ID",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ENTITY2ID][竞争对手]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ENTITY2ID][竞争对手]移动端默认"
    } ],
    "psdefsfitems" : [ {
      "psdeid" : "<PSDATAENTITY>",
      "psdbvalueopid" : "EQ",
      "psdbvalueopname" : "等于(=)",
      "psdefsfitemname" : "N_ENTITY2ID_EQ",
      "createdate" : "2020-08-07 09:43:50"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ENTITY2ID",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "ENTITY2NAME",
    "psdatatypename" : "外键值文本",
    "pssysdbcolumnid" : "DEFAULT/RELATIONSHIPS/ENTITY2NAME",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/COMPETITOR/COMPETITORNAME",
    "physicalfield" : 1,
    "codename" : "Entity2Name",
    "psdatatypeid" : "PICKUPTEXT",
    "derpsdefname" : "COMPETITORNAME",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/RELATIONSHIPS",
    "pkey" : 0,
    "logicname" : "竞争对手",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DER1N_OPPORTUNITYCOMPETITOR_COMPETITOR_ENTITY2ID",
    "tablename" : "RELATIONSHIPS",
    "psderid" : "<PSDATAENTITY>/DER1N_OPPORTUNITYCOMPETITOR_COMPETITOR_ENTITY2ID",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ENTITY2NAME][对手]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ENTITY2NAME][对手]移动端默认"
    } ],
    "psdefsfitems" : [ {
      "psdeid" : "<PSDATAENTITY>",
      "psdbvalueopid" : "EQ",
      "psdbvalueopname" : "等于(=)",
      "psdefsfitemname" : "N_ENTITY2NAME_EQ",
      "createdate" : "2020-08-07 09:43:50"
    }, {
      "psdeid" : "<PSDATAENTITY>",
      "psdbvalueopid" : "LIKE",
      "psdbvalueopname" : "文本包含(%)",
      "psdefsfitemname" : "N_ENTITY2NAME_LIKE",
      "createdate" : "2020-08-07 09:43:50"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ENTITY2NAME",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "ENTITYID",
    "psdatatypename" : "外键值",
    "pssysdbcolumnid" : "DEFAULT/RELATIONSHIPS/ENTITYID",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/OPPORTUNITY/OPPORTUNITYID",
    "physicalfield" : 1,
    "codename" : "EntityId",
    "psdatatypeid" : "PICKUP",
    "derpsdefname" : "OPPORTUNITYID",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/RELATIONSHIPS",
    "pkey" : 0,
    "logicname" : "商机",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 1,
    "psdername" : "DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "tablename" : "RELATIONSHIPS",
    "psderid" : "<PSDATAENTITY>/DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ENTITYID][商机]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ENTITYID][商机]移动端默认"
    } ],
    "psdefsfitems" : [ {
      "psdeid" : "<PSDATAENTITY>",
      "psdbvalueopid" : "EQ",
      "psdbvalueopname" : "等于(=)",
      "psdefsfitemname" : "N_ENTITYID_EQ",
      "createdate" : "2020-08-07 09:43:50"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ENTITYID",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "ENTITYNAME",
    "psdatatypename" : "外键值文本",
    "pssysdbcolumnid" : "DEFAULT/RELATIONSHIPS/ENTITYNAME",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/OPPORTUNITY/OPPORTUNITYNAME",
    "physicalfield" : 1,
    "codename" : "EntityName",
    "psdatatypeid" : "PICKUPTEXT",
    "derpsdefname" : "OPPORTUNITYNAME",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/RELATIONSHIPS",
    "pkey" : 0,
    "logicname" : "商机",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "tablename" : "RELATIONSHIPS",
    "psderid" : "<PSDATAENTITY>/DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ENTITYNAME][商机]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ENTITYNAME][商机]移动端默认"
    } ],
    "psdefsfitems" : [ {
      "psdeid" : "<PSDATAENTITY>",
      "psdbvalueopid" : "EQ",
      "psdbvalueopname" : "等于(=)",
      "psdefsfitemname" : "N_ENTITYNAME_EQ",
      "createdate" : "2020-08-07 09:43:50"
    }, {
      "psdeid" : "<PSDATAENTITY>",
      "psdbvalueopid" : "LIKE",
      "psdbvalueopname" : "文本包含(%)",
      "psdefsfitemname" : "N_ENTITYNAME_LIKE",
      "createdate" : "2020-08-07 09:43:50"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ENTITYNAME",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "ESTIMATEDCLOSEDATE",
    "psdatatypename" : "外键值附加数据",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/OPPORTUNITY/ESTIMATEDCLOSEDATE",
    "physicalfield" : 0,
    "codename" : "EstimatedCloseDate",
    "psdatatypeid" : "PICKUPDATA",
    "derpsdefname" : "ESTIMATEDCLOSEDATE",
    "createdate" : "2020-08-07 09:43:50",
    "pkey" : 0,
    "logicname" : "预计结束日期",
    "majorfield" : 0,
    "deftype" : 3,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psderid" : "<PSDATAENTITY>/DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ESTIMATEDCLOSEDATE][预计结束日期]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ESTIMATEDCLOSEDATE][预计结束日期]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ESTIMATEDCLOSEDATE",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "ESTIMATEDVALUE",
    "psdatatypename" : "外键值附加数据",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/OPPORTUNITY/ESTIMATEDVALUE",
    "physicalfield" : 0,
    "codename" : "EstimatedValue",
    "psdatatypeid" : "PICKUPDATA",
    "derpsdefname" : "ESTIMATEDVALUE",
    "createdate" : "2020-08-07 09:43:50",
    "pkey" : 0,
    "logicname" : "预计收入",
    "majorfield" : 0,
    "deftype" : 3,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psderid" : "<PSDATAENTITY>/DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ESTIMATEDVALUE][预计收入]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ESTIMATEDVALUE][预计收入]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ESTIMATEDVALUE",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "ORIGINATINGLEADID",
    "psdatatypename" : "外键值附加数据",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/OPPORTUNITY/ORIGINATINGLEADID",
    "physicalfield" : 0,
    "codename" : "OriginatingLeadId",
    "psdatatypeid" : "PICKUPDATA",
    "derpsdefname" : "ORIGINATINGLEADID",
    "createdate" : "2020-08-07 09:43:50",
    "pkey" : 0,
    "logicname" : "潜在顾客",
    "majorfield" : 0,
    "deftype" : 3,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psderid" : "<PSDATAENTITY>/DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ORIGINATINGLEADID][潜在顾客]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ORIGINATINGLEADID][潜在顾客]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ORIGINATINGLEADID",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "ORIGINATINGLEADNAME",
    "psdatatypename" : "外键值附加数据",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/OPPORTUNITY/ORIGINATINGLEADNAME",
    "physicalfield" : 0,
    "codename" : "Originatingleadname",
    "psdatatypeid" : "PICKUPDATA",
    "derpsdefname" : "ORIGINATINGLEADNAME",
    "createdate" : "2020-08-07 09:43:50",
    "pkey" : 0,
    "logicname" : "潜在顾客",
    "majorfield" : 0,
    "deftype" : 3,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psderid" : "<PSDATAENTITY>/DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[ORIGINATINGLEADNAME][潜在顾客]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[ORIGINATINGLEADNAME][潜在顾客]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "ORIGINATINGLEADNAME",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "RELATIONSHIPSID",
    "psdatatypename" : "全局唯一标识，文本类型，用户不可见",
    "pssysdbcolumnid" : "DEFAULT/RELATIONSHIPS/RELATIONSHIPSID",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "RelationshipsId",
    "psdatatypeid" : "GUID",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/RELATIONSHIPS",
    "pkey" : 1,
    "length" : 60,
    "logicname" : "关系标识",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 0,
    "fkey" : 0,
    "tablename" : "RELATIONSHIPS",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[RELATIONSHIPSID][关系标识]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[RELATIONSHIPSID][关系标识]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "RELATIONSHIPSID",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "RELATIONSHIPSNAME",
    "psdatatypename" : "文本，可指定长度",
    "pssysdbcolumnid" : "DEFAULT/RELATIONSHIPS/RELATIONSHIPSNAME",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "Relationshipsname",
    "psdatatypeid" : "TEXT",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/RELATIONSHIPS",
    "pkey" : 0,
    "length" : 100,
    "logicname" : "关系名称",
    "majorfield" : 1,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "tablename" : "RELATIONSHIPS",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[RELATIONSHIPSNAME][关系名称]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[RELATIONSHIPSNAME][关系名称]移动端默认"
    } ],
    "psdefsfitems" : [ {
      "psdeid" : "<PSDATAENTITY>",
      "psdbvalueopid" : "LIKE",
      "psdbvalueopname" : "文本包含(%)",
      "psdefsfitemname" : "N_RELATIONSHIPSNAME_LIKE",
      "createdate" : "2020-08-07 09:43:50"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "RELATIONSHIPSNAME",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "RELATIONSHIPSTYPE",
    "psdatatypename" : "单项选择(文本值)",
    "pssysdbcolumnid" : "DEFAULT/RELATIONSHIPS/RELATIONSHIPSTYPE",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "Relationshipstype",
    "psdatatypeid" : "SSCODELIST",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/RELATIONSHIPS",
    "pscodelistname" : "关系类型",
    "defaultvalue" : "OPPORTUNITYCOMPETITOR",
    "pkey" : 0,
    "length" : 60,
    "logicname" : "关系类型",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 0,
    "fkey" : 0,
    "pscodelistid" : "Base/RelationshipsType",
    "tablename" : "RELATIONSHIPS",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[RELATIONSHIPSTYPE][关系类型]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[RELATIONSHIPSTYPE][关系类型]移动端默认"
    } ],
    "psdefsfitems" : [ {
      "psdeid" : "<PSDATAENTITY>",
      "psdbvalueopid" : "EQ",
      "psdbvalueopname" : "等于(=)",
      "psdefsfitemname" : "N_RELATIONSHIPSTYPE_EQ",
      "createdate" : "2020-08-07 09:43:50"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "RELATIONSHIPSTYPE",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 3,
    "psdefieldname" : "STATECODE",
    "psdatatypename" : "外键值附加数据",
    "validflag" : 1,
    "derpsdefid" : "<PSMODULE>/OPPORTUNITY/STATECODE",
    "physicalfield" : 0,
    "codename" : "StateCode",
    "psdatatypeid" : "PICKUPDATA",
    "derpsdefname" : "STATECODE",
    "createdate" : "2020-08-07 09:43:50",
    "pkey" : 0,
    "logicname" : "状态",
    "majorfield" : 0,
    "deftype" : 3,
    "allowempty" : 1,
    "fkey" : 0,
    "psdername" : "DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psderid" : "<PSDATAENTITY>/DER1N_OPPORTUNITYCOMPETITOR_OPPORTUNITY_ENTITYID",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[STATECODE][状态]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[STATECODE][状态]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "STATECODE",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 0,
    "psdefieldname" : "UPDATEDATE",
    "psdatatypename" : "日期时间型",
    "pssysdbcolumnid" : "DEFAULT/RELATIONSHIPS/UPDATEDATE",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "UpdateDate",
    "psdatatypeid" : "DATETIME",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/RELATIONSHIPS",
    "pkey" : 0,
    "logicname" : "更新时间",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "tablename" : "RELATIONSHIPS",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[UPDATEDATE][更新时间]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[UPDATEDATE][更新时间]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "UPDATEDATE",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  }, {
    "enableuserinput" : 0,
    "psdefieldname" : "UPDATEMAN",
    "psdatatypename" : "文本，可指定长度",
    "pssysdbcolumnid" : "DEFAULT/RELATIONSHIPS/UPDATEMAN",
    "validflag" : 1,
    "physicalfield" : 1,
    "codename" : "UpdateMan",
    "psdatatypeid" : "TEXT",
    "createdate" : "2020-08-07 09:43:50",
    "psdetableid" : "<PSDATAENTITY>/RELATIONSHIPS",
    "pkey" : 0,
    "length" : 60,
    "logicname" : "更新人",
    "majorfield" : 0,
    "deftype" : 1,
    "allowempty" : 1,
    "fkey" : 0,
    "tablename" : "RELATIONSHIPS",
    "psdefformitems" : [ {
      "codename" : "Default",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "DEFAULT",
      "psdefformitemname" : "[UPDATEMAN][更新人]"
    }, {
      "codename" : "MobileDefault",
      "createdate" : "2020-08-07 09:43:50",
      "ftmode" : "MOBILEDEFAULT",
      "psdefformitemname" : "[UPDATEMAN][更新人]移动端默认"
    } ],
    "psdefdtcols" : [ {
      "psdefdtcolname" : "UPDATEMAN",
      "customdatatype" : 0,
      "dbtype" : "MYSQL5",
      "createdate" : "2020-08-07 09:43:50"
    } ]
  } ],
  "psdeopprivs" : [ {
    "logicname" : "建立",
    "createdate" : "2020-08-07 09:43:50",
    "psdeopprivname" : "CREATE"
  }, {
    "logicname" : "删除",
    "createdate" : "2020-08-07 09:43:50",
    "psdeopprivname" : "DELETE"
  }, {
    "logicname" : "读取",
    "createdate" : "2020-08-07 09:43:50",
    "psdeopprivname" : "READ"
  }, {
    "logicname" : "更新",
    "createdate" : "2020-08-07 09:43:50",
    "psdeopprivname" : "UPDATE"
  } ],
  "psdetables" : [ {
    "pssysdbtableid" : "DEFAULT/RELATIONSHIPS",
    "psdetablename" : "RELATIONSHIPS",
    "tabletype" : "MAIN",
    "createdate" : "2020-09-02 15:24:09"
  } ],
  "pssysdmitems" : [ {
    "dbobjtype" : "TABLE",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS",
    "userflag" : 0,
    "createsql4" : "CREATE TABLE `RELATIONSHIPS`(\n`UPDATEDATE`  DATETIME COMMENT '更新时间' \n,`CREATEMAN`  VARCHAR(60) COMMENT '建立人' \n,`CREATEDATE`  DATETIME COMMENT '建立时间' \n,`RELATIONSHIPSID`  VARCHAR(60)  NOT NULL PRIMARY KEY COMMENT '关系标识' \n,`UPDATEMAN`  VARCHAR(60) COMMENT '更新人' \n,`RELATIONSHIPSTYPE`  VARCHAR(60) COMMENT '关系类型' \n,`RELATIONSHIPSNAME`  VARCHAR(100) COMMENT '关系名称' \n,`ENTITYNAME`  VARCHAR(300) COMMENT '商机' \n,`ENTITY2NAME`  VARCHAR(100) COMMENT '竞争对手' \n,`ENTITY2ID`  VARCHAR(60) COMMENT '竞争对手' \n,`ENTITYID`  VARCHAR(60) COMMENT '商机' \n)COMMENT='商机对手';",
    "testsql" : "SELECT 1 FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "e5da1c1e41efaed1e26ca6bef853939a",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "OPPORTUNITYCOMPETITOR",
    "createdate" : "2020-08-07 09:50:25"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.CREATEDATE",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `RELATIONSHIPS`\nADD COLUMN `CREATEDATE`  DATETIME  COMMENT '建立时间' \n",
    "testsql" : "SELECT `CREATEDATE` FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "5a8ea0c31eb85d4b31cdbd9815efb3c7",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "CREATEDATE",
    "createdate" : "2020-08-07 09:50:25"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.CREATEMAN",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `RELATIONSHIPS`\nADD COLUMN `CREATEMAN`  VARCHAR(60)  COMMENT '建立人' \n",
    "testsql" : "SELECT `CREATEMAN` FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "4cd0967a22da09eaa2df4a65c0c5bed2",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "CREATEMAN",
    "createdate" : "2020-08-07 09:50:25"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.ENTITY2ID",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `RELATIONSHIPS`\nADD COLUMN `ENTITY2ID`  VARCHAR(60)  COMMENT '竞争对手' \n",
    "testsql" : "SELECT `ENTITY2ID` FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "06cd5807890fc6481bbcb63657ed54d0",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "ENTITY2ID",
    "createdate" : "2020-08-07 09:50:25"
  }, {
    "dbobjtype" : "FKEY",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.ENTITY2ID",
    "userflag" : 0,
    "psobjid" : "06cd5807890fc6481bbcb63657ed54d0",
    "pssystemdbcfgid" : "MYSQL5",
    "dropsql" : "ALTER TABLE RELATIONSHIPS DROP  FOREIGN KEY F2893D5AEE193A14CC",
    "psobjname" : "ENTITY2ID",
    "createdate" : "2020-08-07 09:50:26"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.ENTITY2NAME",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `RELATIONSHIPS`\nADD COLUMN `ENTITY2NAME`  VARCHAR(100)  COMMENT '竞争对手' \n",
    "testsql" : "SELECT `ENTITY2NAME` FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "e6bda5374ff3b340fa7ec438294932fd",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "ENTITY2NAME",
    "createdate" : "2020-08-07 09:50:25"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.ENTITYID",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `RELATIONSHIPS`\nADD COLUMN `ENTITYID`  VARCHAR(60)  COMMENT '商机' \n",
    "testsql" : "SELECT `ENTITYID` FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "e07a014cf1cdf54c75843a73165e43b6",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "ENTITYID",
    "createdate" : "2020-08-07 09:50:26"
  }, {
    "dbobjtype" : "FKEY",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.ENTITYID",
    "userflag" : 0,
    "psobjid" : "e07a014cf1cdf54c75843a73165e43b6",
    "pssystemdbcfgid" : "MYSQL5",
    "dropsql" : "ALTER TABLE RELATIONSHIPS DROP  FOREIGN KEY FB5BEDC06990C1B1AB",
    "psobjname" : "ENTITYID",
    "createdate" : "2020-08-07 09:50:26"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.ENTITYNAME",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `RELATIONSHIPS`\nADD COLUMN `ENTITYNAME`  VARCHAR(300)  COMMENT '商机' \n",
    "testsql" : "SELECT `ENTITYNAME` FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "21124ce776e96d5427922f0ab8fb851f",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "ENTITYNAME",
    "createdate" : "2020-08-07 09:50:25"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.RELATIONSHIPSID",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `RELATIONSHIPS`\nADD COLUMN `RELATIONSHIPSID`  VARCHAR(60)  COMMENT '关系标识' \n",
    "testsql" : "SELECT `RELATIONSHIPSID` FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "65b7cad67d90a6e2b94f61b862cd188b",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "RELATIONSHIPSID",
    "createdate" : "2020-08-07 09:50:25"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.RELATIONSHIPSNAME",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `RELATIONSHIPS`\nADD COLUMN `RELATIONSHIPSNAME`  VARCHAR(100)  COMMENT '关系名称' \n",
    "testsql" : "SELECT `RELATIONSHIPSNAME` FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "ff33c919072ff64fa9a9443456a1108a",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "RELATIONSHIPSNAME",
    "createdate" : "2020-08-07 09:50:25"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.RELATIONSHIPSTYPE",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `RELATIONSHIPS`\nADD COLUMN `RELATIONSHIPSTYPE`  VARCHAR(60)  COMMENT '关系类型' \n",
    "testsql" : "SELECT `RELATIONSHIPSTYPE` FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "d4c1537b030e8e5423aea5f380a9e766",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "RELATIONSHIPSTYPE",
    "createdate" : "2020-08-07 09:50:25"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.UPDATEDATE",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `RELATIONSHIPS`\nADD COLUMN `UPDATEDATE`  DATETIME  COMMENT '更新时间' \n",
    "testsql" : "SELECT `UPDATEDATE` FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "3bdad7ee9bd351aee19c611fd20d8fe4",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "UPDATEDATE",
    "createdate" : "2020-08-07 09:50:25"
  }, {
    "dbobjtype" : "COLUMN",
    "pssystemdbcfgname" : "MYSQL5",
    "pssysdmitemname" : "RELATIONSHIPS.UPDATEMAN",
    "userflag" : 0,
    "createsql4" : "ALTER TABLE `RELATIONSHIPS`\nADD COLUMN `UPDATEMAN`  VARCHAR(60)  COMMENT '更新人' \n",
    "testsql" : "SELECT `UPDATEMAN` FROM `RELATIONSHIPS` WHERE 1<>1",
    "psobjid" : "aa00074969afafdcf1a72694bf1aae2c",
    "pssystemdbcfgid" : "MYSQL5",
    "psobjname" : "UPDATEMAN",
    "createdate" : "2020-08-07 09:50:25"
  } ]
}