feat(server): business owned by user data model

This commit is contained in:
eneller
2026-07-23 14:28:20 +02:00
parent c876a45ef8
commit 0f4474d29b
15 changed files with 69 additions and 37 deletions

View File

@@ -0,0 +1,12 @@
import { db, testConnection } from "../util/db";
import { hash } from "bcrypt";
import Account from '../model/user';
(async () =>{
await testConnection();
await Account.create({
id: process.argv[2],
displayName: process.argv[3],
balance: process.argv[4],
password: await hash(process.argv[5], 10),
})
})();