Toggle navigation
Toggle navigation
This project
Loading...
Sign in
방승일
/
mamuri-bot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
윤준석
2022-05-24 01:25:31 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3653d890f7865d3ae75c096655598961242e410f
3653d890
1 parent
870a93ae
ADD: user model
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
server/models/index.js
server/models/user.js
server/models/index.js
View file @
3653d89
...
...
@@ -34,4 +34,6 @@ Object.keys(db).forEach(modelName => {
db
.
sequelize
=
sequelize
;
db
.
Sequelize
=
Sequelize
;
db
.
user
=
require
(
"./user"
)(
sequelize
,
Sequelize
)
module
.
exports
=
db
;
...
...
server/models/user.js
0 → 100644
View file @
3653d89
module
.
exports
=
(
sequelize
,
DataTypes
)
=>
{
return
sequelize
.
define
(
"user"
,
{
id
:
{
type
:
DataTypes
.
INT
,
autoIncrement
:
true
,
primaryKey
:
true
},
userId
:
{
type
:
DataTypes
.
INT
,
allowNull
:
false
}
})
}
\ No newline at end of file
Please
register
or
login
to post a comment