init
This commit is contained in:
15
migrations/001_create_attendees_table.sql
Normal file
15
migrations/001_create_attendees_table.sql
Normal file
@ -0,0 +1,15 @@
|
||||
-- 创建参会者表
|
||||
CREATE TABLE IF NOT EXISTS `attendees` (
|
||||
`id` INT AUTO_INCREMENT PRIMARY KEY,
|
||||
`name` VARCHAR(100) NOT NULL,
|
||||
`email` VARCHAR(100) NULL,
|
||||
`phone` VARCHAR(20) NULL,
|
||||
`company` VARCHAR(100) NULL,
|
||||
`position` VARCHAR(100) NULL,
|
||||
`checked_in` BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
`checkin_time` TIMESTAMP NULL,
|
||||
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
INDEX `idx_email` (`email`),
|
||||
INDEX `idx_checked_in` (`checked_in`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
Reference in New Issue
Block a user