forked from maccman/holla
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevelopment_structure.sql
More file actions
117 lines (98 loc) · 3.95 KB
/
development_structure.sql
File metadata and controls
117 lines (98 loc) · 3.95 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
CREATE TABLE `assets` (
`id` varchar(255) NOT NULL,
`data_file_name` varchar(255) DEFAULT NULL,
`data_content_type` varchar(255) DEFAULT NULL,
`data_file_size` int(11) DEFAULT NULL,
`data_updated_at` datetime DEFAULT NULL,
`preview_file_name` varchar(255) DEFAULT NULL,
`preview_content_type` varchar(255) DEFAULT NULL,
`preview_file_size` int(11) DEFAULT NULL,
`preview_updated_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`creator_id` varchar(255) DEFAULT NULL,
`uploaded` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `channels` (
`id` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`creator_id` varchar(255) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `clients` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(255) DEFAULT NULL,
`access_key_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`body` text,
`klass` varchar(255) DEFAULT NULL,
`klass_id` varchar(255) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_comments_on_klass_id` (`klass_id`),
KEY `index_comments_on_klass` (`klass`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `emails` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`from` varchar(255) DEFAULT NULL,
`to` varchar(255) DEFAULT NULL,
`subject` varchar(255) DEFAULT NULL,
`body` text,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `schema_migrations` (
`version` varchar(255) NOT NULL,
UNIQUE KEY `unique_schema_migrations` (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `user_channels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`channel_id` varchar(255) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
CREATE TABLE `users` (
`id` varchar(255) NOT NULL,
`first_name` varchar(255) DEFAULT NULL,
`last_name` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`handle` varchar(255) DEFAULT NULL,
`crypted_password` varchar(255) DEFAULT NULL,
`password_salt` varchar(255) DEFAULT NULL,
`persistence_token` varchar(255) DEFAULT NULL,
`current_login_at` datetime DEFAULT NULL,
`current_login_ip` varchar(255) DEFAULT NULL,
`single_access_token` varchar(255) DEFAULT NULL,
`perishable_token` varchar(255) DEFAULT NULL,
`active_token_id` int(11) DEFAULT NULL,
`oauth_token` varchar(255) DEFAULT NULL,
`oauth_secret` varchar(255) DEFAULT NULL,
`oauth` tinyint(1) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO schema_migrations (version) VALUES ('20100810182930');
INSERT INTO schema_migrations (version) VALUES ('20100810182939');
INSERT INTO schema_migrations (version) VALUES ('20100810183031');
INSERT INTO schema_migrations (version) VALUES ('20100817233131');
INSERT INTO schema_migrations (version) VALUES ('20100817233142');
INSERT INTO schema_migrations (version) VALUES ('20100817233159');
INSERT INTO schema_migrations (version) VALUES ('20100817233213');
INSERT INTO schema_migrations (version) VALUES ('20100818093502');
INSERT INTO schema_migrations (version) VALUES ('20100818093736');
INSERT INTO schema_migrations (version) VALUES ('20100907091913');
INSERT INTO schema_migrations (version) VALUES ('20100907092335');
INSERT INTO schema_migrations (version) VALUES ('20100907115424');