ื“ืœื’ ืœืชื•ื›ืŸ ื”ืจืืฉื™

Database Seeding

Seed the database with initial and demo data.

Overviewโ€‹

Gauzy seeds data automatically on first startup. The seeding system supports:

  • Default data โ€” required for the system to function (roles, permissions, languages)
  • Demo data โ€” example organization, employees, and activities for testing

Seed Architectureโ€‹

Configurationโ€‹

# Enable demo data seeding
DEMO=true

# Seed on startup
IS_SEED=true

Default Seed Dataโ€‹

EntityData
Languages30+ languages
CountriesAll countries
CurrenciesMajor currencies
RolesSUPER_ADMIN, ADMIN, EMPLOYEE
PermissionsAll permission definitions
Feature TogglesDefault feature settings

Demo Seed Dataโ€‹

EntityData
Tenant"Ever Technologies"
OrganizationDemo organization
Admin Useradmin@ever.co / admin
Employees10+ demo employees
ProjectsSample projects
TasksSample tasks
Time LogsDemo time entries

Custom Seedingโ€‹

// Create a custom seeder
export class CustomSeeder {
async run(dataSource: DataSource): Promise<void> {
const repo = dataSource.getRepository(MyEntity);
await repo.save([{ name: "Item 1" }, { name: "Item 2" }]);
}
}

Running Seeds Manuallyโ€‹

# Run all seeds
yarn seed:all

# Run only default seeds
yarn seed:default

# Run only demo seeds
yarn seed:demo