Add PostgreSQL
This commit is contained in:
36
storage/postgresql/schema.hcl
Normal file
36
storage/postgresql/schema.hcl
Normal file
@@ -0,0 +1,36 @@
|
||||
table "incentive_subscriptions" {
|
||||
schema = schema.carpool_incentives
|
||||
column "id" {
|
||||
null = false
|
||||
type = uuid
|
||||
}
|
||||
column "incentive_id" {
|
||||
null = false
|
||||
type = text
|
||||
}
|
||||
column "user_id" {
|
||||
null = false
|
||||
type = text
|
||||
}
|
||||
column "identity_verification_ids" {
|
||||
null = true
|
||||
type = sql("text[]")
|
||||
}
|
||||
column "data" {
|
||||
null = false
|
||||
type = jsonb
|
||||
}
|
||||
column "declined" {
|
||||
null = true
|
||||
type = boolean
|
||||
}
|
||||
column "subscription_datetime" {
|
||||
null = true
|
||||
type = timestamptz
|
||||
}
|
||||
primary_key {
|
||||
columns = [column.id]
|
||||
}
|
||||
}
|
||||
schema "carpool_incentives" {
|
||||
}
|
||||
Reference in New Issue
Block a user