AiPromptbausteinPrompt DB
This commit is contained in:
@@ -239,6 +239,7 @@
|
||||
<Compile Include="Entities\AiConfig.cs" />
|
||||
<Compile Include="Entities\AiPromptbaustein.cs" />
|
||||
<Compile Include="Entities\AiModel.cs" />
|
||||
<Compile Include="Entities\AiPromptbausteinPrompt.cs" />
|
||||
<Compile Include="Entities\AiPromptbausteinTree.cs" />
|
||||
<Compile Include="Entities\AiSetting.cs" />
|
||||
<Compile Include="Entities\AbsenceTimeHistory.cs" />
|
||||
@@ -866,6 +867,7 @@
|
||||
<EmbeddedResource Include="Mappings\AiPromptbausteinTree.hbm.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Mappings\AiPromptbausteinPrompt.hbm.xml" />
|
||||
<Content Include="Mappings\Timesheet2Mail.hbm.xml" />
|
||||
<EmbeddedResource Include="Mappings\ContactHistory.hbm.xml">
|
||||
<SubType>Designer</SubType>
|
||||
|
||||
38
Data/Entities/AiPromptbausteinPrompt.cs
Normal file
38
Data/Entities/AiPromptbausteinPrompt.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using BS.Shared;
|
||||
using BS.Shared.Core;
|
||||
|
||||
namespace BeWo.Data.Entities
|
||||
{
|
||||
public class AiPromptbausteinPrompt : BeWoEntityBase
|
||||
{
|
||||
public AiPromptbausteinPrompt()
|
||||
{
|
||||
_Tid = TableID.AiPromptbausteinPrompt;
|
||||
}
|
||||
|
||||
public virtual string Title { get; set; }
|
||||
|
||||
public virtual string Description { get; set; }
|
||||
|
||||
public virtual long? ParentFolderOid { get; set; }
|
||||
|
||||
public virtual long CreatorOid { get; set; }
|
||||
|
||||
public virtual bool IsPublic { get; set; }
|
||||
|
||||
public virtual int Position { get; set; }
|
||||
|
||||
public virtual string Prompt { get; set; }
|
||||
|
||||
public virtual bool ShowPrompt { get; set; }
|
||||
|
||||
public virtual bool ShowPromptByTenant { get; set; }
|
||||
|
||||
public virtual bool IsOwnsoftPrompt { get; set; }
|
||||
|
||||
public virtual string OwnsoftRefLink { get; set; }
|
||||
}
|
||||
}
|
||||
28
Data/Mappings/AiPromptbausteinPrompt.hbm.xml
Normal file
28
Data/Mappings/AiPromptbausteinPrompt.hbm.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
|
||||
<class name="BeWo.Data.Entities.AiPromptbausteinPrompt,BeWo.Data" table="AiPromptbausteinPrompt">
|
||||
<id name="Oid" column ="Oid" unsaved-value="null">
|
||||
<generator class="identity" />
|
||||
</id>
|
||||
<version type="Int64" column="Version" name="Version" />
|
||||
<property name="InsTs"/>
|
||||
<property name="InsUser"/>
|
||||
<property column="Tid" type="BS.Shared.TableID, BS.Shared" name="_Tid" access="field" />
|
||||
<property name="UdpUser"/>
|
||||
<property name="IsActive" type="BS.Shared.ActivationTypeId, BS.Shared" />
|
||||
<property name="SystemEntryID" type="BS.Shared.SystemEntryID, BS.Shared" />
|
||||
<property name="Notice"/>
|
||||
<property name="Title"/>
|
||||
<property name="CreatorOid"/>
|
||||
<property name="Description"/>
|
||||
<property name="ParentFolderOid"/>
|
||||
<property name="IsPublic"/>
|
||||
<property name="Position"/>
|
||||
<property name="Prompt"/>
|
||||
<property name="ShowPrompt"/>
|
||||
<property name="ShowPromptByTenant"/>
|
||||
<property name="IsOwnsoftPrompt"/>
|
||||
<property name="OwnsoftRefLink"/>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
25
Model/Changes_2026-01-09 AI Promptbausteinprompt.txt
Normal file
25
Model/Changes_2026-01-09 AI Promptbausteinprompt.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
CREATE TABLE `AiPromptbausteinPrompt` (
|
||||
`Oid` bigint NOT NULL AUTO_INCREMENT,
|
||||
`InsTs` datetime DEFAULT NULL,
|
||||
`InsUser` varchar(256) DEFAULT NULL,
|
||||
`Notice` varchar(1024) DEFAULT NULL,
|
||||
`Tid` int DEFAULT NULL,
|
||||
`UdpUser` varchar(256) DEFAULT NULL,
|
||||
`Version` bigint DEFAULT NULL,
|
||||
`IsActive` tinyint DEFAULT NULL,
|
||||
`SystemEntryID` int DEFAULT NULL,
|
||||
`Title` varchar(255),
|
||||
`Description` varchar(255),
|
||||
`ParentFolderOid` bigint DEFAULT NULL,
|
||||
`CreatorOid` bigint,
|
||||
`IsPublic` tinyint,
|
||||
`Position` int,
|
||||
`Prompt` varchar(255),
|
||||
`ShowPrompt` tinyint,
|
||||
`ShowPromptByTenant` tinyint,
|
||||
`IsOwnsoftPrompt` tinyint,
|
||||
`OwnsoftRefLink` varchar(255),
|
||||
PRIMARY KEY (`Oid`),
|
||||
KEY `FK_AIPROMPTBAUSTEINPROMPT_EMPLOYEE_IDX` (`CreatorOid`),
|
||||
CONSTRAINT `FK_AIPROMPTBAUSTEINPROMPT_EMPLOYEE` FOREIGN KEY (`CreatorOid`) REFERENCES `employee` (`Oid`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=latin1;
|
||||
@@ -0,0 +1,53 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Service.ServiceImplementations;
|
||||
using BS.Shared;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
|
||||
namespace BeWo.Service.DCEntityMapper
|
||||
{
|
||||
public class AiPromptbausteinPromptDC_AiPromptbausteinPrompt : BeWoDataContract_BeWoEntityBase<AiPromptbausteinPrompt, AiPromptbausteinPromptDC>
|
||||
{
|
||||
public override AiPromptbausteinPromptDC MergeWithDC(AiPromptbausteinPrompt pEntity, AiPromptbausteinPromptDC pDataContract)
|
||||
{
|
||||
base.MergeWithDC(pEntity, pDataContract);
|
||||
|
||||
pDataContract.Title = pEntity.Title;
|
||||
pDataContract.Description = pEntity.Description;
|
||||
pDataContract.ParentFolderOid = pEntity.ParentFolderOid;
|
||||
pDataContract.Creator = new EmployeeServiceImp().GetActiveCompactEmployeeWithOid(pEntity.CreatorOid);
|
||||
pDataContract.IsPublic = pEntity.IsPublic;
|
||||
pDataContract.Position = pEntity.Position;
|
||||
pDataContract.Prompt = pEntity.Prompt;
|
||||
pDataContract.ShowPrompt = pEntity.ShowPrompt;
|
||||
pDataContract.ShowPromptByTenant = pEntity.ShowPromptByTenant;
|
||||
pDataContract.IsOwnsoftPrompt = pEntity.IsOwnsoftPrompt;
|
||||
pDataContract.OwnsoftRefLink = pEntity.OwnsoftRefLink;
|
||||
|
||||
return pDataContract;
|
||||
}
|
||||
|
||||
public override AiPromptbausteinPrompt MergeWithEntity(AiPromptbausteinPromptDC pDataContract, AiPromptbausteinPrompt pEntity)
|
||||
{
|
||||
base.MergeWithDC(pEntity, pDataContract);
|
||||
|
||||
pEntity.Title = pDataContract.Title;
|
||||
pEntity.Description = pDataContract.Description;
|
||||
pEntity.ParentFolderOid = pDataContract.ParentFolderOid;
|
||||
pEntity.CreatorOid = pDataContract.Creator.EmployeeOid;
|
||||
pEntity.IsPublic = pDataContract.IsPublic;
|
||||
pEntity.Position = pDataContract.Position;
|
||||
pEntity.Prompt = pDataContract.Prompt;
|
||||
pEntity.ShowPrompt = pDataContract.ShowPrompt;
|
||||
pEntity.ShowPromptByTenant = pDataContract.ShowPromptByTenant;
|
||||
pEntity.IsOwnsoftPrompt = pDataContract.IsOwnsoftPrompt;
|
||||
pEntity.OwnsoftRefLink = pDataContract.OwnsoftRefLink;
|
||||
|
||||
return pEntity;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -242,6 +242,7 @@
|
||||
<Compile Include="DCEntityMapper\AiConversationDC_AiConversation.cs" />
|
||||
<Compile Include="DCEntityMapper\AiConfigDC_AiConfig.cs" />
|
||||
<Compile Include="DCEntityMapper\AiModelDC_AiModel.cs" />
|
||||
<Compile Include="DCEntityMapper\AiPromptbausteinPromptDC_AiPromptbausteinPrompt.cs" />
|
||||
<Compile Include="DCEntityMapper\AiPromptbausteinTreeDC_AiPromptbaustein.cs" />
|
||||
<Compile Include="DCEntityMapper\AiPromptbausteinTreeDC_AiPromptbausteinTree.cs" />
|
||||
<Compile Include="DCEntityMapper\BankAccountDC_BankAccount.cs" />
|
||||
|
||||
@@ -193,7 +193,8 @@ namespace BS.Shared
|
||||
StoredFile = 183,
|
||||
Person2Team = 184,
|
||||
AiPromptbaustein = 185,
|
||||
AiPromptbausteinTree = 186
|
||||
AiPromptbausteinTree = 186,
|
||||
AiPromptbausteinPrompt = 187
|
||||
}
|
||||
|
||||
public enum SystemEntryID
|
||||
|
||||
Reference in New Issue
Block a user