feat: add code-flow base load

This commit is contained in:
2024-06-25 23:56:12 +08:00
parent 5118891c41
commit 776c1287b8
10 changed files with 261 additions and 132 deletions

View File

@@ -41,13 +41,9 @@ User.init(
export const initializeUser = async () => {
const w = await User.findOne();
const password = '2e8a305521bba54f49638ed25e46adf3';
const password = '2e8a305521bba54f49638ed25e46adf3'; //123456
const salt = '123';
const users = [
{ username: 'admin' },
{ username: 'user' },
{ username: 'root' },
];
const users = [{ username: 'admin' }, { username: 'user' }, { username: 'root' }];
if (!w) {
const newUsers = await User.bulkCreate(
users.map((user) => {