OxL Reference

@ @table

@table

Applies to: data, field

Section: §12.8

Syntax

ebnf
Attr        = "@" Path [ "(" [ AttrArgs ] ")" ] ;

Grammar: App. A

Defined in

Examples

oxl
@table("orders") @owner(.userId, bypass: [.Support, .Admin])
data Order { … }

data Employee {
  name: str
  @visible(role: .HR) salary: Money?
}

— 13.4 Authorisation and policies

Related diagnostics

query-not-sql, shard-count-clamped, table-schema, deprecated, data-rights, missing-policy, unknown-policy-target

See also