Skip to content

Commit

Permalink
Add SQL dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
celestora committed Jun 7, 2020
1 parent db845c3 commit d39b45b
Show file tree
Hide file tree
Showing 2 changed files with 513 additions and 0 deletions.
36 changes: 36 additions & 0 deletions install/init-event-db.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

CREATE TABLE `notifications` (
`recipientType` tinyint(3) UNSIGNED NOT NULL,
`recipientId` bigint(20) UNSIGNED NOT NULL,
`originModelType` tinyint(3) UNSIGNED NOT NULL,
`originModelId` bigint(20) UNSIGNED NOT NULL,
`targetModelType` tinyint(3) UNSIGNED NOT NULL,
`targetModelId` bigint(20) UNSIGNED NOT NULL,
`modelAction` tinyint(3) UNSIGNED NOT NULL,
`additionalData` char(24) NOT NULL,
`timestamp` bigint(20) UNSIGNED NOT NULL
) ENGINE=Aria DEFAULT CHARSET=utf8;

CREATE TABLE `postViews` (
`profile` bigint(20) UNSIGNED NOT NULL,
`post` bigint(20) UNSIGNED NOT NULL,
`owner` bigint(20) UNSIGNED NOT NULL,
`group` tinyint(3) UNSIGNED NOT NULL,
`subscribed` tinyint(3) UNSIGNED NOT NULL,
`timestamp` bigint(20) UNSIGNED NOT NULL,
`verified` tinyint(3) UNSIGNED NOT NULL DEFAULT 1
) ENGINE=Aria DEFAULT CHARSET=utf8;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Loading

0 comments on commit d39b45b

Please sign in to comment.