~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/actionpack/test/fixtures/db_definitions/sqlite.sql

  • Committer: Michael Forrest
  • Date: 2010-10-15 16:28:50 UTC
  • Revision ID: michael.forrest@canonical.com-20101015162850-tj2vchanv0kr0dun
refrozeĀ gems

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CREATE TABLE 'companies' (
 
2
  'id' INTEGER PRIMARY KEY NOT NULL,
 
3
  'name' TEXT DEFAULT NULL,
 
4
  'rating' INTEGER DEFAULT 1
 
5
);
 
6
 
 
7
CREATE TABLE 'replies' (
 
8
  'id' INTEGER PRIMARY KEY NOT NULL, 
 
9
  'content' text, 
 
10
  'created_at' datetime, 
 
11
  'updated_at' datetime, 
 
12
  'topic_id' integer,
 
13
  'developer_id' integer
 
14
);
 
15
 
 
16
CREATE TABLE 'topics' (
 
17
  'id' INTEGER PRIMARY KEY NOT NULL, 
 
18
  'title' varchar(255), 
 
19
  'subtitle' varchar(255), 
 
20
  'content' text, 
 
21
  'created_at' datetime, 
 
22
  'updated_at' datetime
 
23
);
 
24
 
 
25
CREATE TABLE 'developers' (
 
26
  'id' INTEGER PRIMARY KEY NOT NULL,
 
27
  'name' TEXT DEFAULT NULL,
 
28
  'salary' INTEGER DEFAULT 70000,
 
29
  'created_at' DATETIME DEFAULT NULL,
 
30
  'updated_at' DATETIME DEFAULT NULL
 
31
);
 
32
 
 
33
CREATE TABLE 'projects' (
 
34
  'id' INTEGER PRIMARY KEY NOT NULL,
 
35
  'name' TEXT DEFAULT NULL
 
36
);
 
37
 
 
38
CREATE TABLE 'developers_projects' (
 
39
  'developer_id' INTEGER NOT NULL,
 
40
  'project_id' INTEGER NOT NULL,
 
41
  'joined_on' DATE DEFAULT NULL,
 
42
  'access_level' INTEGER DEFAULT 1
 
43
);
 
44
 
 
45
CREATE TABLE 'mascots' (
 
46
  'id' INTEGER PRIMARY KEY NOT NULL, 
 
47
  'company_id' INTEGER NOT NULL,
 
48
  'name' TEXT DEFAULT NULL
 
49
);
 
 
b'\\ No newline at end of file'