Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

陆宇天 / tracking-backend

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • tracking-backend
  • app
  • model
  • page.js
  • 张权's avatar
    dev:新增pageName逻辑 · 55510144
    张权 committed Jul 08, 2022
    55510144 Browse Files
page.js 432 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
"use strict";

module.exports = (app) => {
  const { INTEGER, STRING, BOOLEAN } = app.Sequelize;

  const Page = app.model.define(
    "page",
    {
      id: {
        type: INTEGER,
        primaryKey: true,
        autoIncrement: true,
      },
      pageId: STRING(64),
      pageName: STRING(64),
    },
    {
      timestamps: true,
      createdAt: "create_date",
      updatedAt: "update_date",
    }
  );
  return Page;
};