Sha256: c82b7a45b234d2e5f1e6a6aac592a2947626ff132599e525e524fb7a2ca8d8b5

Contents?: true

Size: 885 Bytes

Versions: 2

Compression:

Stored size: 885 Bytes

Contents

schema "0.0.1" do

  entity "Article" do

    string    :body,        optional: false
    integer32 :length
    boolean   :published,   default: false
    datetime  :publishedAt, default: false
    string    :title,       optional: false

    belongs_to   :author
    has_many :citations
  end

  entity "Author" do
    string :name, optional: false
    float :fee
    has_many :articles
  end

  entity "Writer" do
    string :name, optional: false
    float :fee

    has_many :spouses, inverse: "Spouse.writers", ordered: true
  end

  entity "Spouse", class_name: "CDQManagedObject" do
    string :name, optional: true
    has_many :writers, inverse: "Writer.spouses"
  end

  entity "Publisher", class_name: "CDQManagedObject" do
    string :name, optional: false
  end

  entity "Citation" do
    string     :journal
    datetime   :timestamp
    belongs_to :article
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cdq-0.1.2 schemas/001_baseline.rb
cdq-0.1.1 schemas/001_baseline.rb