Vincent Tang Profile picture
Organizer of @tampadevs | Co-host @thundernerds | Co-host @codechefsdev | Frontend Developer | Salsa Dancer | Cat Daddy. I write about CSS / JS
Sep 23, 2019 11 tweets 4 min read
TIL there's lots of ways of #seeding #fakedata into a #SQL #database. You can either

A. Seed it with purely random data all the way
B. Seed it with realistic data
C. Seed it initially with random data, but tie that data into other tables realistically When you seed a database, you start off with enum (that's like a dictionary that doesn't change in size). If you look at a database schema, it's the tables that are only connected one time.

Then you focus on tables that have only have 1 foreign key tied, tied to an enum