Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
planner-team-one
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Евгений Положенцев
planner-team-one
Commits
6802b4ab
Commit
6802b4ab
authored
Nov 26, 2022
by
Евгений Положенцев
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#68
fix model DateTimeTask
parent
db6eba31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app-data-source.ts
planner-api/src/app-data-source.ts
+2
-1
DateTimeTask.ts
planner-api/src/models/DateTimeTask.ts
+2
-3
No files found.
planner-api/src/app-data-source.ts
View file @
6802b4ab
...
...
@@ -3,6 +3,7 @@ import {User} from './models/User';
import
{
Task
}
from
'./models/Task'
;
import
{
Project
}
from
"./models/Project"
;
import
{
Member
}
from
"./models/Member"
;
import
{
DateTimeTask
}
from
"./models/DateTimeTask"
;
export
const
myDataSource
=
new
DataSource
({
type
:
"postgres"
,
...
...
@@ -11,7 +12,7 @@ export const myDataSource = new DataSource({
username
:
"pluser"
,
password
:
"pluser"
,
database
:
"planner"
,
entities
:
[
User
,
Task
,
Project
,
Member
],
entities
:
[
User
,
Task
,
Project
,
Member
,
DateTimeTask
],
logging
:
true
,
synchronize
:
true
,
// in build switch to false
migrationsRun
:
false
...
...
planner-api/src/models/DateTimeTask.ts
View file @
6802b4ab
import
{
Column
,
Entity
,
PrimaryGeneratedColumn
,
CreateDateColumn
,
...
...
@@ -29,10 +28,10 @@ import {
@
CreateDateColumn
({
name
:
'createdAt'
,
type
:
Date
,
default
:
new
Date
()
})
createdAt
!
:
Date
;
@
CreateDateColumn
({
name
:
'
createdA
t'
,
type
:
Date
,
nullable
:
false
})
@
CreateDateColumn
({
name
:
'
dateTimeStar
t'
,
type
:
Date
,
nullable
:
false
})
dateTimeStart
!
:
Date
;
@
CreateDateColumn
({
name
:
'
createdAt
'
,
type
:
Date
,
nullable
:
false
})
@
CreateDateColumn
({
name
:
'
dateTimeDue
'
,
type
:
Date
,
nullable
:
false
})
dateTimeDue
!
:
Date
;
...
...
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