Commit 36a3de4b by mhmdhaekal

migration(initialize): change identity number to snake case

1 parent 283bd3d8
...@@ -2,7 +2,7 @@ package specification ...@@ -2,7 +2,7 @@ package specification
import "ui.ac.id/dtd/go-webserver-boilerplate/internal/domain" import "ui.ac.id/dtd/go-webserver-boilerplate/internal/domain"
type UserCreate struct { type UserCreateRequest struct {
Name string `json:"name"` Name string `json:"name"`
Email string `json:"email"` Email string `json:"email"`
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
-- +goose StatementBegin -- +goose StatementBegin
CREATE TABLE "user" ( CREATE TABLE "user" (
"id" SERIAL PRIMARY KEY, "id" SERIAL PRIMARY KEY,
"IdentityNumber" VARCHAR(255) UNIQUE NOT NULL, "identity_number" VARCHAR(255) UNIQUE NOT NULL,
"email" VARCHAR(255) UNIQUE NOT NULL, "email" VARCHAR(255) UNIQUE NOT NULL,
"name" VARCHAR(255) NOT NULL, "name" VARCHAR(255) NOT NULL,
"is_active" BOOLEAN NOT NULL DEFAULT FALSE, "is_active" BOOLEAN NOT NULL DEFAULT FALSE,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!