Skip to content

Add Database Col, add new http handler #170

Open
ThisWillGoWell wants to merge 32 commits intomasterfrom
dev
Open

Add Database Col, add new http handler #170
ThisWillGoWell wants to merge 32 commits intomasterfrom
dev

Conversation

@ThisWillGoWell
Copy link
Copy Markdown
Owner

alter table users add is_admin boolean not null DEFAULT FALSE;

`is_admin boolean NOT NULL DEFAULT FALSE` +
`PRIMARY KEY(uuid)` +
`);`

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit the PSQL command for data access/insert

Config map[string]interface{} `json:"-"`
ConfigStr string `json:"-"`
ActiveClients int64 `json:"-"`
IsAdmin bool `json:"is_admin"`
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the field to the models object

@ThisWillGoWell
Copy link
Copy Markdown
Owner Author

This is going to be a example PR to show how to add values to a object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants