mirror of
https://github.com/danbulant/ssps-bot
synced 2026-05-21 04:58:43 +00:00
18 lines
No EOL
405 B
JavaScript
18 lines
No EOL
405 B
JavaScript
const { Sequelize, Op, Model, DataTypes } = require("sequelize");
|
|
const sequelize = require("../sequelize");
|
|
const Group = require("./group");
|
|
const Student = require("./student");
|
|
|
|
const GroupStudent = sequelize.define(
|
|
"group_student",
|
|
{
|
|
},
|
|
{
|
|
indexes: [{
|
|
fields: ["groupId", "studentId"],
|
|
type: "UNIQUE"
|
|
}]
|
|
}
|
|
);
|
|
|
|
module.exports = GroupStudent; |