📜  模型未初始化:无法调用成员“findOne”. - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:18.009000             🧑  作者: Mango

代码示例1
import { Message } from './models/message';
import { User } from './models/user';
import { Sequelize } from 'sequelize-typescript';

const sequelize = new Sequelize({...});

sequelize.addModels([User, Message]);