-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.sql
92 lines (85 loc) · 1.63 KB
/
init.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
-- NOTE: This file creates an admin user with an empty password!
BEGIN;
INSERT INTO "unit" (
"active",
"name",
"description"
) VALUES (
true,
'Default unit',
'Default unit created by init script.'
);
INSERT INTO "member" (
"login",
"password",
"active",
"admin",
"name",
"activated",
"last_activity"
) VALUES (
'admin',
'$1$.EMPTY.$LDufa24OE2HZFXAXh71Eb1',
TRUE,
TRUE,
'Administrator',
NOW(),
NOW()
);
INSERT INTO "policy" (
"index",
"active",
"name",
"description",
"admission_time",
"discussion_time",
"verification_time",
"voting_time",
"issue_quorum_num",
"issue_quorum_den",
"initiative_quorum_num",
"initiative_quorum_den"
) VALUES (
1,
TRUE,
'Extensive proceeding',
DEFAULT,
'1 month',
'5 months',
'1 month',
'3 weeks',
10, 100,
10, 100
), (
2,
TRUE,
'Standard proceeding',
DEFAULT,
'1 month',
'1 month',
'1 week',
'1 week',
10, 100,
10, 100
), (
3,
TRUE,
'Fast proceeding',
DEFAULT,
'48 hours',
'3 hours',
'1 hour',
'20 hours',
1, 100,
1, 100 );
INSERT INTO "area" (
"unit_id",
"active",
"name",
"description"
) VALUES (
1,
TRUE,
'Generic area',
DEFAULT );
COMMIT;