Introduce group basic federation, event new page and notifications

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-02-18 08:57:00 +01:00
parent 300ef8f245
commit 4144e9ffd0
416 changed files with 32220 additions and 16750 deletions

View File

@@ -0,0 +1,23 @@
defmodule Mobilizon.Repo.Migrations.CreateResources do
use Ecto.Migration
def change do
create table(:resource, primary_key: false) do
add(:id, :uuid, primary_key: true)
add(:title, :string, null: false)
add(:url, :string, null: false)
add(:type, :integer, null: false)
add(:summary, :text)
add(:resource_url, :string)
add(:metadata, :map)
add(:path, :string, null: false)
add(:parent_id, references(:resource, on_delete: :delete_all, type: :uuid), null: true)
add(:actor_id, references(:actors, on_delete: :delete_all), null: false)
add(:creator_id, references(:actors, on_delete: :nilify_all), null: true)
timestamps()
end
end
end