class

PlaceOS::Model::GroupZone

Inherits PlaceOS::Model::History::Tracked < PgORM::Timestamps < PgORM::Base < PgORM::Validators < PgORM::Table < PgORM::Persistence < PgORM::Associations < ActiveModel::Callbacks < ActiveModel::Validation < ActiveModel::Model < DB::Mappable < DB::Serializable < YAML::Serializable < JSON::Serializable < Reference < Object

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

Constants

CALLBACKS = { before_save: [do if (__temp_1383 = @group) && __temp_1383.new_record? __temp_1383.save self.group_id = __temp_1383.id.not_nil! end end, do if (__temp_1385 = @zone) && __temp_1385.new_record? __temp_1385.save self.zone_id = __temp_1385.id.not_nil! end end] of Nil, after_save: [] of Nil, before_create: [do self.created_at = self.updated_at = Time.utc end] of Nil, after_create: [] of Nil, before_update: [do self.updated_at = Time.utc end] of Nil, after_update: [] of Nil, before_destroy: [] of Nil, after_destroy: [do end, do end, :__record_history_destroy__] of Nil, }

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

PRIMARY_KEY_TYPES = {:group_id => UUID, :zone_id => String} of Nil => Nil

macro level key => type

PRIMARY_KEYS = [{:group_id, :zone_id}]

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

Constructors

from_json(string_or_io : String | IO, trusted : Bool = false) : self

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

from_json(string_or_io : String | IO, root : String, trusted : Bool = false) : self

Deserializes the given JSON in string_or_io into an instance of self, assuming the JSON consists of an JSON object with key root, and whose value is the value to deserialize. Will not deserialise from fields with mass_assign: false

class User < ActiveModel::Model
  attribute name : String
  attribute google_id : UUID, mass_assign: false
end

User.from_json(%({"main": {"name": "Jason", "google_id": "f6f70bfb-c882-446d-8758-7ce47db39620"}}), root: "main") # => #<User:0x103131b20 @name="Jason">
from_trusted_json(string_or_io : String | IO, root : String) : self

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

from_trusted_json(string_or_io : String | IO) : self

Serialize from a trusted JSON source

from_trusted_yaml(string_or_io : String | IO) : self

Serialize from a trusted YAML source

from_yaml(string_or_io : String | IO, trusted : Bool = false) : self

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

Source
new(pull : JSON::PullParser)

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

Source
new(rs : DB::ResultSet)

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

new(created_at : Time | ActiveModel::Model::None = ::ActiveModel::Model::None.new, updated_at : Time | ActiveModel::Model::None = ::ActiveModel::Model::None.new, group_id : UUID | ActiveModel::Model::None = ::ActiveModel::Model::None.new, zone_id : String | ActiveModel::Model::None = ::ActiveModel::Model::None.new, permissions : Int32 | ActiveModel::Model::None = ::ActiveModel::Model::None.new, deny : Bool | ActiveModel::Model::None = ::ActiveModel::Model::None.new)

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

Initialize PlaceOS::Model::GroupZone from HTTP::Params.

undelete(resource_id : String) : self

Recreates a deleted record from its latest delete entry, keeping its id.

Records removed alongside it (cascading deletes) are not restored and redacted fields are left at their defaults. Raises if there is no delete entry or the record can't be saved, e.g. if it already exists.

Source

Class methods

attributes

Returns all attribute keys.

by_group_id(id)
Source
by_zone_id(id)
Source
change_history(resource_id : String)

Entries recorded for the resource, newest first

Source
changefeed_ignored_update_columns

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

changes(id : Tuple(UUID, String) | Nil = nil) : ChangeFeed

Changefeed at row (if id passed) or whole table level. Returns a ChangeFeed instance which can be used to invoke async callbacks via on or use blocking Iterator via each method.

from_rs(__temp_2500 : DB::ResultSet)

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

history_ignored

Fields not recorded, changes to only these fields are not recorded at all

Source
history_redacted

Fields whose values are never recorded

Source
on_error(err : Exception | IO::Error)

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

primary_key

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

Source
table_name

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

Instance methods

after_create

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

after_destroy

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

after_initialize(trusted : Bool)

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

after_save

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

after_update

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

apply_defaults

Generate code to apply default values

assign_attributes(created_at : Time | Missing = Missing, updated_at : Time | Missing = Missing, group_id : UUID | Missing = Missing, zone_id : String | Missing = Missing, permissions : Int32 | Missing = Missing, deny : Bool | Missing = Missing)

Assign to multiple attributes.

assign_attributes(params : HTTP::Params | Hash(String, String) | Tuple(String, String))

Assign to multiple attributes via HTTP::Params.

assign_attributes(model : PlaceOS::Model::GroupZone)

Assign to multiple attributes from a model object

assign_attributes_from_json(json, root : String)

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

assign_attributes_from_json(json)

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

assign_attributes_from_trusted_json(json, root : String)

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

assign_attributes_from_trusted_json(json)

Assign each field from JSON if field exists in JSON and has changed in model

assign_attributes_from_trusted_yaml(yaml)

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

assign_attributes_from_yaml(yaml)

Uses the YAML parser as JSON is valid YAML

attributes

Returns a Hash of all attribute values

attributes_json(io : IO) : Nil

Serialize attributes to JSON, without any other properties to_json may include, as from_json expects them.

Values are serialized as in to_json, applying any attribute converters.

attributes_json(json : JSON::Builder) : Nil

Serialize attributes to JSON, without any other properties to_json may include, as from_json expects them.

Values are serialized as in to_json, applying any attribute converters.

attributes_json

Serialize attributes to JSON, without any other properties to_json may include, as from_json expects them.

Values are serialized as in to_json, applying any attribute converters.

attributes_tuple

Returns a NamedTuple of all attribute values.

before_create

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

before_destroy

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

before_save

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

before_update

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

build_group
Source
build_zone
Source
changed?

Check if any attributes have changed.

changed_attributes

Returns a Hash with all changed attributes.

changed_json(io : IO) : Nil

Serialize the set of changed attributes to JSON.

changed_json

Serialize the set of changed attributes to JSON.

changed_persist_attributes

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

changed_yaml(io : IO) : Nil

Serialize the set of changed attributes to YAML.

changed_yaml

Serialize the set of changed attributes to YAML.

changes

Returns a Hash of changed attributes, mapping each to a {previous, current} tuple.

changes_json(io : IO) : Nil

Serialize changed attributes to JSON as {"attribute": [previous, current]}.

Values are serialized as in to_json, applying any attribute converters.

changes_json(json : JSON::Builder) : Nil

Serialize changed attributes to JSON as {"attribute": [previous, current]}.

Values are serialized as in to_json, applying any attribute converters.

changes_json

Serialize changed attributes to JSON as {"attribute": [previous, current]}.

Values are serialized as in to_json, applying any attribute converters.

clear_changes_information

Reset changes for all attributes.

create_group
Source
create_group!
Source
create_zone
Source
create_zone!
Source
created_at

created_at getter

created_at=(value : Time)

Setters created_at setter

created_at?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

created_at_assigned?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

created_at_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

created_at_changed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

created_at_default

created_at's default value

created_at_present?
created_at_removed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

created_at_was

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

created_at_will_change!

Include created_at in the set of changed attributes, whether it has changed or not.

deny

deny getter

deny=(value : Bool)

deny setter

deny?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

deny_assigned?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

deny_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

deny_changed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

deny_default

deny's default value

Source
deny_present?
deny_removed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

deny_was

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

deny_will_change!

Include deny in the set of changed attributes, whether it has changed or not.

group
Source
group!
Source
group=(record : Group) : Group
Source
group?
Source
group_id

group_id getter

group_id=(value : UUID)

group_id setter

group_id?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

group_id_assigned?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

group_id_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

group_id_changed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

group_id_default

group_id's default value

Source
group_id_present?
group_id_removed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

group_id_was

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

group_id_will_change!

Include group_id in the set of changed attributes, whether it has changed or not.

history_action

Overrides the action recorded by the next change, e.g. approve

history_action=(history_action : String | Nil)

Overrides the action recorded by the next change, e.g. approve

history_correlation_id

A parent the change should also be found under

Source
history_metadata

Request details recorded with changes to this record, defaults to History.current_metadata

history_metadata=(history_metadata : PlaceOS::Model::History::Metadata | Nil)

Request details recorded with changes to this record, defaults to History.current_metadata

id

Always returns this record's primary key value, even when the primary key isn't named id

id?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

invoke_props

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

permission_flags
Source
permission_flags=(flags : Permissions)
Source
permissions

permissions getter

permissions=(value : Int32)

permissions setter

permissions?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

permissions_assigned?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

permissions_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

permissions_changed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

permissions_default

permissions's default value

Source
permissions_present?
permissions_removed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

permissions_was

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

permissions_will_change!

Include permissions in the set of changed attributes, whether it has changed or not.

persistent_attributes

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

primary_key

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

Source
primary_key_hash

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

reload_group
Source
reload_group?
Source
reload_zone
Source
reload_zone?
Source
restore_attributes

Reset each attribute to their previous values and clears all changes.

table_name

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

updated_at

updated_at getter

updated_at=(value : Time)

updated_at setter

updated_at?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

updated_at_assigned?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

updated_at_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

updated_at_changed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

updated_at_default

updated_at's default value

updated_at_present?
updated_at_removed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

updated_at_was

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

updated_at_will_change!

Include updated_at in the set of changed attributes, whether it has changed or not.

validate_nilability

Validate that all non-nillable fields have values.

zone
Source
zone!
Source
zone=(record : Zone) : Zone
Source
zone?
Source
zone_id

zone_id getter

zone_id=(value : String)

zone_id setter

zone_id?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

zone_id_assigned?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

zone_id_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

zone_id_changed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

zone_id_default

zone_id's default value

Source
zone_id_present?
zone_id_removed?

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

zone_id_was

Junction table: a group's access to a zone, with a permission bitmask and a deny flag. A row with deny = true masks off access that would otherwise be inherited from an ancestor zone's GroupZone row (replace semantics). Composite primary key (group_id, zone_id).

zone_id_will_change!

Include zone_id in the set of changed attributes, whether it has changed or not.

Nested types