Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathinit.sql
More file actions
Latest commit
26 lines (24 loc) Β· 904 Bytes
/
Copy pathinit.sql
File metadata and controls
26 lines (24 loc) Β· 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
DROPTABLE IF EXISTS `houses`;
CREATETABLE `houses` (
`id`char(8) COLLATE utf8mb4_bin NOT NULL,
`view_count`INT(6) NOT NULL,
`html`text COLLATE utf8mb4_bin NOT NULL,
`created`timestampNOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
DROPTABLE IF EXISTS `publichouses`;
CREATETABLE `publichouses` (
`house_id`char(8) NOT NULL,
`title`varchar(128) COLLATE utf8mb4_bin NOT NULL,
`thumb_url`varchar(28) NOT NULL,
`added` datetime NOT NULL,
`updated` datetime NOT NULL,
`approved`tinyint(1) DEFAULT NULL,
`loves`int(4) NOT NULL,
PRIMARY KEY (`house_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
CREATETABLEIF NOT EXISTS `tweetedhouses` (
`house_id`char(8) NOT NULL,
`tweet_id`bigint(20) unsigned NOT NULL,
PRIMARY KEY (`house_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;