创建带有时间戳字段 MySQL 的 TABLE

CREATING A TABLE WITH A TIMESTAMP FIELD MySQL

我正在尝试创建一个带有时间戳字段的 table,但出现此错误 错误 1064 (42000):您的 SQL 语法有误;查看与您的 MySQL 服务器版本对应的手册,了解在 'DEFAULT TIMESTAMP NOT NULL, 附近使用的正确语法, start_time 时间戳不为空, end_time TIME' 在第 3 行我尝试了 DEFAULT CURRENT_TIMESTAMP 但它没有用。如果有人能帮助我,那就太好了,因为我已经尝试搜索问题但找不到任何东西。

CREATE TABLE appointment (
app_id int(5) NOT NULL AUTO_INCREMENT,
date_created DEFAULT CURRENT_TIMESTAMP NOT NULL,
start_time TIMESTAMP NOT NULL,
end_time TIMESTAMP NOT NULL,
client_id int(5),
price decmial(10,2),
cancelled tinyint(1),
treatment_id int(5) NOT NULL,
specialist_id int(5) NOT NULL,
PRIMARY KEY (client_id),
FOREIGN KEY (treatment_id) REFERENCES treatment(treatment_id),
FOREIGN KEY (client_id) REFERENCES client(client_id),
FOREIGN KEY (specialist_id) REFERENCES specialist(specialist_id)
) ENGINE=InnoDB;

date_created没有类型!而非空字段需要一个默认值

CREATE TABLE appointment (
app_id int(5) NOT NULL AUTO_INCREMENT,
date_created TIMESTAMP  DEFAULT CURRENT_TIMESTAMP NOT NULL,
start_time TIMESTAMP DEFAULT CURRENT_TIMESTAMPNOT NULL,
end_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
client_id int(5),
price decmial(10,2),
cancelled tinyint(1),
treatment_id int(5) NOT NULL,
specialist_id int(5) NOT NULL,
PRIMARY KEY (client_id),
FOREIGN KEY (treatment_id) REFERENCES treatment(treatment_id),
FOREIGN KEY (client_id) REFERENCES client(client_id),
FOREIGN KEY (specialist_id) REFERENCES specialist(specialist_id)
) ENGINE=InnoDB;