Skip to content

Commit

Permalink
Add an example file
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-farries committed Nov 6, 2023
1 parent 1f9549e commit 54d2484
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions examples/28_different_defaults.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "28_different_defaults",
"operations": [
{
"create_table": {
"name": "items",
"columns": [
{
"name": "id",
"type": "serial",
"pk": true
},
{
"name": "name",
"type": "varchar(255)",
"default": "'unnamed'"
},
{
"name": "price",
"type": "decimal(10,2)",
"default": "0.00"
},
{
"name": "created_at",
"type": "timestamptz",
"default": "now()"
}
]
}
}
]
}

0 comments on commit 54d2484

Please sign in to comment.