This repository was archived by the owner on Apr 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Sources/AdminPanel/Support Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1
1
import Console
2
2
import TurnstileCrypto
3
3
import Vapor
4
+ import Foundation
5
+ import Sugar
6
+
4
7
5
8
public final class Seeder : Command {
6
9
@@ -31,16 +34,22 @@ public final class Seeder: Command {
31
34
" title " : " Super admin " ,
32
35
" slug " : " super-admin " ,
33
36
" is_default " : false ,
37
+ " updated_at " : Date ( ) . toDateTimeString ( ) ,
38
+ " created_at " : Date ( ) . toDateTimeString ( )
34
39
] ) ,
35
40
try BackendUserRole ( node: [
36
41
" title " : " Admin " ,
37
42
" slug " : " admin " ,
38
43
" is_default " : false ,
44
+ " updated_at " : Date ( ) . toDateTimeString ( ) ,
45
+ " created_at " : Date ( ) . toDateTimeString ( )
39
46
] ) ,
40
47
try BackendUserRole ( node: [
41
48
" title " : " User " ,
42
49
" slug " : " user " ,
43
50
" is_default " : true ,
51
+ " updated_at " : Date ( ) . toDateTimeString ( ) ,
52
+ " created_at " : Date ( ) . toDateTimeString ( )
44
53
] ) ,
45
54
]
46
55
@@ -63,6 +72,8 @@ public final class Seeder: Command {
63
72
64
73
" password " : BCrypt . hash ( password: " admin " ) ,
65
74
" role " : " super-admin " ,
75
+ " updated_at " : Date ( ) . toDateTimeString ( ) ,
76
+ " created_at " : Date ( ) . toDateTimeString ( )
66
77
] ) ,
67
78
]
68
79
You can’t perform that action at this time.
0 commit comments