studentMeetingModel.js 602 字节
var  sequelize = require('../config');
var Sequelize = require('sequelize');
const uuid = require('../util/UuidUtil')

var  user = sequelize.define('3m_student_meeting', {
    id: {
        type: Sequelize.STRING(32),
        defaultValue:uuid.db32(),
        allowNull: false,
        unique: true,
        primaryKey: true,
        field: "id"
    },
    studentId: {
        allowNull: false,        
        type:Sequelize.STRING(32),
        field: "student_id"
    },
    meetingId: {
        allowNull: false,        
        type:Sequelize.STRING(32),
        field: "meeting_id"
    },
});