Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
webomagic-auth
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Pratik Shrivastava
webomagic-auth
Commits
ccb18766
Commit
ccb18766
authored
Jul 14, 2024
by
deepdey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(role): make project-id optional for db-schema
parent
22d2e8cd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/orm/role_orm.py
app/orm/role_orm.py
+1
-1
database/schema.sql
database/schema.sql
+1
-1
No files found.
app/orm/role_orm.py
View file @
ccb18766
...
@@ -17,7 +17,7 @@ class Role(db.Model, CustomSerializerMixin):
...
@@ -17,7 +17,7 @@ class Role(db.Model, CustomSerializerMixin):
role_type_id
=
db
.
Column
(
db
.
BigInteger
,
db
.
ForeignKey
(
'role_type.id'
))
role_type_id
=
db
.
Column
(
db
.
BigInteger
,
db
.
ForeignKey
(
'role_type.id'
))
role_name
=
db
.
Column
(
db
.
String
(
80
),
nullable
=
False
)
role_name
=
db
.
Column
(
db
.
String
(
80
),
nullable
=
False
)
project_id
=
db
.
Column
(
db
.
BigInteger
,
nullable
=
Fals
e
)
project_id
=
db
.
Column
(
db
.
BigInteger
,
nullable
=
Tru
e
)
created_at
=
db
.
Column
(
db
.
DATETIME
,
default
=
datetime
.
now
)
created_at
=
db
.
Column
(
db
.
DATETIME
,
default
=
datetime
.
now
)
updated_at
=
db
.
Column
(
db
.
DATETIME
,
onupdate
=
datetime
.
now
)
updated_at
=
db
.
Column
(
db
.
DATETIME
,
onupdate
=
datetime
.
now
)
...
...
database/schema.sql
View file @
ccb18766
...
@@ -22,7 +22,7 @@ CREATE TABLE
...
@@ -22,7 +22,7 @@ CREATE TABLE
id
BIGSERIAL
PRIMARY
KEY
NOT
NULL
,
id
BIGSERIAL
PRIMARY
KEY
NOT
NULL
,
role_type_id
BIGINT
NOT
NULL
,
role_type_id
BIGINT
NOT
NULL
,
role_name
VARCHAR
(
80
)
NOT
NULL
,
role_name
VARCHAR
(
80
)
NOT
NULL
,
project_id
BIGINT
NOT
NULL
,
project_id
BIGINT
,
is_deleted
BOOLEAN
DEFAULT
false
,
is_deleted
BOOLEAN
DEFAULT
false
,
created_at
TIMESTAMP
NOT
NULL
DEFAULT
now
(),
created_at
TIMESTAMP
NOT
NULL
DEFAULT
now
(),
updated_at
TIMESTAMP
,
updated_at
TIMESTAMP
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment