code: func (m *Meta) CreateTableOrView(dbID int64, tableInfo *model.TableInfo) error {
  	// Check if db exists.
  	dbKey := m.dbKey(dbID)
  	if err := m.checkDBExists(dbKey); err != nil {
  		return errors.Trace(err)
  	}
  
  	// Check if table exists.
  	tableKey := m.tableKey(tableInfo.ID)
  	if err := m.checkTableNotExists(dbKey, tableKey); err != nil {
  		return errors.Trace(err)
  	}
  
  	data, err := json.Marshal(tableInfo)
  	if err != nil {
  		return errors.Trace(err)
  	}
  
  	return m.txn.HSet(dbKey, tableKey, data)
  }
docs: // CreateTableOrView creates a table with tableInfo in database.