Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
zjxcxServer
Commits
d81bab29
Commit
d81bab29
authored
Feb 06, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
建数据表 逻辑分区
parent
c02e08fa
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
11 deletions
+41
-11
task.ts
src/biz/fuHuqQi/task.ts
+7
-0
user.ts
src/biz/fuHuqQi/user.ts
+2
-1
enterprise.ts
src/data/enterprise/enterprise.ts
+7
-7
financing.ts
src/data/enterprise/financing.ts
+20
-0
task.ts
src/data/fuHuaQi/task.ts
+5
-3
No files found.
src/biz/fuHuqQi/task.ts
0 → 100644
View file @
d81bab29
/**
* 孵化器任务相关逻辑
* 作者: 李某
* 任务相关逻辑 包括任务的增删改查 管理后台的任务列表逻辑
*
*/
\ No newline at end of file
src/biz/fuHuqQi/user.ts
View file @
d81bab29
/**
* 逻辑层
* 孵化器用户逻辑层
* 作者: 陈金晶
* 主要包括有 孵化器账号的登录
* 预留好 重置密码 退出登录 接口
*/
...
...
src/data/enterprise/enterprise.ts
View file @
d81bab29
...
...
@@ -2,19 +2,19 @@ import {Schema} from 'mongoose';
import
{
baseDB
}
from
'../../db/dbInit'
;
const
enterpriseSchema
=
new
Schema
({
name
:
{
type
:
String
,
index
:
true
},
//企业名称
name
:
{
type
:
String
,
index
:
true
},
//企业名称
id
:{
type
:
String
,
index
:
true
},
//唯一标识
uscc
:{
type
:
String
,
index
:
true
},
//统一信用代码
logonTime
:
Number
,
//注册时间
logonAdd
:
String
,
//注册地址
operatingAdd
:
String
,
//经营地址
isPhysicalPresence
:{
type
:
Boolean
,
default
:
true
},
//是否实地孵化
industry
:[
Number
],
//领域
financingAmount
:
Number
,
//融资金额(万元)
investmentInstitutionsName
:
String
,
//投资机构名称
timeToObtainInvestment
:
Number
,
//获得投资时间
fuHuaQiInvestment
:{
type
:
Boolean
,
default
:
false
},
//孵化器是否投资
fuHuaQiInvestmentAmount
:
Number
,
//孵化器投资金额(万元)
fuHuaQiInvestmentStyle
:
Number
,
//孵化器投资方式
firstIncubationTime
:
Number
,
//首次入孵时间
isNaturalPersonHolding
:{
type
:
Boolean
,
false
:
true
},
//是否自然人控股企业
leasedArea
:
Number
,
//租赁面积(平方米)
oldLogonAdd
:
String
,
//迁入前注册地址
timeOfImmigration
:
Number
,
//迁入时间
draftLock
:{
type
:
Boolean
,
default
:
false
},
//草稿锁,true为提交之后,false为草稿
});
...
...
src/data/enterprise/financing.ts
0 → 100644
View file @
d81bab29
import
{
Schema
}
from
'mongoose'
;
import
{
baseDB
}
from
'../../db/dbInit'
;
const
financingSchema
=
new
Schema
({
uscc
:{
type
:
String
,
key
:
true
},
//统一信用代码
id
:{
type
:
String
,
key
:
true
},
//唯一标识
createTime
:
Number
,
//入库时间
financingTime
:
Number
,
//获得融资时间
financingAmount
:
Number
,
//融资金额(万元)
investmentInstitutionsName
:
String
,
//投资机构名称
timeToObtainInvestment
:
Number
,
//获得投资时间
fuHuaQiInvestment
:{
type
:
Boolean
,
default
:
false
},
//孵化器是否投资
fuHuaQiInvestmentAmount
:
Number
,
//孵化器投资金额(万元)
fuHuaQiInvestmentStyle
:
Number
,
//孵化器投资方式
});
var
financingModel
;
export
function
initModel
(){
financingModel
=
baseDB
.
model
(
'financing'
,
financingSchema
);
}
src/data/fuHuaQi/task.ts
View file @
d81bab29
...
...
@@ -2,9 +2,11 @@ import {Schema} from 'mongoose';
import
{
baseDB
}
from
'../../db/dbInit'
;
const
fuHuaQiTaskSchema
=
new
Schema
({
key
:
{
type
:
Number
,
index
:
true
},
//名称
fuHuaQiName
:
String
,
//任务所属孵化器名称
key
:
{
type
:
Number
,
index
:
true
},
//任务类型
fuHuaQiUscc
:
String
,
//任务所属孵化器id
createTime
:
Number
,
//提交时间
relevanceId
:
String
,
//任务关联的表 financing 或 enterprise 的id
//出租率
});
var
fuHuaQiTaskModel
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment