Skip to content

Commit 85d553b

Browse files
committed
Remove deprecated class IAppUser
1 parent 0ca2001 commit 85d553b

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

src/ModificationORM.jl

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
data_type = Modification
2+
PostgresORM.get_orm(x::Modification) = return(ModificationORM)
3+
gettablename() = "modification"
4+
get_table_name() = gettablename()
5+
get_schema_name() = "public"
6+
# The format of the mapping is: `property name = "column name"`
7+
8+
const columns_selection_and_mapping = Dict(:id => "id",
9+
:entity_type => "entity_type",
10+
:entity_id => "entity_id",
11+
:attrname => "attrname",
12+
:oldvalue => "oldvalue",
13+
:newvalue => "newvalue",
14+
:appuser_id => "user_id",
15+
:action_id => "action_id",
16+
:action_type => "action_type",
17+
:creation_time => "creation_time")
18+
19+
const id_property = :id
20+
21+
# A dictionnary of mapping between fields symbols and overriding types
22+
# Left hanside is the field symbol ; right hand side is the type override
23+
types_override = Dict()
24+
25+
const track_changes = false
26+
#
27+
# function create_modification(new_object::Modification)
28+
# dbconn = opendbconn()
29+
# result = create_entity!(new_object,
30+
# dbconn)
31+
# closedbconn(dbconn)
32+
# return result
33+
# end
34+
#
35+
# function update_modification(new_object::Modification)
36+
# dbconn = opendbconn()
37+
# result = update_entity!(new_object,
38+
# dbconn)
39+
# closedbconn(dbconn)
40+
# return result
41+
# end
42+
#
43+
# function retrieve_modification(filter_object::Union{Modification,Missing};
44+
# include_users = false)
45+
# dbconn = opendbconn()
46+
#
47+
# result = retrieve_entity(filter_object,
48+
# data_type,
49+
# table_name,
50+
# columns_selection_and_mapping,
51+
# true, # retrieve_complex_props
52+
# dbconn)
53+
#
54+
#
55+
# closedbconn(dbconn)
56+
# return result
57+
# end
58+
#
59+
# function retrieve_modification()
60+
# retrieve_modification(missing)
61+
# end

0 commit comments

Comments
 (0)