Style guide for database metadata naming
Posted
by Nulldevice
on Stack Overflow
See other posts from Stack Overflow
or by Nulldevice
Published on 2010-04-09T09:18:12Z
Indexed on
2010/04/09
9:23 UTC
Read the original article
Hit count: 369
database-design
We want to establish some database metadata naming rules in our new project. For example:
- tables are named as nouns in a plural form (courses, books, lessons)
- if present, an adjective goes before a noun in a table name and is separated by an underscore (red_books, new_lessons)
- table index column is always named "id"
- foreign key names are derived from a table name with suffix _id (book_id, red_book_id)
- so on
Does someone know any guide like this?
© Stack Overflow or respective owner