OxL Reference

@ @owner

@owner

Applies to: table, field, rpc

Section: §13

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

deprecated, data-rights, missing-policy, unknown-policy-target

See also