79369176

Date: 2025-01-19 15:09:42
Score: 0.5
Natty:
Report link

In PostgreSQL, you don't need the current_timestamp, it automatically calculates.

CREATE TABLE Customer (
  customerID SERIAL PRIMARY KEY,
  name VARCHAR(255) NOT NULL,
  address TEXT,
  birthdate DATE,
  CONSTRAINT age_check CHECK (AGE(birthdate) >= INTERVAL '18 years')
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Syed Bilal Haider