Sha256: d98cc00b8d75f8aae758469633f95673ef797e64fe76f29cc2c5fd795ef4d1c9

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

module Legion
  module Data
    module Model
      class Task < Sequel::Model
        many_to_one :relationship
        one_to_many :task_log
        many_to_one :parent, class: self
        one_to_many :children, key: :parent_id, class: self
        many_to_one :master, class: self
        one_to_many :slave, key: :master_id, class: self
        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/task.rb