fix: add web-login

This commit is contained in:
2025-02-25 20:06:41 +08:00
parent c6de4f7dc3
commit 69721f3944
6 changed files with 224 additions and 14 deletions

12
src/scripts/user.ts Normal file
View File

@@ -0,0 +1,12 @@
import { User } from '../models/user.ts';
const uid = '9b7b521d-082e-4a39-8410-9569c07e3e72';
User.findByPk(uid).then((user) => {
console.log(user);
});
User.findAll().then((users) => {
for (let user of users) {
console.log(user.id, user.username);
}
});