fix: 解决部署问题

This commit is contained in:
2025-02-24 20:27:39 +08:00
parent 1e9f209803
commit 61bf2cc73b
13 changed files with 53 additions and 84 deletions

9
src/scripts/sync-user.ts Normal file
View File

@@ -0,0 +1,9 @@
import { User } from '../models/user.ts';
// User.sync({ alter: true, logging: true }).then(() => {
// console.log('sync user done');
// });
User.findOne({ where: { username: 'admin' } }).then((user) => {
console.log('user', user);
});