'Web Study/워드프레스'에 해당되는 글 1건

  1. 2012.09.12 [Wordpress]워드프레스 데이터베이스 스키마

참고 URL: http://codex.wordpress.org/Database_Description


워드프레스 3.0 데이터베이스 다이어그램: (출처: http://codex.wordpress.org/images/9/9e/WP3.0-ERD.png





WordPress 3.4 Tables (11)
Table NameDescriptionRelevant Area(s) of WordPress User Interface
wp_commentmetaEach comment features information called the meta data and it is stored in the wp_commentmeta
(각 커멘트메타 데이타라 불리는 정보를 포함하고 wp_commentmeta 테이블에 저장된다.) 
wp_commentsThe comments within WordPress are stored in the wp_comments table. 
(워드프레스 내의 커멘트들은 wp_comments 테이블에 저장된다.)
wp_linksThe wp_links holds information related to the links entered into the Links feature of WordPress.
(wp_links는 워드프레스의 Links 기능에 입력되는 링크와 관련된 정보를 저장한다.)
wp_optionsThe Options set under theAdministration > Settings panel are stored in the wp_options table. SeeOption Reference for option_name

 and default values.
(Administration > Setting 패널에 있는 Options 는 wp_options 테이블에 저장된다. option_name과 기본값에 대해서는 Option Reference를 참고하라.) 

wp_postmetaEach post features information called the meta data and it is stored in the wp_postmeta. Some plugins may add their own information to this table.

(각 포스트메타 데이터라고 불리는 정보를 포함하고 그 정보는 wp_postmeta 테이블에 저장된다. 어떤 플러그인은 이 테이블에 자기만의 정보를 추가할 수도 있다.) 

wp_postsThe core of the WordPress data is theposts. It is stored in the wp_posts

 table. Also Pages and navigation menu items are stored in this table.
(워드프레스 데이터의 핵심은 바로 포스트이고 그 정보는 wp_posts 테이블에 저장된다. 또한 페이지와 네비게이션 메뉴 아이템에 대한 정보도 이 테이블에 저장된다.)

wp_termsThe categories for both posts and links and the tags for posts are found within the wp_terms

 table.
(포스트와 링크에 대한 카테고리와 포스트에 대한 태그가 wp_terms 테이블에 저장된다.)

wp_term_relationshipsPosts are associated with categories and tags from the wp_terms table and this association is maintained in thewp_term_relationships

 table. The association of links to their respective categories are also kept in this table.
(포스트는 wp_terms 테이블에 저장되는 카테고리와 태그와 관계가 있고 이 관계는 wp_term_relationships 테이블에 저장된다. 링크와 링크에 대한 각각의 카테고리와의 관계는 이 테이블에 저장된다. )

wp_term_taxonomyThis table describes the taxonomy (categorylink, or tag) for the entries in the wp_terms

 table.
(이 테이블은 wp_terms 테이블에 있는 항목들에 대한 분류(카테고리, 링크, 태그) 정보를 저장한다.)

wp_usermetaEach user features information called the meta data and it is stored inwp_usermeta.

(모든 유저는 wp_usermeta 테이블에 저장되는 메타 데이터라 불리는 정보를 가진다.)

wp_usersThe list of users is maintained in tablewp_users.

(유저의 목록이 wp_users 테이블에 저장된다.)



테이블 세부정보


1. Table: wp_commentmeta

FieldTypeNullKeyDefaultExtra
meta_idbigint(20) unsigned PRINULLauto_increment
comment_idbigint(20) unsigned IND0FK->wp_comments.comment_id
meta_keyvarchar(255)YESINDNULL 
meta_valuelongtextYES NULL 

Indexes

KeynameTypeCardinalityField
PRIMARYPRIMARY0meta_ID
comment_idINDEXnonecomment_id
meta_keyINDEXnonemeta_key


2. Table: wp_comments

FieldTypeNullKeyDefaultExtra
comment_IDbigint(20) unsigned PRINULLauto_increment
comment_post_IDbigint(20) unsigned IND0FK->wp_posts.ID
comment_authortinytext    
comment_author_emailvarchar(100)    
comment_author_urlvarchar(200)    
comment_author_IPvarchar(100)    
comment_datedatetime  0000-00-00 00:00:00 
comment_date_gmtdatetime IND & IND Pt20000-00-00 00:00:00 
comment_contenttext    
comment_karmaint(11)  0 
comment_approvedvarchar(20) IND & Ind Pt11 
comment_agentvarchar(255)    
comment_typevarchar(20)    
comment_parentbigint(20) unsigned  0FK->wp_comments.ID
user_idbigint(20) unsigned  0FK->wp_users.ID

Indexes

KeynameTypeCardinalityField
PRIMARYPRIMARY1comment_ID
comment_post_IDINDEXNonecomment_post_ID
comment_approved_date_gmtINDEXNonecomment_approved
comment_date_gmt
comment_date_gmtINDEXNonecomment_date_gmt
comment_parentINDEXNonecomment_parent


3. Table: wp_links

FieldTypeNullKeyDefaultExtra
link_idbigint(20) unsigned PRINULLauto_increment
link_urlvarchar(255)    
link_namevarchar(255)    
link_imagevarchar(255)    
link_targetvarchar(25)    
link_descriptionvarchar(255)    
link_visiblevarchar(20) INDY 
link_ownerbigint(20) unsigned  1 
link_ratingint(11)  0 
link_updateddatetime  0000-00-00 00:00:00 
link_relvarchar(255)    
link_notesmediumtext    
link_rssvarchar(255)    

Indexes

KeynameTypeCardinalityField
PRIMARYPRIMARY7link_ID
link_categoryINDEXNonelink_category
link_visibleINDEXNonelink_visible


4. Table: wp_options

FieldTypeNullKeyDefaultExtra
option_idbigint(20) unsigned PRI Pt1NULLauto_increment
option_namevarchar(64) PRI Pt3 & IND  
option_valuelongtext   
autoloadvarchar(20)  yes 

Indexes

KeynameTypeCardinalityField
PRIMARYPRIMARY184option_id
blog_id
option_name
option_nameUNIQUE184option_name


5. Table: wp_postmeta

FieldTypeNullKeyDefaultExtra
meta_idbigint(20) unsigned PRINULLauto_increment
post_idbigint(20) unsigned IND0FK->wp_posts.ID
meta_keyvarchar(255)YESINDNULL 
meta_valuelongtextYES NULL 

Indexes

KeynameTypeCardinalityField
PRIMARYPRIMARY13meta_ID
post_idINDEX15post_id
meta_keyINDEX7meta_key


6. Table: wp_posts

FieldTypeNullKeyDefaultExtra
IDbigint(20) unsigned PRI & IND Pt4 auto_increment
post_authorbigint(20) unsigned  0FK->wp_users.ID
post_datedatetime IND Pt30000-00-00 00:00:00 
post_date_gmtdatetime  0000-00-00 00:00:00 
post_contentlongtext    
post_titletext    
post_excerpttext    
post_statusvarchar(20) IND PT2publish 
comment_statusvarchar(20)  open 
ping_statusvarchar(20)  open 
post_passwordvarchar(20)    
post_namevarchar(200) IND  
to_pingtext    
pingedtext    
post_modifieddatetime  0000-00-00 00:00:00 
post_modified_gmtdatetime  0000-00-00 00:00:00 
post_content_filteredlongtext   
post_parentbigint(20) unsigned  0FK->wp_posts.ID
guidvarchar(255)    
menu_orderint(11)  0 
post_typevarchar(20) IND Pt1post 
post_mime_typevarchar(100)    
comment_countbigint(20)  0 

Indexes

KeynameTypeCardinalityField
PRIMARYPRIMARY2ID
post_nameINDEXNonepost_name
type_status_dateINDEXNonepost_type
post_status
post_date
ID
post_parentINDEXNonepost_parent
post_authorINDEXNonepost_author


7. Table: wp_terms

FieldTypeNullKeyDefaultExtra
term_idbigint(20) unsigned PRI auto_increment
namevarchar(200)    
slugvarchar(200) UNI  
term_groupbigint(10)  0 

Indexes

KeynameTypeCardinalityField
PRIMARYPRIMARY2term_ID
slugUNIQUE2slug
nameIndexnonename


8. Table: wp_term_relationships

FieldTypeNullKeyDefaultExtra
object_idbigint(20) unsigned PRI Pt10 
term_taxonomy_idbigint(20) unsigned PRI Pt2 & IND0FK->wp_term_taxonomy.term_taxonomy_id
term_orderint(11)  0 

Indexes

KeynameTypeCardinalityField
PRIMARYPRIMARY8object_id
term_taxonomy_id
term_taxonomy_idINDEXNoneterm_taxonomy_id


9. Table: wp_term_taxonomy

FieldTypeNullKeyDefaultExtra
term_taxonomy_idbigint(20) unsigned PRI auto_increment
term_idbigint(20) unsigned UNI Pt10FK->wp_terms.term_id
taxonomyvarchar(32) UNI Pt2  
descriptionlongtext    
parentbigint(20) unsigned  0 
countbigint(20)  0 

Indexes

KeynameTypeCardinalityField
PRIMARYPRIMARY2term_taxonomy_id
term_id_taxonomyUNIQUE2term_id
taxonomy
taxonomyINDEXNonetaxonomy


10. Table: wp_usermeta

FieldTypeNullKeyDefaultExtra
umeta_idbigint(20) unsigned PRINULLauto_increment
user_idbigint(20) unsigned  '0'FK->wp_users.ID
meta_keyvarchar(255)YesINDNULL 
meta_valuelongtextYesINDNULL 

Indexes

KeynameTypeCardinalityField
PRIMARYPRIMARY9umeta_id
user_idINDEXNoneuser_id
meta_keyINDEXNonemeta_key


11. Table: wp_users

FieldTypeNullKeyDefaultExtra
IDbigint(20) unsigned PRINULLauto_increment
user_loginvarchar(60) IND  
user_passvarchar(64)    
user_nicenamevarchar(50) IND  
user_emailvarchar(100)    
user_urlvarchar(100)    
user_registereddatetime  0000-00-00 00:00:00 
user_activation_keyvarchar(60)   
user_statusint(11)  0 
display_namevarchar(250)    

Indexes

KeynameTypeCardinalityField
PRIMARYPRIMARY1ID
user_login_keyINDEXNoneuser_login
user_nicenameINDEXNoneuser_nicename


Posted by 파노카페
: