Almost everything structural in SurrealDB starts with DEFINE: namespaces, databases, tables, fields, indexes, functions, access methods, parameters, and more. The DEFINE overview in the API docs shows the syntax for each statment. Each such resource also has an ALTER and REMOVE statement if you need to change or remove a definition.
Seeing what is defined
A schema will quickly grow to the point that it is no longer possible to keep in your head. The INFO statement can be used to show what definitions exist. INFO statements can be used on a variety of resources, such as INFO FOR DATABASE, INFO FOR TABLE table_name, INFO FOR INDEX index_name, and so on.
Users and other global objects show up when you ask at database level:
Where to go next
SurrealKit schema migration — manage
.surqlschema files and apply them with sync or rollouts