Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyiDataServer
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
yuyiDataServer
Commits
823aaab8
Commit
823aaab8
authored
May 23, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
26e741b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
127 additions
and
27 deletions
+127
-27
mysqlTableConfig.ts
src/config/mysqlTableConfig.ts
+127
-27
No files found.
src/config/mysqlTableConfig.ts
View file @
823aaab8
...
...
@@ -265,32 +265,32 @@ export const TablesConfig = [
},
association
:
[]
},
{
tableNameCn
:
'知识产权'
,
tableName
:
'enterprise_ipr'
,
schema
:{
iprId
:
{
type
:
Sequelize
.
STRING
(
255
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
unique
:
true
//表示该列的值必须唯一
},
eId
:
{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//关联企业id
year
:
{
type
:
Sequelize
.
DATE
},
//认定时间(年)
number
:
{
type
:
Sequelize
.
INTEGER
},
//个数
iprType
:
{
type
:
Sequelize
.
INTEGER
},
// 新增知识产权类型: 软件著作,发明专利,海外专利,植物新品种,集成电路布图,【枚举】
selectedValue
:
{
type
:
Sequelize
.
INTEGER
},
//新增选中的值 没有用到这个字段
iprName
:
{
type
:
Sequelize
.
STRING
(
255
)},
// 新增名称
iprUrl
:
{
type
:
Sequelize
.
STRING
(
255
)},
//新增证明材料
category
:
{
type
:
Sequelize
.
STRING
(
255
)},
//类别
// softwareCopyrightCount:{type:Sequelize.INTEGER} ,//新增软件著作数量
// inventionPatentCount:{type:Sequelize.INTEGER} ,//新增发明专利数量
// overseasPatentCount:{type:Sequelize.INTEGER},//新增海外专利数量
// plantVarietyCount:{type:Sequelize.INTEGER} ,//新增植物新品种数量
// icLayoutCount: {type:Sequelize.INTEGER}//新增集成电路布图数量
},
association
:
[]
},
//
{
//
tableNameCn:'知识产权',
//
tableName:'enterprise_ipr',
//
schema:{
//
iprId: {
//
type:Sequelize.STRING(255), //表示属性的数据类型
//
allowNull:false, //表示当前列是否允许为空, false表示该列不能为空
//
primaryKey:true, //表示主键
//
unique:true //表示该列的值必须唯一
//
},
//
eId: {type:Sequelize.STRING(255), allowNull:false}, //关联企业id
//
year: {type:Sequelize.DATE}, //认定时间(年)
//
number: {type:Sequelize.INTEGER}, //个数
//
iprType: {type:Sequelize.INTEGER}, // 新增知识产权类型: 软件著作,发明专利,海外专利,植物新品种,集成电路布图,【枚举】
//
selectedValue: {type:Sequelize.INTEGER},//新增选中的值 没有用到这个字段
//
iprName: {type:Sequelize.STRING(255)}, // 新增名称
//
iprUrl: {type:Sequelize.STRING(255)},//新增证明材料
//
category: {type:Sequelize.STRING(255)},//类别
//
// softwareCopyrightCount:{type:Sequelize.INTEGER} ,//新增软件著作数量
//
// inventionPatentCount:{type:Sequelize.INTEGER} ,//新增发明专利数量
//
// overseasPatentCount:{type:Sequelize.INTEGER},//新增海外专利数量
//
// plantVarietyCount:{type:Sequelize.INTEGER} ,//新增植物新品种数量
//
// icLayoutCount: {type:Sequelize.INTEGER}//新增集成电路布图数量
//
},
//
association: []
//
},
{
tableNameCn
:
'法人信息表'
,
tableName
:
'enterprise_legal_person'
,
...
...
@@ -343,7 +343,8 @@ export const TablesConfig = [
title
:
{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//标题
content
:
{
type
:
Sequelize
.
STRING
(
255
)},
//内容
isPublished
:
{
type
:
Sequelize
.
INTEGER
},
//是否发布(1:是,0:否) 【枚举】
publishTime
:
{
type
:
Sequelize
.
DATE
},
//发布时间
publishStartTime
:
{
type
:
Sequelize
.
DATE
},
//发布开始时间
publishEndTime
:
{
type
:
Sequelize
.
DATE
},
//发布结束时间
relatedEnterprise
:
{
type
:
Sequelize
.
STRING
(
255
)},
//关联企业
},
association
:
[]
...
...
@@ -746,6 +747,100 @@ export const TablesConfig = [
},
association
:
[]
},
{
tableNameCn
:
'商标'
,
tableName
:
'trade_mark'
,
schema
:{
tmId
:
{
type
:
Sequelize
.
STRING
(
255
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
unique
:
true
//表示该列的值必须唯一
},
eId
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//关联企业id
qccId
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//企查查商标id
regNo
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//申请/注册号
name
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//商标名称
categoryId
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//国际分类code
category
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//国际分类描述
person
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//申请人
imageUrl
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//商标图案
flowStatusDesc
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//商标状态
RegDate
:{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//注册公告时间
},
association
:
[]
},
{
tableNameCn
:
'作品著作权'
,
tableName
:
'copy_right'
,
schema
:{
crId
:
{
type
:
Sequelize
.
STRING
(
255
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
unique
:
true
//表示该列的值必须唯一
},
eId
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//关联企业id
owner
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//作品著作权人
category
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//类别
name
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//作品名称
registerNo
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//登记号
registerDate
:{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//登记日期
publishDate
:{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//首次发布日期
finishDate
:{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//创作完成日期
},
association
:
[]
},
{
tableNameCn
:
'软件著作权'
,
tableName
:
'software_copyright'
,
schema
:{
scId
:
{
type
:
Sequelize
.
STRING
(
255
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
unique
:
true
//表示该列的值必须唯一
},
eId
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//关联企业id
category
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//分类号
publishDate
:{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//发布日期
versionNo
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//版本号
registerNo
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//登记号
registerAperDate
:{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//登记批准日期
name
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//软件全称
shortName
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//软件简称
owner
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//软件著作权人
finishDevelopDate
:{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//开发完成日期
},
association
:
[]
},
{
tableNameCn
:
'专利'
,
tableName
:
'patent'
,
schema
:{
patentId
:
{
type
:
Sequelize
.
STRING
(
255
),
//表示属性的数据类型
allowNull
:
false
,
//表示当前列是否允许为空, false表示该列不能为空
primaryKey
:
true
,
//表示主键
unique
:
true
//表示该列的值必须唯一
},
eId
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//关联企业id
category
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//专利IPC
kindcode
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//专利类型 (1.发明公布,2.发明授权,3.实用新型,4.外观设计)
applicationNumber
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//申请号
applicationDate
:{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//申请日期
publicationNumber
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//公开号
publicationDate
:{
type
:
Sequelize
.
DATE
,
allowNull
:
false
},
//公开日期
legalStatusDesc
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//法律状态详情
title
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//标题
agency
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//专利代理机构 '[""]'
kindCodeDesc
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//类型详情
IPCDesc
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//IPC详情 '[""]'
inventorStringList
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//发布人 '[""]'
assigneestringList
:{
type
:
Sequelize
.
STRING
(
255
),
allowNull
:
false
},
//申请人 '[""]'
},
association
:
[]
},
// {
// tableNameCn:'招投标信息',// todo
// tableName:'tendering ',
...
...
@@ -842,6 +937,11 @@ export const TablesConfig = [
{
type
:
"hasMany"
,
check
:
"approval_history"
,
goreignKey
:
"eId"
},
{
type
:
"hasMany"
,
check
:
"info_enter"
,
goreignKey
:
"eId"
},
{
type
:
"hasMany"
,
check
:
"info_operation_promotion"
,
goreignKey
:
"eId"
},
/**新增企查查表格 */
{
type
:
"hasMany"
,
check
:
"trade_mark"
,
goreignKey
:
"eId"
},
{
type
:
"hasMany"
,
check
:
"copy_right"
,
goreignKey
:
"eId"
},
{
type
:
"hasMany"
,
check
:
"software_copyright"
,
goreignKey
:
"eId"
},
{
type
:
"hasMany"
,
check
:
"patent"
,
goreignKey
:
"eId"
},
]
},
{
...
...
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