To protect your database from accidental modifications in the Table Editor and the database console, you can turn on the Read-only option for the corresponding data source (Data Source Properties in the context menu of the Database tool window).