Skip to content
benfreu edited this page Feb 28, 2015 · 3 revisions

Without further comment, this is the preliminary list of models we came up with. The 'markers' relate to the following:

[F] ... Foreign Key

[u] ... unique

  • law

    • _id
    • source_link
    • title
    • status
    • parl_id [u]
    • category [F]
    • keywords [F]
    • description
    • press_releases [F]
    • documents [F]
    • references [F: prelaw]
    • steps [F]
  • prelaw

    • _id
    • parl_id
    • source_link
    • status
    • keywords [F]
    • category [F] (immer Gesetzesentwurf?)
    • description
    • documents[F]
    • opinions [F]
    • steps [F]
  • opinion

    • _id
    • parl_id
    • date
    • description
    • documents [F]
    • category[F]
    • keywords [F]
    • entity [F]
    • steps [F]
  • steps

    • _id
    • sortkey
    • date
    • title
    • phase [F]
  • phase

    • _id
    • title
    • sortkey (?)
  • entity

    • _id
    • title
    • email
  • document

    • _id
    • title
    • pdf_link
    • html_link
    • (stripped_html)
  • press_release

    • _id
    • release_date
    • source_link
    • parl_id [u]
    • title
    • subtitle
    • full_text
    • topics
    • format
    • tags
  • keyword

    • _id
    • title
    • (description)
  • category

    • _id
    • title (Regierungsvorlage: Bundes(verfassungs)gesetz, Selbständiger Antrag, Regierungsvorlage: Staatsvertrag, uvm.)

Anmerkungen zu den Models

  • Wir speichern Schlagwörter dynamisch pro gescraptem Gesetz
  • keyword/description gibt es auf der parl seite nicht. könnte ein redaktionelles feld sein, das wir schreiben. ebenso category/description.
  • wir speichern zu law & prelaw als status einfach das HTML, das im status-feld dort steht & überschreiben geänderte stati einfach.

Clone this wiki locally