Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Columns missing NOT NULL constraint #28

Open
jonbiemond opened this issue Nov 26, 2023 · 0 comments
Open

Columns missing NOT NULL constraint #28

jonbiemond opened this issue Nov 26, 2023 · 0 comments
Assignees
Labels
database Change to how data is stored

Comments

@jonbiemond
Copy link
Collaborator

Table columns are missing the NOT NULL constraint. The user table for example:

export const user = pgTable('user', {
    id: serial('id').primaryKey(),
    username: text('username'),
    fullName: text('full_name'),
    createdAt: timestamp("created_at"),
    updatedAt: timestamp("updated_at"),
});
@jonbiemond jonbiemond added the database Change to how data is stored label Nov 26, 2023
@jonbiemond jonbiemond self-assigned this Nov 26, 2023
jonbiemond added a commit that referenced this issue Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Change to how data is stored
Projects
None yet
Development

No branches or pull requests

1 participant