• This project
    • Loading...
  • Sign in

윤준석 / mamuri-bot

%ea%b7%b8%eb%a6%bc1
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
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • mamuri-bot
  • server
  • models
  • user.js
  • 윤준석's avatar
    ADD: addKeyword function for add keyword to database · bafb6253 ...
    bafb6253 Browse Files
    if user is not exist in database, create user
    if keyword is not exist in database, create keyword
    윤준석 authored 2022-05-24 04:05:05 +0900
user.js 309 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14
module.exports = (sequelize, DataTypes) => {

    return sequelize.define("user", {
        id: {
            type: DataTypes.INTEGER,
            autoIncrement: true,
            primaryKey: true
        },
        userId: {
            type: DataTypes.STRING,
            allowNull: false
        }
    })
}