accounts.rb 349 B

1234567891011121314
  1. # frozen_string_literal: true
  2. require 'neo4j'
  3. # Provide Neo4J Model for aws accounts
  4. class AwsAccount
  5. include Neo4j::ActiveNode
  6. property :name, constraint: :unique
  7. property :account_id, constraint: :unique
  8. # We get the md5 since so we can search if we only know the creds
  9. property :key_md5
  10. property :secret_md5
  11. property :user_id
  12. end