Sha256: 6fbff1f7dcd08c2238e1f77fe389027c7ac6950a888818263131bd99f38fd9bd

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

# frozen_string_literal: true

require_relative 'relationship'

module Legion
  module Data
    module Model
      class Function < Sequel::Model
        many_to_one :runner
        one_to_many :trigger_relationships, class: 'Legion::Data::Model::Relationship', key: :trigger_id
        one_to_many :action_relationships, class: 'Legion::Data::Model::Relationship', key: :action_id
        many_to_one :user_owner, class: Legion::Data::Model::User
        many_to_one :group_owner, class: Legion::Data::Model::Group
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
legion-data-0.2.0 lib/legion/data/models/function.rb