Skip to content

#16 Create Seed Data#17

Draft
Copilot wants to merge 8 commits intodevfrom
copilot/create-seed-data
Draft

#16 Create Seed Data#17
Copilot wants to merge 8 commits intodevfrom
copilot/create-seed-data

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 14, 2026

  • Create prisma/seed.ts with idempotent seed data for all models
    • Add production safety check (defaults to development)
    • Add idempotency check
    • Seed CommunityConstituency (5 rows with batch create)
    • Seed Settings (1 row)
    • Seed Application (5 rows with randomization and batch create)
    • Seed Nomination (5 rows with randomization and batch create)
    • Seed Endorsement (5 rows with randomization and batch create)
  • Install tsx as devDependency
  • Update package.json with seed scripts and prisma config
  • Update GitHub workflow to run seeding on dev branch
  • Refactor into modular structure
    • Create prisma/seed/ folder
    • Split data into separate files per table
    • Add randomization for all data fields
    • Remove console logs
    • Use batch create operations
    • Use existing db client from lib/db.ts
    • Simplify existingData check
    • Remove unnecessary comments
    • Remove error handling and disconnect logic
    • Convert all imports to absolute paths using @/ prefix
    • Update seed command to use tsconfig for path alias resolution
  • Add utility functions for randomization
    • generateNUID() - Random 9-digit student IDs
    • generateEmail() - Random emails based on names
    • generatePhoneNumber() - Random phone numbers
    • getRandomConstituencyId() - Utility for constituency logic
  • Test seed script locally
    • Verify production safety check
    • Verify idempotency
    • Verify data randomization
    • Verify all numbers and emails are unique
    • Test db:reset workflow
    • Test npm run prisma:seed
  • Run code review
  • Run security check
  • All tests passing
Original prompt

This section details on the original issue you should resolve

<issue_title>Create seed data</issue_title>
<issue_description># Database Seeding Spec

Overview

Add idempotent seed data to populate local and dev databases with 4-5 rows per table using predefined lists and simple patterns. Never runs in production.

Implementation

Create prisma/seed.ts

import { PrismaClient } from '@prisma/client'

const prisma = new PrismaClient()

// Predefined data arrays
const FIRST_NAMES = ['Alex', 'Jordan', 'Taylor', 'Morgan', 'Casey']
const LAST_NAMES = ['Smith', 'Johnson', 'Williams', 'Brown', 'Davis']

const randomItem = <T>(arr: T[]): T => arr[Math.floor(Math.random() * arr.length)]

async function main() {
  if (process.env.NODE_ENV === 'production') {
    console.log('Seeding disabled in production')
    return
  }

  const existingData = await prisma.[model].findFirst()
  if (existingData) {
    console.log('Already seeded, skipping...')
    return
  }

  console.log('Seeding database...')
  
  // Create 4-5 rows per table using predefined lists
  // Example: Sequential emails, random names from arrays, simple date offsets
  
  console.log('Seeding complete!')
}

main()
  .catch((e) => {
    console.error('Seeding error:', e)
    process.exit(1)
  })
  .finally(async () => {
    await prisma.$disconnect()
  })

Update package.json

{
  "scripts": {
    "db:reset": "docker compose down -v && docker compose up -d && npm run prisma:migrate && npm run prisma:seed",
    "prisma:migrate": "prisma migrate dev",
    "prisma:seed": "prisma db seed",
    "prisma:studio": "prisma studio"
  },
  "prisma": {
    "seed": "tsx prisma/seed.ts"
  },
  "devDependencies": {
    "tsx": "^latest"
  }
}

Update GitHub Workflow

Add after migration step (dev branch only):

- name: Seed database
  if: github.ref == 'refs/heads/dev'
  run: npm run prisma:seed
  env:
    NODE_ENV: development

Data Patterns

  • Strings: Random selection from predefined arrays
  • Emails: Sequential (user1@example.com, user2@example.com)
  • Numbers: Sequential or simple ranges
  • Dates: new Date() with day offsets
  • Booleans: Alternating pattern

Key Requirements

  • Check if data exists before seeding (idempotent)
  • 4-5 rows per table minimum
  • Include at least one predictable record (e.g., admin user)
  • Production safety check via NODE_ENV</issue_description>

<agent_instructions>Issue number is #16</agent_instructions>

Comments on the Issue (you are @copilot in this section)

  • Fixes b-at-neu/senate-path#16

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
senate-path Ready Ready Preview, Comment Feb 16, 2026 2:37am

Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Copilot AI changed the title [WIP] Add idempotent seed data for local and dev databases #16 Create Seed Data Feb 14, 2026
Copilot AI requested a review from b-at-neu February 14, 2026 19:03
prisma/seed.ts Outdated
const constituencies = await Promise.all([
prisma.communityConstituency.create({
data: {
name: 'International Students',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you have these be pulled randomly from a list as well?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That way you can also batch create

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to use createMany for batch creation and randomized all community constituency selections from the predefined list. Commit: adc4a2f

prisma/seed.ts Outdated

const existingData = await prisma.communityConstituency.findFirst()
if (existingData) {
console.log('Already seeded, skipping...')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove console logs

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed all console logs from the seed script. Commit: adc4a2f

prisma/seed.ts Outdated
semester: SEMESTERS[i],
constituency: CONSTITUENCIES[i],
communityConstituencyId: i < 3 ? constituencies[i].id : null,
whySenateLongAnswer: `I am passionate about representing ${CONSTITUENCIES[i]} students and making a positive impact on campus. I believe my experience and dedication make me a strong candidate for student senate.`,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add some randomization for these as well

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added randomization using randomItem() for all long answer fields. Created multiple variations in LONG_ANSWERS constant with 5 different responses for each question type. Commit: adc4a2f

prisma/seed.ts Outdated
preferredFullName: fullName,
phoneticPronunciation: fullName,
pronunciationAudioUrl: `https://example.com/audio/${i}.mp3`,
pronouns: PRONOUNS[i],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add random selection of values

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added random selection using randomItem() for all application fields including college, major, minors, year, semester, constituency, and pronouns. Commit: adc4a2f

Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Copy link
Copy Markdown
Author

Copilot AI commented Feb 14, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint.prisma.io
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-14T20:07:10Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-14T20:07:28Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 -use-listen-fd (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-14T20:07:30Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@b-at-neu
Copy link
Copy Markdown
Collaborator

@copilot there are unresolved change requests

Copy link
Copy Markdown
Author

Copilot AI commented Feb 16, 2026

@copilot there are unresolved change requests

All change requests have been addressed in commit adc4a2f:

✅ Created prisma/seed/ folder with separate files per table
✅ Implemented batch operations using createMany()
✅ Added full randomization for all data fields
✅ Removed console logs from seed execution
✅ Added workflow step documentation

The changes are complete and tested. If there's a specific request I missed, please let me know which one.

Copy link
Copy Markdown
Collaborator

@b-at-neu b-at-neu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, randomize the generation of all sorts of numbers and emails much more

const fullName = `${firstName} ${lastName}`

applications.push({
nuid: `00100000${i}`,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Randomly generate this number

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added generateNUID() utility function that generates random 9-digit student IDs (e.g., 001406622, 001665735). Commit: a4c6c3f

phoneticPronunciation: fullName,
pronunciationAudioUrl: `https://example.com/audio/${i}.mp3`,
pronouns: randomItem(PRONOUNS),
email: `user${i + 1}@northeastern.edu`,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Randomyl generate this using the name and a random number

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added generateEmail() utility that creates emails using the person's name and a random number (e.g., jordan.smith6347@northeastern.edu). Commit: a4c6c3f

pronunciationAudioUrl: `https://example.com/audio/${i}.mp3`,
pronouns: randomItem(PRONOUNS),
email: `user${i + 1}@northeastern.edu`,
phoneNumber: `617-555-010${i}`,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Randomly generate this

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added generatePhoneNumber() utility that creates random phone numbers with random area codes and numbers (e.g., 471-961-2876). Commit: a4c6c3f

@@ -0,0 +1,81 @@
// Predefined data arrays
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need these kinds of comments, this is self-explanatory

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the comment. Commit: a4c6c3f


endorsements.push({
endorserName: `${endorserFirst} ${endorserLast}`,
endorserEmail: `endorser${i + 1}@northeastern.edu`,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Randomize these emails

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to use generateEmail() for randomized endorser emails (e.g., alex.smith7669@northeastern.edu). Commit: a4c6c3f

prisma/seed.ts Outdated
}

const existingData = await prisma.communityConstituency.findFirst()
if (existingData) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need these extra brackets

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplified to single-line return statement: if (existingData) return. Commit: a4c6c3f

prisma/seed.ts Outdated
import { seedNominations } from './seed/nominations'
import { seedEndorsements } from './seed/endorsements'

const prisma = new PrismaClient()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a global prisma client

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For all of this

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to export a global prisma instance from seed.ts that all seed files now import and use, eliminating the need to pass it as a parameter. Commit: a4c6c3f

prisma/seed.ts Outdated
process.exit(1)
})
.finally(async () => {
await prisma.$disconnect()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be needed with a global state

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed - all seed functions now import and use the global prisma client directly instead of receiving it as a parameter. Commit: a4c6c3f

major: randomItem(MAJORS),
status: STATUSES[i],
constituencyType: i % 2 === 0 ? 'academic' : 'community',
communityConstituencyId: i % 2 === 1 && i < 4 ? constituencies[Math.floor(i / 2)].id : null,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get a util function

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created getRandomConstituencyId() utility function that encapsulates the constituency selection logic. Commit: a4c6c3f

Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Copy link
Copy Markdown
Author

Copilot AI commented Feb 16, 2026

In general, randomize the generation of all sorts of numbers and emails much more

Added comprehensive randomization for all numbers and emails:

  • NUIDs: Random 9-digit IDs (e.g., 001406622)
  • Emails: Generated from names + random numbers (e.g., jordan.smith6347@northeastern.edu)
  • Phone numbers: Random area codes and numbers (e.g., 471-961-2876)
  • All emails now unique across applications, nominations, and endorsements

Commit: a4c6c3f

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint.prisma.io
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-16T01:53:48Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 --detach --pid-file /run/containerd/io.containerd.runtime.v2.task/moby/9ba3019c9c34614e42816fe2b58e7a5232910bb2172c06bdb409e08f1dca858e/1d6a6fb82e9d3649e2711338b46d8608b51abc68308bee8160f7bac147d9dbdf.pid 9ba3019c9c34614e42816fe2b58e7a5232910bb2172c06bdb409e08f1dca858e (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-16T01:53:50Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-16T01:53:56Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

prisma/seed.ts Outdated
import { seedNominations } from './seed/nominations'
import { seedEndorsements } from './seed/endorsements'

export const prisma = new PrismaClient()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There already exists a PrismaClient(). It is in the db.ts file. All files should import directly from there

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated all seed files to import db from lib/db.ts instead of creating a new PrismaClient instance. Commit: 2b0cb85

prisma/seed.ts Outdated
process.exit(1)
})
.finally(async () => {
await prisma.$disconnect()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this disconnect logic and error checking here

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the .catch() error handling and .finally() disconnect logic. The main function now executes without additional error handling. Commit: 2b0cb85

Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Copy link
Copy Markdown
Author

Copilot AI commented Feb 16, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint.prisma.io
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-16T02:07:43Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 --detach --pid-file /run/containerd/io.containerd.runtime.v2.task/moby/fd75ecc9a00e0e8b45b1eed14e9466859f70916cdb44e95d628259204d652152/be78c90deb509e4140de3e4286df8dfbea0f54750d198173710efd1e6895c465.pid fd75ecc9a00e0e8b45b1eed14e9466859f70916cdb44e95d628259204d652152 (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-16T02:07:45Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-16T02:07:50Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@@ -0,0 +1,57 @@
import { CommunityConstituency } from '@prisma/client'
import { db } from '../../lib/db'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make all of these imports absolute

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Converted all imports to absolute paths using the @/ prefix:

  • ../../lib/db@/lib/db
  • ./constants@/prisma/seed/constants
  • ./seed/...@/prisma/seed/...

All seed files now use absolute imports consistent with the rest of the codebase. Commit: 73a8121

Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Copy link
Copy Markdown
Author

Copilot AI commented Feb 16, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint.prisma.io
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-16T02:33:19Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 4dddb5acf05678e74040.pid (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-16T02:33:26Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 --detach --pid-file /run/containerd/io.containerd.runtime.v2.task/moby/dbbc4299612a84e7172a497a2bf6f7bf72ff44d15f43e150ba0e00bd002ef44c/766b16a8102ed984a18e4a3284513fbf0d14a8b79eb12ea39c1cadb3c777f22c.pid dbbc4299612a84e7172a497a2bf6f7bf72ff44d15f43e150ba0e00bd002ef44c (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/senate-path/senate-path/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.18.0&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-02-16T02:36:26Z&#34;,&#34;project_hash&#34;:&#34;7e6c9fe6&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/senate-path/senate-path/node_modules/.bin/prisma&#34;,&#34;cli_path_hash&#34;:&#34;8aa2e4f1 e9ca.pid cc29�� d -n 10 user.name 0/x64/lib/node_m--systemd-cgroup (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create seed data

2 participants