Files
2026-09-12 15:39:57 +00:00

17 lines
818 B
SQL

CREATE TABLE IF NOT EXISTS `messages` (
`messageId` INT NOT NULL DEFAULT 0,
`senderId` INT NOT NULL DEFAULT 0,
`receiverId` INT NOT NULL DEFAULT 0,
`subject` TINYTEXT,
`content` TEXT,
`expiration` bigint(13) unsigned NOT NULL DEFAULT '0',
`reqAdena` BIGINT NOT NULL DEFAULT 0,
`hasAttachments` enum('true','false') DEFAULT 'false' NOT NULL,
`isUnread` enum('true','false') DEFAULT 'true' NOT NULL,
`isDeletedBySender` enum('true','false') DEFAULT 'false' NOT NULL,
`isDeletedByReceiver` enum('true','false') DEFAULT 'false' NOT NULL,
`isLocked` enum('true','false') DEFAULT 'false' NOT NULL,
`isFourStars` enum('true','false') DEFAULT 'false' NOT NULL,
`isNews` enum('true','false') DEFAULT 'false' NOT NULL,
PRIMARY KEY (`messageId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;