code: func NewRegisteredEntity(scope, namePrefix string, table *Table) *RegisteredEntity {
  	return &RegisteredEntity{
  		table: table,
  		schemaRef: &SchemaRef{
  			Scope:      scope,
  			NamePrefix: namePrefix,
  			EntityName: table.Name,
  		},
  	}
  }
docs: // NewRegisteredEntity is a constructor for creating a RegisteredEntity