import type { Db, DbTx } from '../client'
import { stockLocations } from '../schema/stock-locations'

export async function seedDefaultStockLocation(db: Db | DbTx, tenantId: string): Promise<void> {
  await db.insert(stockLocations).values({
    tenantId,
    name: 'Main',
    code: 'MAIN',
    isDefault: true,
    isActive: true,
  })
}
