Skip to content

Commit 5b40c14

Browse files
committed
added Services to dataset
1 parent 25153f1 commit 5b40c14

File tree

3 files changed

+99
-1
lines changed

3 files changed

+99
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 5.2.1 on 2025-06-04 10:53
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('api_v2', '0047_service'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='service',
15+
name='name',
16+
field=models.CharField(default='default', help_text='Name of the item.', max_length=100),
17+
preserve_default=False,
18+
),
19+
]

api_v2/models/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from .document import FromDocument
44

55

6-
class Service(HasDescription, FromDocument, HasPrice):
6+
class Service(HasName, HasDescription, FromDocument, HasPrice):
77
"""
88
99
This is the Model for a purchasable Service
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
[
2+
{
3+
"model": "api_v2.service",
4+
"pk": "srd-2024_lifestyle-wretched",
5+
"fields": {
6+
"name": "Lifestyle - Wretched",
7+
"detail": "1 day",
8+
"desc": "You survive via chance and charity. You're often exposed to natural dangers as a result of sleeping outside.",
9+
"document": "srd-2024",
10+
"cost": "0.00"
11+
}
12+
},
13+
{
14+
"model": "api_v2.service",
15+
"pk": "srd-2024_lifestyle-squalid",
16+
"fields": {
17+
"name": "Lifestyle - Squalid",
18+
"detail": "1 day",
19+
"desc": "You spend the bare minimum for your necessities. You might be exposed to unhealthy conditions and opportunistic criminals.",
20+
"document": "srd-2024",
21+
"cost": "0.10"
22+
}
23+
},
24+
{
25+
"model": "api_v2.service",
26+
"pk": "srd-2024_lifestyle-poor",
27+
"fields": {
28+
"name": "Lifestyle - Poor",
29+
"detail": "1 day",
30+
"desc": "You spend frugally for your necessities.",
31+
"document": "srd-2024",
32+
"cost": "0.20"
33+
}
34+
},
35+
{
36+
"model": "api_v2.service",
37+
"pk": "srd-2024_lifestyle-modest",
38+
"fields": {
39+
"name": "Lifestyle - Modest",
40+
"detail": "1 day",
41+
"desc": "You support yourself at an average level.",
42+
"document": "srd-2024",
43+
"cost": "1.00"
44+
}
45+
},
46+
{
47+
"model": "api_v2.service",
48+
"pk": "srd-2024_lifestyle-comfortable",
49+
"fields": {
50+
"name": "Lifestyle - Comfortable",
51+
"detail": "1 day",
52+
"desc": "You spend modestly for your necessities and enjoy a few luxuries.",
53+
"document": "srd-2024",
54+
"cost": "2.00"
55+
}
56+
},
57+
{
58+
"model": "api_v2.service",
59+
"pk": "srd-2024_lifestyle-wealthy",
60+
"fields": {
61+
"name": "Lifestyle - Wealthy",
62+
"detail": "1 day",
63+
"desc": "You're accustomed to the finer things in life and might have servants.",
64+
"document": "srd-2024",
65+
"cost": "4.00"
66+
}
67+
},
68+
{
69+
"model": "api_v2.service",
70+
"pk": "srd-2024_lifestyle-aristocratic",
71+
"fields": {
72+
"name": "Lifestyle - Aristocratic",
73+
"detail": "1 day",
74+
"desc": "You pay for the best and might have a staff that supports your lifestyle. Others notice your wealth and might encourage you to share it, either legally or otherwise.",
75+
"document": "srd-2024",
76+
"cost": "10.00"
77+
}
78+
}
79+
]

0 commit comments

Comments
 (0)