45 lines
760 B
HCL
45 lines
760 B
HCL
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]
|
|
}
|
|
}
|