initial commit
This commit is contained in:
35
database/schema/skills.pg.hcl
Normal file
35
database/schema/skills.pg.hcl
Normal file
@@ -0,0 +1,35 @@
|
||||
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]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user