1 CREATE TABLE 'companies' (
2 'id' INTEGER PRIMARY KEY NOT NULL,
3 'name' TEXT DEFAULT NULL,
4 'rating' INTEGER DEFAULT 1
7 CREATE TABLE 'replies' (
8 'id' INTEGER PRIMARY KEY NOT NULL,
10 'created_at' datetime,
11 'updated_at' datetime,
15 CREATE TABLE 'topics' (
16 'id' INTEGER PRIMARY KEY NOT NULL,
18 'subtitle' varchar(255),
20 'created_at' datetime,
24 CREATE TABLE 'developers' (
25 'id' INTEGER PRIMARY KEY NOT NULL,
26 'name' TEXT DEFAULT NULL,
27 'salary' INTEGER DEFAULT 70000,
28 'created_at' DATETIME DEFAULT NULL,
29 'updated_at' DATETIME DEFAULT NULL
32 CREATE TABLE 'projects' (
33 'id' INTEGER PRIMARY KEY NOT NULL,
34 'name' TEXT DEFAULT NULL
37 CREATE TABLE 'developers_projects' (
38 'developer_id' INTEGER NOT NULL,
39 'project_id' INTEGER NOT NULL,
40 'joined_on' DATE DEFAULT NULL,
41 'access_level' INTEGER DEFAULT 1