Definition
- Diagram
- MySQL
CREATE TABLE IF NOT EXISTS `images` (
`id` bigint(20) unsigned NOT NULL,
`filename` varchar(127) NOT NULL,
`filepath` varchar(255) NOT NULL,
`status` int(10) NOT NULL COMMENT '-1 deleted 0 pendding 1 valid',
`created_at` timestamp NULL,
`updated_at` timestamp NULL,
PRIMARY KEY (`id`)
);
Image
AttributeName | AttributeType | ColumnName | DataType | NotNull | Comment |
---|---|---|---|---|---|
ID | uint64 | id | bigint(20) unsigned | true | |
Filename | string | filename | varchar(127) | true | |
Filepath | string | filepath | varchar(255) | true | |
Status | int | status | int(10) | true | -1 deleted 0 pendding 1 valid |
CreatedAt | *time.Time | created_at | timestamp | false | |
UpdatedAt | *time.Time | updated_at | timestamp | false |