You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							30 lines
						
					
					
						
							786 B
						
					
					
				
			
		
		
	
	
							30 lines
						
					
					
						
							786 B
						
					
					
				defmodule DecentralisedBookIndex.Repo.Migrations.CreateAuthors do
 | 
						|
  @moduledoc """
 | 
						|
  Updates resources based on their most recent snapshots.
 | 
						|
 | 
						|
  This file was autogenerated with `mix ash_postgres.generate_migrations`
 | 
						|
  """
 | 
						|
 | 
						|
  use Ecto.Migration
 | 
						|
 | 
						|
  def up do
 | 
						|
    create table(:authors, primary_key: false) do
 | 
						|
      add :id, :uuid, null: false, default: fragment("gen_random_uuid()"), primary_key: true
 | 
						|
      add :name, :text, null: false
 | 
						|
      add :description, :text, null: false
 | 
						|
 | 
						|
      add :inserted_at, :utc_datetime_usec,
 | 
						|
        null: false,
 | 
						|
        default: fragment("(now() AT TIME ZONE 'utc')")
 | 
						|
 | 
						|
      add :updated_at, :utc_datetime_usec,
 | 
						|
        null: false,
 | 
						|
        default: fragment("(now() AT TIME ZONE 'utc')")
 | 
						|
    end
 | 
						|
  end
 | 
						|
 | 
						|
  def down do
 | 
						|
    drop table(:authors)
 | 
						|
  end
 | 
						|
end
 |