Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Merge requests
!2516
Budget models
代码
评审变更
检出分支
下载
补丁
文本差异
Merged
Budget models
budget-models
into
release-1.7.3
Overview
4
Commits
4
Pipelines
0
Changes
20
All threads resolved!
Show all comments
Merged
Erwan Rouchet
requested to merge
budget-models
into
release-1.7.3
1 month ago
Overview
4
Commits
4
Pipelines
0
Changes
20
All threads resolved!
Show all comments
Expand
Closes
#1893 (closed)
0
0
Merge request reports
Compare
release-1.7.3
version 2
5af97088
1 month ago
version 1
bf05796f
1 month ago
release-1.7.3 (base)
and
latest version
latest version
bf05796f
4 commits,
1 month ago
version 2
5af97088
2 commits,
1 month ago
version 1
bf05796f
4 commits,
1 month ago
20 files
+
156
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
20
Search (e.g. *.vue) (Ctrl+P)
arkindex/budget/migrations/0001_initial.py
0 → 100644
+
44
−
0
Options
# Generated by Django 5.0.8 on 2025-02-10 09:37
import
uuid
import
django.core.validators
import
django.db.models.deletion
from
django.conf
import
settings
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
(
"
process
"
,
"
0048_worker_cost_fields
"
),
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
"
Budget
"
,
fields
=
[
(
"
id
"
,
models
.
UUIDField
(
default
=
uuid
.
uuid4
,
editable
=
False
,
primary_key
=
True
,
serialize
=
False
)),
(
"
name
"
,
models
.
CharField
(
max_length
=
100
,
validators
=
[
django
.
core
.
validators
.
MinLengthValidator
(
1
)])),
(
"
total
"
,
models
.
DecimalField
(
decimal_places
=
3
,
default
=
0
,
max_digits
=
12
)),
],
),
migrations
.
CreateModel
(
name
=
"
BudgetEntry
"
,
fields
=
[
(
"
id
"
,
models
.
UUIDField
(
default
=
uuid
.
uuid4
,
editable
=
False
,
primary_key
=
True
,
serialize
=
False
)),
(
"
created
"
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
"
description
"
,
models
.
CharField
(
max_length
=
255
,
validators
=
[
django
.
core
.
validators
.
MinLengthValidator
(
1
)])),
(
"
value
"
,
models
.
DecimalField
(
decimal_places
=
3
,
max_digits
=
12
)),
(
"
budget
"
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
"
entries
"
,
to
=
"
budget.budget
"
)),
(
"
process
"
,
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
related_name
=
"
budget_entries
"
,
to
=
"
process.process
"
)),
(
"
user
"
,
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
related_name
=
"
budget_entries
"
,
to
=
settings
.
AUTH_USER_MODEL
)),
],
options
=
{
"
verbose_name_plural
"
:
"
budget entries
"
,
},
),
]
Loading