I knew how to add attributes for product entity:
$eavSetup->addAttribute(
\Magento\Catalog\Model\Product::ENTITY,
'period_date_start',/* Custom Attribute Code */
[
'group' => 'Period Date',/* Group name in which you want to display your custom attribute */
'type' => 'datetime',/* Data type in which formate your value save in database*/
'frontend' => 'Magento\Eav\Model\Entity\Attribute\Frontend\Datetime',
'backend' => 'Magento\Eav\Model\Entity\Attribute\Backend\Datetime',
'label' => 'Start Date', /* lablel of your attribute*/
'input' => 'date',
'class' => '',
'source' => '', /* Source of your select type custom attribute options*/
'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE, /*Scope of your attribute */
'visible' => true,
'required' => false,
'user_defined' => true,
'default' => '',
'searchable' => false,
'filterable' => false,
'comparable' => false,
'visible_on_front' => false,
'used_in_product_listing' => true,
'unique' => false,
'sort_order' => 1
]
);
But how to add Attribute for cms_page ?