Skip to content

Commit

Permalink
Merge pull request #6 from sandwichcloud/serviceaccountdb
Browse files Browse the repository at this point in the history
Add service accounts and builtin auth
  • Loading branch information
rmb938 authored Dec 3, 2017
2 parents d258a25 + 6447bd7 commit ea75d1e
Show file tree
Hide file tree
Showing 16 changed files with 571 additions and 149 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def upgrade():
sa.Column('network_port_id', sau.UUIDType, sa.ForeignKey('network_ports.id', ondelete='RESTRICT')),
sa.Column('region_id', sau.UUIDType, sa.ForeignKey('regions.id', ondelete='RESTRICT'), nullable=False),
sa.Column('zone_id', sau.UUIDType, sa.ForeignKey('zones.id', ondelete='RESTRICT')),
sa.Column('service_account_id', sau.UUIDType, sa.ForeignKey('authn_service_accounts.id', ondelete='RESTRICT'),
nullable=False),

sa.Column('project_id', sau.UUIDType, sa.ForeignKey('projects.id', ondelete='RESTRICT'), nullable=False),
sa.Column('current_task_id', sau.UUIDType, sa.ForeignKey('tasks.id')),
Expand All @@ -38,7 +40,6 @@ def upgrade():
sa.Column('updated_at', sau.ArrowType(timezone=True), server_default=sa.text('clock_timestamp()'),
onupdate=sa.text('clock_timestamp()'),
nullable=False),

)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def upgrade():
sa.Column('error_message', sa.Text),

sa.Column('created_at', sau.ArrowType(timezone=True), server_default=sa.text('clock_timestamp()'),
nullable=False),
nullable=False, index=True),
sa.Column('updated_at', sau.ArrowType(timezone=True), server_default=sa.text('clock_timestamp()'),
onupdate=sa.text('clock_timestamp()'),
nullable=False),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def upgrade():
sa.Column('username', sa.String, nullable=False),
sa.Column('driver', sa.String, nullable=False),
sa.Column('created_at', sau.ArrowType(timezone=True), server_default=sa.text('clock_timestamp()'),
nullable=False),
nullable=False, index=True),
sa.Column('updated_at', sau.ArrowType(timezone=True), server_default=sa.text('clock_timestamp()'),
onupdate=sa.text('clock_timestamp()'),
nullable=False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def upgrade():
sa.Column('project_id', sau.UUIDType, sa.ForeignKey('projects.id', ondelete='CASCADE'), nullable=False),

sa.Column('created_at', sau.ArrowType(timezone=True), server_default=sa.text('clock_timestamp()'),
nullable=False),
nullable=False, index=True),
sa.Column('updated_at', sau.ArrowType(timezone=True), server_default=sa.text('clock_timestamp()'),
onupdate=sa.text('clock_timestamp()'),
nullable=False)
Expand All @@ -40,7 +40,7 @@ def upgrade():
sa.Column('instance_id', sau.UUIDType, sa.ForeignKey('instances.id', ondelete='CASCADE')),

sa.Column('created_at', sau.ArrowType(timezone=True), server_default=sa.text('clock_timestamp()'),
nullable=False),
nullable=False, index=True),
sa.Column('updated_at', sau.ArrowType(timezone=True), server_default=sa.text('clock_timestamp()'),
onupdate=sa.text('clock_timestamp()'),
nullable=False)
Expand Down
Loading

0 comments on commit ea75d1e

Please sign in to comment.