Skip to content

Instantly share code, notes, and snippets.

@miratcan
Last active March 30, 2026 22:12
Show Gist options
  • Select an option

  • Save miratcan/68f866e13559ac11088b943572953a4e to your computer and use it in GitHub Desktop.

Select an option

Save miratcan/68f866e13559ac11088b943572953a4e to your computer and use it in GitHub Desktop.
OtoRapor DB Schema (DBML for dbdiagram.io)
Table vehicles {
id integer [pk, increment]
brand text [not null, note: 'e.g. "Alfa Romeo"']
model text [not null, note: 'e.g. "Tonale"']
year integer [not null]
variant text [not null, note: 'e.g. "1.6 Diesel 130 HP Ti DCT"']
slug text [unique, not null]
specs json [note: '{"engine": {"power_hp", "torque_nm", ...}, "dimensions": {...}, ...}']
features json [note: '{"safety": [...], "comfort": [...], "multimedia": [...], "design": [...]}']
colors json [note: '["Alfa Siyahı", "Misano Mavi", ...]']
source json [note: '{"url", "site", "crawled_at"}']
indexes {
(brand, model, year, variant) [unique]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment