|
@@ -7,15 +7,17 @@ const { Secret } = require('naf-framework-mongoose-free/lib/model/schema');
|
|
// 机构表
|
|
// 机构表
|
|
const organization = {
|
|
const organization = {
|
|
name: { type: String, required: true, maxLength: 200 }, // 用户名
|
|
name: { type: String, required: true, maxLength: 200 }, // 用户名
|
|
- password: { type: Secret, required: true, select: false }, // 登录密码
|
|
|
|
phone: { type: String, required: false, maxLength: 200 }, // 电话号码
|
|
phone: { type: String, required: false, maxLength: 200 }, // 电话号码
|
|
|
|
+ password: { type: Secret, required: true, select: false }, // 登录密码
|
|
|
|
+ code: { type: String, required: false, default: "INVESTORS" }, // 邀请码
|
|
|
|
+ role: { type: String, required: false, default: "4" }, // 角色
|
|
email: { type: String, required: false, maxLength: 200 }, // 邮箱
|
|
email: { type: String, required: false, maxLength: 200 }, // 邮箱
|
|
addr: { type: String, required: false, maxLength: 500 }, // 地址
|
|
addr: { type: String, required: false, maxLength: 500 }, // 地址
|
|
office_phone: { type: String, required: false, maxLength: 500 }, // 办公电话
|
|
office_phone: { type: String, required: false, maxLength: 500 }, // 办公电话
|
|
profession: { type: String, required: false, maxLength: 500 }, // 所属行业
|
|
profession: { type: String, required: false, maxLength: 500 }, // 所属行业
|
|
- institution_code: { type: String, required: false, maxLength: 500 }, // 机构代码
|
|
|
|
- code: { type: String, required: false, default: 'INVESTORS' }, // 邀请码
|
|
|
|
|
|
+ juris: { type: String }, // 辖区
|
|
|
|
|
|
|
|
+ institution_code: { type: String, required: false, maxLength: 500 }, // 机构代码
|
|
companytype: { type: String, required: false, maxLength: 300 }, // 注册类型
|
|
companytype: { type: String, required: false, maxLength: 300 }, // 注册类型
|
|
companydate: { type: String, required: false, maxLength: 300 }, // 注册时间
|
|
companydate: { type: String, required: false, maxLength: 300 }, // 注册时间
|
|
companycapital: { type: String, required: false, maxLength: 300 }, // 注册资金
|
|
companycapital: { type: String, required: false, maxLength: 300 }, // 注册资金
|
|
@@ -27,11 +29,10 @@ const organization = {
|
|
companybrief: { type: String, required: false }, // 企业简介
|
|
companybrief: { type: String, required: false }, // 企业简介
|
|
mainproduct: { type: String, required: false, maxLength: 300 }, // 主要产品
|
|
mainproduct: { type: String, required: false, maxLength: 300 }, // 主要产品
|
|
qualifications: { type: String, required: false, maxLength: 300 }, // 企业资质&荣誉
|
|
qualifications: { type: String, required: false, maxLength: 300 }, // 企业资质&荣誉
|
|
- status: { type: String, required: false, default: '0', maxLength: 200 }, // 审核状态,0-注册,1-通过,2-拒绝
|
|
|
|
- juris: { type: String }, // 辖区
|
|
|
|
|
|
|
|
|
|
+ status: { type: String, required: false, default: "0", maxLength: 200 }, // 审核状态,0-注册,1-通过,2-拒绝
|
|
openid: { type: String }, // 微信openid
|
|
openid: { type: String }, // 微信openid
|
|
- isdel: { type: String, required: false, default: '0' }, // 0=>未删除;1=>已删除
|
|
|
|
|
|
+ isdel: { type: String, required: false, default: "0" }, // 0=>未删除;1=>已删除
|
|
remark: { type: String, maxLength: 200 },
|
|
remark: { type: String, maxLength: 200 },
|
|
create_time: { type: String },
|
|
create_time: { type: String },
|
|
};
|
|
};
|