Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dtd
/
go-webserver-boilerplate
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 36a3de4b
authored
Feb 21, 2025
by
mhmdhaekal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migration(initialize): change identity number to snake case
1 parent
283bd3d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
internal/handler/specification/user.go
migration/postgres/20250219152426_create_user_table.sql
internal/handler/specification/user.go
View file @
36a3de4
...
...
@@ -2,7 +2,7 @@ package specification
import
"ui.ac.id/dtd/go-webserver-boilerplate/internal/domain"
type
UserCreate
struct
{
type
UserCreate
Request
struct
{
Name
string
`json:"name"`
Email
string
`json:"email"`
}
...
...
migration/postgres/20250219152426_create_user_table.sql
View file @
36a3de4
...
...
@@ -2,7 +2,7 @@
-- +goose StatementBegin
CREATE
TABLE
"user"
(
"id"
SERIAL
PRIMARY
KEY
,
"
IdentityN
umber"
VARCHAR
(
255
)
UNIQUE
NOT
NULL
,
"
identity_n
umber"
VARCHAR
(
255
)
UNIQUE
NOT
NULL
,
"email"
VARCHAR
(
255
)
UNIQUE
NOT
NULL
,
"name"
VARCHAR
(
255
)
NOT
NULL
,
"is_active"
BOOLEAN
NOT
NULL
DEFAULT
FALSE
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment