You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
2.4 KiB
SQL
31 lines
2.4 KiB
SQL
create table appointment_holidays
|
|
(
|
|
id bigint unsigned auto_increment
|
|
primary key,
|
|
year year not null,
|
|
date date not null,
|
|
type tinyint not null comment '1:工作日, 2:节假日',
|
|
created_at timestamp null,
|
|
updated_at timestamp null
|
|
)
|
|
collate = utf8mb4_unicode_ci;
|
|
|
|
create index appointment_holidays_date_index
|
|
on appointment_holidays (date);
|
|
|
|
create index appointment_holidays_year_index
|
|
on appointment_holidays (year);
|
|
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (1, 2023, '2023-04-29', 1, '2023-04-08 22:18:16', '2023-04-08 22:18:16');
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (2, 2023, '2023-04-30', 1, '2023-04-08 22:18:18', '2023-04-08 22:18:18');
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (3, 2023, '2023-05-01', 1, '2023-04-08 22:18:25', '2023-04-08 22:18:25');
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (4, 2023, '2023-05-02', 1, '2023-04-08 22:18:27', '2023-04-08 22:18:27');
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (5, 2023, '2023-05-03', 1, '2023-04-08 22:18:30', '2023-04-08 22:18:30');
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (6, 2023, '2023-04-23', 2, '2023-04-08 22:22:06', '2023-04-08 22:22:06');
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (7, 2023, '2023-05-06', 2, '2023-04-08 22:23:28', '2023-04-08 22:23:28');
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (8, 2023, '2023-04-05', 1, '2023-04-08 22:23:35', '2023-04-08 22:23:35');
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (9, 2023, '2023-06-22', 1, '2023-04-08 22:23:55', '2023-04-08 22:23:55');
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (10, 2023, '2023-06-23', 1, '2023-04-08 22:23:57', '2023-04-08 22:23:57');
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (11, 2023, '2023-06-24', 1, '2023-04-08 22:24:01', '2023-04-08 22:24:01');
|
|
INSERT INTO lkpe.appointment_holidays (id, year, date, type, created_at, updated_at) VALUES (12, 2023, '2023-06-25', 2, '2023-04-08 22:24:02', '2023-04-08 22:24:02');
|