9 lines
315 B
MySQL
9 lines
315 B
MySQL
|
|
CREATE TABLE `t3_post` (
|
||
|
|
`id` bigint AUTO_INCREMENT NOT NULL,
|
||
|
|
`name` varchar(256),
|
||
|
|
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||
|
|
`updated_at` timestamp ON UPDATE CURRENT_TIMESTAMP,
|
||
|
|
CONSTRAINT `t3_post_id` PRIMARY KEY(`id`)
|
||
|
|
);
|
||
|
|
--> statement-breakpoint
|
||
|
|
CREATE INDEX `name_idx` ON `t3_post` (`name`);
|