initial commit
This commit is contained in:
44
database/schema/profile_roles.pg.hcl
Normal file
44
database/schema/profile_roles.pg.hcl
Normal file
@@ -0,0 +1,44 @@
|
||||
table "profile_roles" {
|
||||
schema = schema.public
|
||||
|
||||
column "id" {
|
||||
type = uuid
|
||||
default = sql("gen_random_uuid()")
|
||||
null = false
|
||||
}
|
||||
column "title" {
|
||||
type = text
|
||||
null = false
|
||||
}
|
||||
column "status" {
|
||||
type = text
|
||||
default = "active"
|
||||
null = false
|
||||
}
|
||||
column "created_at" {
|
||||
type = timestamptz
|
||||
default = sql("now()")
|
||||
null = false
|
||||
}
|
||||
column "updated_at" {
|
||||
type = timestamptz
|
||||
default = sql("now()")
|
||||
null = false
|
||||
}
|
||||
column "deleted_at" {
|
||||
type = timestamptz
|
||||
null = true
|
||||
}
|
||||
|
||||
primary_key {
|
||||
columns = [column.id]
|
||||
}
|
||||
|
||||
index "profile_roles_status_idx" {
|
||||
columns = [column.status]
|
||||
}
|
||||
|
||||
index "profile_roles_deleted_at_idx" {
|
||||
columns = [column.deleted_at]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user