add account in bd
This commit is contained in:
parent
7a429b43c1
commit
7dc78edb02
@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23788.4" systemVersion="24G90" minimumToolsVersion="Automatic" sourceLanguage="Swift" usedWithSwiftData="YES" userDefinedModelVersionIdentifier="">
|
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23788.4" systemVersion="24G90" minimumToolsVersion="Automatic" sourceLanguage="Swift" usedWithSwiftData="YES" userDefinedModelVersionIdentifier="">
|
||||||
<entity name="CDProfile" representedClassName="CDProfile" codeGenerationType="class">
|
<entity name="CDProfile" representedClassName="CDProfile" codeGenerationType="class">
|
||||||
|
<attribute name="accountUserId" optional="NO" attributeType="String" indexed="YES"/>
|
||||||
<attribute name="bio" optional="YES" attributeType="String"/>
|
<attribute name="bio" optional="YES" attributeType="String"/>
|
||||||
<attribute name="createdAt" optional="YES" attributeType="Date"/>
|
<attribute name="createdAt" optional="YES" attributeType="Date"/>
|
||||||
<attribute name="customName" optional="YES" attributeType="String"/>
|
<attribute name="customName" optional="YES" attributeType="String"/>
|
||||||
@ -11,11 +12,16 @@
|
|||||||
<attribute name="userId" optional="NO" attributeType="String" indexed="YES"/>
|
<attribute name="userId" optional="NO" attributeType="String" indexed="YES"/>
|
||||||
<relationship name="chats" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="CDPrivateChat" inverseName="chatData" inverseEntity="CDPrivateChat"/>
|
<relationship name="chats" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="CDPrivateChat" inverseName="chatData" inverseEntity="CDPrivateChat"/>
|
||||||
<relationship name="messages" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="CDMessage" inverseName="sender" inverseEntity="CDMessage"/>
|
<relationship name="messages" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="CDMessage" inverseName="sender" inverseEntity="CDMessage"/>
|
||||||
|
<fetchIndex name="idx_profile_account_user">
|
||||||
|
<fetchIndexElement property="accountUserId" type="Binary"/>
|
||||||
|
<fetchIndexElement property="userId" type="Binary"/>
|
||||||
|
</fetchIndex>
|
||||||
<fetchIndex name="idx_profile_userId">
|
<fetchIndex name="idx_profile_userId">
|
||||||
<fetchIndexElement property="userId" type="Binary"/>
|
<fetchIndexElement property="userId" type="Binary"/>
|
||||||
</fetchIndex>
|
</fetchIndex>
|
||||||
</entity>
|
</entity>
|
||||||
<entity name="CDPrivateChat" representedClassName="CDPrivateChat" codeGenerationType="class">
|
<entity name="CDPrivateChat" representedClassName="CDPrivateChat" codeGenerationType="class">
|
||||||
|
<attribute name="accountUserId" optional="NO" attributeType="String" indexed="YES"/>
|
||||||
<attribute name="chatId" optional="NO" attributeType="String" indexed="YES"/>
|
<attribute name="chatId" optional="NO" attributeType="String" indexed="YES"/>
|
||||||
<attribute name="chatType" optional="YES" attributeType="String"/>
|
<attribute name="chatType" optional="YES" attributeType="String"/>
|
||||||
<attribute name="createdAt" optional="YES" attributeType="Date"/>
|
<attribute name="createdAt" optional="YES" attributeType="Date"/>
|
||||||
@ -23,11 +29,16 @@
|
|||||||
<relationship name="chatData" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDProfile" inverseName="chats" inverseEntity="CDProfile"/>
|
<relationship name="chatData" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDProfile" inverseName="chats" inverseEntity="CDProfile"/>
|
||||||
<relationship name="lastMessage" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDMessage" inverseName="chatAsLastMessage" inverseEntity="CDMessage"/>
|
<relationship name="lastMessage" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDMessage" inverseName="chatAsLastMessage" inverseEntity="CDMessage"/>
|
||||||
<relationship name="messages" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="CDMessage" inverseName="chat" inverseEntity="CDMessage"/>
|
<relationship name="messages" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="CDMessage" inverseName="chat" inverseEntity="CDMessage"/>
|
||||||
|
<fetchIndex name="idx_chat_account_chatId">
|
||||||
|
<fetchIndexElement property="accountUserId" type="Binary"/>
|
||||||
|
<fetchIndexElement property="chatId" type="Binary"/>
|
||||||
|
</fetchIndex>
|
||||||
<fetchIndex name="idx_chat_chatId">
|
<fetchIndex name="idx_chat_chatId">
|
||||||
<fetchIndexElement property="chatId" type="Binary"/>
|
<fetchIndexElement property="chatId" type="Binary"/>
|
||||||
</fetchIndex>
|
</fetchIndex>
|
||||||
</entity>
|
</entity>
|
||||||
<entity name="CDMessage" representedClassName="CDMessage" codeGenerationType="class">
|
<entity name="CDMessage" representedClassName="CDMessage" codeGenerationType="class">
|
||||||
|
<attribute name="accountUserId" optional="NO" attributeType="String" indexed="YES"/>
|
||||||
<attribute name="chatId" optional="NO" attributeType="String" indexed="YES"/>
|
<attribute name="chatId" optional="NO" attributeType="String" indexed="YES"/>
|
||||||
<attribute name="content" optional="YES" attributeType="String"/>
|
<attribute name="content" optional="YES" attributeType="String"/>
|
||||||
<attribute name="createdAt" optional="YES" attributeType="Date"/>
|
<attribute name="createdAt" optional="YES" attributeType="Date"/>
|
||||||
@ -43,17 +54,18 @@
|
|||||||
<relationship name="chat" optional="NO" maxCount="1" deletionRule="Nullify" destinationEntity="CDPrivateChat" inverseName="messages" inverseEntity="CDPrivateChat"/>
|
<relationship name="chat" optional="NO" maxCount="1" deletionRule="Nullify" destinationEntity="CDPrivateChat" inverseName="messages" inverseEntity="CDPrivateChat"/>
|
||||||
<relationship name="chatAsLastMessage" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDPrivateChat" inverseName="lastMessage" inverseEntity="CDPrivateChat"/>
|
<relationship name="chatAsLastMessage" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDPrivateChat" inverseName="lastMessage" inverseEntity="CDPrivateChat"/>
|
||||||
<relationship name="sender" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDProfile" inverseName="messages" inverseEntity="CDProfile"/>
|
<relationship name="sender" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDProfile" inverseName="messages" inverseEntity="CDProfile"/>
|
||||||
<fetchIndex name="idx_message_messageId">
|
<fetchIndex name="idx_message_account_chat_createdAt">
|
||||||
<fetchIndexElement property="messageId" type="Binary"/>
|
<fetchIndexElement property="accountUserId" type="Binary"/>
|
||||||
</fetchIndex>
|
|
||||||
<fetchIndex name="idx_message_chatId_createdAt">
|
|
||||||
<fetchIndexElement property="chatId" type="Binary"/>
|
<fetchIndexElement property="chatId" type="Binary"/>
|
||||||
<fetchIndexElement property="createdAt" type="Binary"/>
|
<fetchIndexElement property="createdAt" type="Binary"/>
|
||||||
</fetchIndex>
|
</fetchIndex>
|
||||||
|
<fetchIndex name="idx_message_messageId">
|
||||||
|
<fetchIndexElement property="messageId" type="Binary"/>
|
||||||
|
</fetchIndex>
|
||||||
</entity>
|
</entity>
|
||||||
<elements>
|
<elements>
|
||||||
<element name="CDProfile" positionX="160" positionY="-128" width="128" height="135"/>
|
<element name="CDProfile" positionX="160" positionY="-128" width="128" height="151"/>
|
||||||
<element name="CDPrivateChat" positionX="16" positionY="80" width="128" height="135"/>
|
<element name="CDPrivateChat" positionX="16" positionY="80" width="128" height="151"/>
|
||||||
<element name="CDMessage" positionX="320" positionY="80" width="128" height="193"/>
|
<element name="CDMessage" positionX="320" positionY="80" width="128" height="201"/>
|
||||||
</elements>
|
</elements>
|
||||||
</model>
|
</model>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user