36 lines
583 B
HCL
36 lines
583 B
HCL
table "skills" {
|
|
schema = schema.public
|
|
|
|
column "id" {
|
|
type = uuid
|
|
default = sql("gen_random_uuid()")
|
|
null = false
|
|
}
|
|
column "name" {
|
|
type = text
|
|
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 "skills_catalog_name_idx" {
|
|
columns = [column.name]
|
|
}
|
|
}
|