Revision 52194743 db/fixtures/initial_data.json

b/db/fixtures/initial_data.json
4 4
        "pk": 1,
5 5
        "fields": {
6 6
            "name": "admin user",
7
            "credit": 0,
8
            "created": "2011-02-06",
9
            "monthly_rate": 10,
7
            "created": "2011-02-06 00:00:00",
8
            "updated": "2011-02-06 00:00:00",
9
            "credit": 1,
10
            "monthly_rate": 1,
10 11
            "user" : 1,
11 12
            "violations" : 0
12 13
   	    }
13 14
    },
14 15
    {
15
        "model" : "db.Limit",
16
        "pk" : 1,
17
        "fields" : {
18
            "name" : "QUOTA_CREDIT",
19
            "user" : 1,
20
            "value" : 100
21
        }
22
    }
23
    ,
24
    {
25 16
        "model": "db.Flavor",
26 17
        "pk": 1,
27 18
        "fields": {
......
40 31
        }
41 32
    },
42 33
    {
43
        "model" : "db.FlavorCostHistory",
44
        "pk" : 1,
45
        "fields" : {
46
            "cost_active" : 10,
47
            "cost_inactive" : 5,
48
            "effective_from" : "2011-01-01",
49
            "flavor" : 1
50
        }
51
    },
52
    {
53
        "model" : "db.FlavorCostHistory",
54
        "pk" : 2,
55
        "fields" : {
56
            "cost_active" : 2,
57
            "cost_inactive" : 1,
58
            "effective_from" : "2010-01-01",
59
            "flavor" : 1
60
        }
61
    },
62
    {
63 34
        "model": "db.VirtualMachine",
64 35
        "pk": 1001,
65 36
        "fields": {
66 37
            "name": "snf-1001",
67 38
            "created": "2011-02-06 00:00:00",
39
            "updated": "2011-02-06 00:00:00",
68 40
            "charged": "2011-02-06 00:00:00",
69 41
            "sourceimage": 1,
70 42
            "hostid": "HAL-9000",
......
81 53
        "fields": {
82 54
            "name": "snf-1002",
83 55
            "created": "2011-02-10 00:00:00",
56
            "updated": "2011-02-10 00:00:00",
84 57
            "charged": "2011-02-10 00:00:00",
85 58
            "sourceimage": 1,
86 59
            "hostid": "HAL-9000",
......
96 69
        "pk": 1003,
97 70
        "fields": {
98 71
            "name": "snf-1003",
99
            "created": "2009-02-10 00:00:00",
100
            "charged": "2010-01-01 00:00:00",
72
            "created": "2011-02-10 00:00:00",
73
            "updated": "2011-02-10 00:00:00",
74
            "charged": "2011-02-10 00:00:00",
101 75
            "sourceimage": 1,
102 76
            "hostid": "HAL-9000",
103 77
            "description": "my server",
......
113 87
        "fields": {
114 88
            "name": "snf-1004",
115 89
            "created": "2011-02-10 00:00:00",
90
            "updated": "2011-02-10 00:00:00",
116 91
            "charged": "2011-02-10 00:00:00",
117 92
            "sourceimage": 1,
118 93
            "hostid": "HAL-9000",
......
124 99
        }
125 100
    },
126 101
    {
127
        "model" : "db.AccountingLog",
128
        "pk" : 1,
129
        "fields" : {
130
            "vm" : 1001,
131
            "date" : "2010-01-01",
132
            "state" : "STARTED"
133
        }
134
    },
135
    {
136
        "model" : "db.AccountingLog",
137
        "pk" : 2,
138
        "fields" : {
139
            "vm" : 1001,
140
            "date" : "2011-02-01",
141
            "state" : "STARTED"
142
        }
143
    },
144
    {
145
        "model" : "db.AccountingLog",
146
        "pk" : 3,
147
        "fields" : {
148
            "vm" : 1003,
149
            "date" : "2010-01-01",
150
            "state" : "STARTED"
151
        }
152
    },
153
    {
154
        "model" : "db.AccountingLog",
155
        "pk" : 4,
156
        "fields" : {
157
            "vm" : 1003,
158
            "date" : "2010-03-01",
159
            "state" : "STOPPED"
160
        }
161
    },
162
    {
163
        "model" : "db.AccountingLog",
164
        "pk" : 5,
165
        "fields" : {
166
            "vm" : 1003,
167
            "date" : "2011-01-01",
168
            "state" : "STARTED"
169
        }
170
    },
171
    {
172 102
        "model": "db.Image",
173 103
        "pk": 1,
174 104
        "fields": {
175 105
            "name": "Debian Squeeze",
176
            "updated": "2011-02-06 00:00:00",
177 106
            "created": "2011-02-06 00:00:00",
107
            "updated": "2011-02-06 00:00:00",
178 108
            "state": "ACTIVE",
179 109
            "description": "Full Debian Squeeze Installation"
180 110
        }
......
184 114
        "pk": 2,
185 115
        "fields": {
186 116
            "name": "Slackware 13.1",
187
            "updated": "2011-02-10 00:00:00",
188 117
            "created": "2011-02-10 00:00:00",
118
            "updated": "2011-02-10 00:00:00",
189 119
            "state": "ACTIVE",
190 120
            "description": "Full Slackware 13.1 Installation",
191 121
            "owner" : 1
......
197 127
        "fields": {
198 128
            "name": "My_Music",
199 129
            "created": "2011-02-10 00:00:00",
130
            "updated": "2011-02-10 00:00:00",
200 131
            "size" : "20",
201
            "vm" : 1001,
132
            "vm" : "1001",
202 133
            "owner" : "1"
203 134
        }
204 135
    }, 
......
208 139
        "fields": {
209 140
            "name": "My_Videos",
210 141
            "created": "2011-02-10 00:00:00",
142
            "updated": "2011-02-10 00:00:00",
211 143
            "size" : "300",
212
            "vm" : 1001,
144
            "vm" : "1001",
213 145
            "owner" : "1"
214 146
        }
215 147
    } 
216
]
148
] 

Also available in: Unified diff