明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_backend
Project
Project
Details
Activity
Releases
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
zengfanpei
jt_backend
Commits
32d33e3a
Commit
32d33e3a
authored
Nov 19, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c4679568
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
index.js
db/index.js
+1
-1
projectFile.js
db/model/jt/projectFile.js
+1
-1
No files found.
db/index.js
View file @
32d33e3a
...
@@ -131,7 +131,7 @@ ProjectBjtj.belongsTo(Project, { foreignKey: 'projectId' });
...
@@ -131,7 +131,7 @@ ProjectBjtj.belongsTo(Project, { foreignKey: 'projectId' });
Project
.
hasMany
(
ProjectCwpjzb
,
{
foreignKey
:
'projectId'
,
as
:
'projectCwpjzbs'
});
Project
.
hasMany
(
ProjectCwpjzb
,
{
foreignKey
:
'projectId'
,
as
:
'projectCwpjzbs'
});
ProjectCwpjzb
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
ProjectCwpjzb
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
/**项目-项目附件 1:n */
/**项目-项目附件 1:n */
Project
.
has
Many
(
File
,
{
through
:
'jt_project_file'
,
foreignKey
:
'projectId'
,
as
:
'files'
,
otherKey
:
'fileId'
});
Project
.
belongsTo
Many
(
File
,
{
through
:
'jt_project_file'
,
foreignKey
:
'projectId'
,
as
:
'files'
,
otherKey
:
'fileId'
});
File
.
belongsTo
(
Project
,
{
through
:
'jt_project_file'
,
foreignKey
:
'fileId'
,
otherKey
:
'projectId'
});
File
.
belongsTo
(
Project
,
{
through
:
'jt_project_file'
,
foreignKey
:
'fileId'
,
otherKey
:
'projectId'
});
/**项目-股东信息 1:n */
/**项目-股东信息 1:n */
Project
.
hasMany
(
ProjectGdxx
,
{
foreignKey
:
'projectId'
,
as
:
'projectGdxxs'
});
Project
.
hasMany
(
ProjectGdxx
,
{
foreignKey
:
'projectId'
,
as
:
'projectGdxxs'
});
...
...
db/model/jt/projectFile.js
View file @
32d33e3a
// models/User.js
// models/User.js
const
{
DataTypes
}
=
require
(
'sequelize'
);
const
{
DataTypes
}
=
require
(
'sequelize'
);
const
sequelize
=
require
(
'../index'
);
const
sequelize
=
require
(
'../index'
);
const
File
=
require
(
'./file'
);
const
File
=
require
(
'.
./system
/file'
);
const
Project
=
require
(
'./project'
);
const
Project
=
require
(
'./project'
);
const
projectFile
=
sequelize
.
define
(
'projectFile'
,
{
const
projectFile
=
sequelize
.
define
(
'projectFile'
,
{
...
...
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