chore: init sample folder
This commit is contained in:
parent
0d47938a7e
commit
49f14be548
2 changed files with 10 additions and 0 deletions
4
sample/Migra.toml
Normal file
4
sample/Migra.toml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
directory = "database"
|
||||||
|
|
||||||
|
[database]
|
||||||
|
connection = "postgres://postgres:123456@localhost:5434/migra"
|
6
sample/database/schema.sql
Normal file
6
sample/database/schema.sql
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
create table tags (
|
||||||
|
id serial primary key,
|
||||||
|
name text not null unique check(length(name) > 0),
|
||||||
|
created_at timestamp not null default current_timestamp
|
||||||
|
);
|
Reference in a new issue