48 lines
3.2 KiB
XML
48 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ConnectionSettings xmlns="http://www.munique.net/ConnectionSettings">
|
|
<Connections>
|
|
<Connection>
|
|
<!-- The user role of this context should have rights to create/update a database and user roles. -->
|
|
<ContextTypeName>MUnique.OpenMU.Persistence.EntityFramework.EntityDataContext</ContextTypeName>
|
|
<ConnectionString>Server=localhost;Port=5432;User Id=postgres;Password=admin;Database=openmu;Command Timeout=120;</ConnectionString>
|
|
<DatabaseEngine>Npgsql</DatabaseEngine>
|
|
</Connection>
|
|
<Connection>
|
|
<!-- The user role of this context should have rights to select/insert/update/delete data in all schemas. -->
|
|
<ContextTypeName>MUnique.OpenMU.Persistence.EntityFramework.TypedContext</ContextTypeName>
|
|
<ConnectionString>Server=localhost;Port=5432;User Id=postgres;Password=admin;Database=openmu;Command Timeout=120;</ConnectionString>
|
|
<DatabaseEngine>Npgsql</DatabaseEngine>
|
|
</Connection>
|
|
<Connection>
|
|
<!-- The user role of this context should have rights to select the config schema -->
|
|
<ContextTypeName>MUnique.OpenMU.Persistence.EntityFramework.ConfigurationContext</ContextTypeName>
|
|
<ConnectionString>Server=localhost;Port=5432;User Id=config;Password=config;Database=openmu;Command Timeout=120;</ConnectionString>
|
|
<DatabaseEngine>Npgsql</DatabaseEngine>
|
|
</Connection>
|
|
<Connection>
|
|
<!-- The account context should connect with a user with less privileges. It should not be allowed to edit configuration tables, for example. -->
|
|
<ContextTypeName>MUnique.OpenMU.Persistence.EntityFramework.AccountContext</ContextTypeName>
|
|
<ConnectionString>Server=localhost;Port=5432;User Id=account;Password=account;Database=openmu;Command Timeout=120;</ConnectionString>
|
|
<DatabaseEngine>Npgsql</DatabaseEngine>
|
|
</Connection>
|
|
<Connection>
|
|
<!-- The trade context should connect with a user with less privileges. It should just be allowed to edit the item table. -->
|
|
<ContextTypeName>MUnique.OpenMU.Persistence.EntityFramework.TradeContext</ContextTypeName>
|
|
<ConnectionString>Server=localhost;Port=5432;User Id=account;Password=account;Database=openmu;Command Timeout=120;</ConnectionString>
|
|
<DatabaseEngine>Npgsql</DatabaseEngine>
|
|
</Connection>
|
|
<Connection>
|
|
<!-- The friend context should connect with a user with less privileges. It should not be allowed to edit configuration tables, for example. -->
|
|
<ContextTypeName>MUnique.OpenMU.Persistence.EntityFramework.FriendContext</ContextTypeName>
|
|
<ConnectionString>Server=localhost;Port=5432;User Id=friend;Password=friend;Database=openmu;Command Timeout=120;</ConnectionString>
|
|
<DatabaseEngine>Npgsql</DatabaseEngine>
|
|
</Connection>
|
|
<Connection>
|
|
<!-- The guild context should connect with a user with less privileges. It should not be allowed to edit Guild and GuildMember and to read the Character table. -->
|
|
<ContextTypeName>MUnique.OpenMU.Persistence.EntityFramework.GuildContext</ContextTypeName>
|
|
<ConnectionString>Server=localhost;Port=5432;User Id=guild;Password=guild;Database=openmu;Command Timeout=120;</ConnectionString>
|
|
<DatabaseEngine>Npgsql</DatabaseEngine>
|
|
</Connection>
|
|
</Connections>
|
|
</ConnectionSettings>
|