24 lines
492 B
Plaintext
24 lines
492 B
Plaintext
import add_column, create_table, types from require "lapis.db.schema"
|
|
|
|
{
|
|
[1]: =>
|
|
create_table "users", {
|
|
{ "id", types.serial }
|
|
{ "email", types.text }
|
|
{ "name", types.text }
|
|
{ "password", types.text }
|
|
|
|
"PRIMARY KEY (id)"
|
|
}
|
|
|
|
[2]: =>
|
|
add_column "users", "admin", types.boolean
|
|
|
|
[3]: =>
|
|
add_column "users", "extension", types.text
|
|
|
|
[4]: =>
|
|
add_column "users", "created_at", types.time
|
|
add_column "users", "updated_at", types.time
|
|
}
|