Type Reference
Complete reference for all available data types in FakeDataDSL.
Basic Types
Identifiers
uuid- UUID v4 identifierid: uuid id: uuid(version: 6) # UUID v6 id: uuid(version: 7) # UUID v7ulid- ULID identifierid: ulidid_sequence- Sequential numeric IDsid: id_sequence id: id_sequence(start: 1000)
Strings
name- Full person namename: nametext- Random textdescription: text bio: text(100..500) # Length rangeemail- Email addressemail: emailphone- Phone numberphone: phone phone: phone(country: :us)url- Web URLwebsite: url
Numbers
number- Numeric valueage: number(18..65) price: number(min: 10, max: 100)boolean- True/falseactive: boolean
Dates and Times
date- Calendar datebirth_date: date birth_date: date(2020-01-01..2024-12-31)past_date- Date in the pastcreated_at: past_date created_at: past_date(days: 30)future_date- Date in the futureexpires_at: future_date expires_at: future_date(days: 90)timestamp- Unix timestampcreated_at: timestampnow- Current timestampupdated_at: now
Personal Information Types
first_name- Given namelast_name- Family namefull_name- Combined first and last namegender- Gender identityage- Age valueusername- Username identifiernational_id- Government ID (SSN, etc.)
Location Types
country- Country namecountry_code- ISO country code (US, GB, etc.)city- City namestate- State/province nameaddress- Full street addresspostal_code- Postal/ZIP codelatitude- Geographic latitudelongitude- Geographic longitudetimezone- IANA timezone identifier
Commerce Types
product_name- Product nameproduct_category- Product categorysku- Stock keeping unitmoney- Monetary amountdiscount- Discount valuetax_rate- Tax rate percentage
Finance Types
credit_card- Credit card number (Luhn-valid)bank_name- Bank nameaccount_number- Bank account numberiban- International Bank Account Numbertransaction_amount- Financial transaction amount
Internet/IT Types
ip- IPv4 addressipv6- IPv6 addressmac_address- MAC addressdomain- Domain nameuser_agent- Browser user agent string
Crypto Types
hash- Cryptographic hashbitcoin_address- Bitcoin wallet addressethereum_address- Ethereum wallet addressprivate_key- Cryptographic private key
Health Types
blood_type- Blood group (A+, B-, etc.)bmi- Body Mass Indexheart_rate- Heart beats per minutemedical_code- Medical classification code
Travel Types
airport_code- IATA airport codeairline- Airline nameflight_number- Flight identifierseat_number- Aircraft seat number
Advanced Types
enum- Enumeration with valuesstatus: enum(active, inactive, pending) status: enum(active: 80%, inactive: 15%, pending: 5%)array- Array of valuestags: array(text, 3..10) scores: array(number(0..100), 5)object- Nested objectaddress: object( street: text, city: city, zip: postal_code )reference- Reference another schemauser_id: reference(User, id)custom- Custom functionslug: custom(:generate_slug)formula- Computed valuetotal: formula(price * quantity)template- String interpolationgreeting: template("Hello {first_name}!")sequence- Sequential valuesorder: sequence(start: 1, step: 1)default_value- Default value with probabilitystatus: default_value(value: "active", probability: 0.9)
See Also
- DSL Reference - Syntax details
- Examples - Usage examples