Bids schema and creating
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
defmodule NeonVertigoService.Repo.Migrations.AddBidsTable do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table("bids", primary_key: false) do
|
||||
add :auction_gid, :string, primary_key: true
|
||||
add :bid_timestamp, :timestamp, cluster_key: true
|
||||
add :bidder_gid, :string, cluster_key: true
|
||||
add :bid, :decimal, null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user