feat: added clien on vue.js and ionic

This commit is contained in:
Arduinum
2026-01-29 15:36:22 +03:00
committed by Arduinum628
parent 1bac371217
commit fc13ed61d4
10 changed files with 140 additions and 54 deletions

11
client/src/db/seed.js Normal file
View File

@@ -0,0 +1,11 @@
import { INSERT_SEED_DB, COUNT_TIMERS } from './dml/timerDML'
export async function seedDb(db) {
// Функция для заполнения бд данными
const count = await db.select(COUNT_TIMERS);
if (count[0].cnt === 0) {
await db.execute(INSERT_SEED_DB);
}
}