59 lines
5.1 KiB
XML
59 lines
5.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="22522" systemVersion="23F79" minimumToolsVersion="Automatic" sourceLanguage="Swift" usedWithCloudKit="YES" userDefinedModelVersionIdentifier="">
|
|
<entity name="AppSettings" representedClassName="AppSettings" syncable="YES">
|
|
<attribute name="createdAt" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="currency" attributeType="String" defaultValueString="EUR"/>
|
|
<attribute name="defaultNotificationTime" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="enableAnalytics" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
|
|
<attribute name="id" attributeType="UUID" usesScalarValueType="NO"/>
|
|
<attribute name="lastSyncDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="onboardingCompleted" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
|
</entity>
|
|
<entity name="Category" representedClassName="Category" syncable="YES">
|
|
<attribute name="colorHex" attributeType="String" defaultValueString="#3B82F6"/>
|
|
<attribute name="createdAt" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="icon" attributeType="String" defaultValueString="chart.pie.fill"/>
|
|
<attribute name="id" attributeType="UUID" usesScalarValueType="NO"/>
|
|
<attribute name="name" attributeType="String" defaultValueString=""/>
|
|
<attribute name="sortOrder" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
|
|
<relationship name="sources" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="InvestmentSource" inverseName="category" inverseEntity="InvestmentSource"/>
|
|
</entity>
|
|
<entity name="InvestmentSource" representedClassName="InvestmentSource" syncable="YES">
|
|
<attribute name="createdAt" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="customFrequencyMonths" attributeType="Integer 16" defaultValueString="1" usesScalarValueType="YES"/>
|
|
<attribute name="id" attributeType="UUID" usesScalarValueType="NO"/>
|
|
<attribute name="isActive" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
|
|
<attribute name="name" attributeType="String" defaultValueString=""/>
|
|
<attribute name="notificationFrequency" attributeType="String" defaultValueString="monthly"/>
|
|
<relationship name="category" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Category" inverseName="sources" inverseEntity="Category"/>
|
|
<relationship name="snapshots" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="Snapshot" inverseName="source" inverseEntity="Snapshot"/>
|
|
</entity>
|
|
<entity name="PredictionCache" representedClassName="PredictionCache" syncable="YES">
|
|
<attribute name="algorithm" attributeType="String" defaultValueString="linear"/>
|
|
<attribute name="calculatedAt" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="id" attributeType="UUID" usesScalarValueType="NO"/>
|
|
<attribute name="predictionData" optional="YES" attributeType="Binary"/>
|
|
<attribute name="sourceId" optional="YES" attributeType="UUID" usesScalarValueType="NO"/>
|
|
<attribute name="validUntil" attributeType="Date" usesScalarValueType="NO"/>
|
|
</entity>
|
|
<entity name="PremiumStatus" representedClassName="PremiumStatus" syncable="YES">
|
|
<attribute name="id" attributeType="UUID" usesScalarValueType="NO"/>
|
|
<attribute name="isFamilyShared" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
|
<attribute name="isPremium" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
|
|
<attribute name="lastVerificationDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="originalPurchaseDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="productIdentifier" optional="YES" attributeType="String"/>
|
|
<attribute name="purchaseDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="transactionId" optional="YES" attributeType="String"/>
|
|
</entity>
|
|
<entity name="Snapshot" representedClassName="Snapshot" syncable="YES">
|
|
<attribute name="contribution" optional="YES" attributeType="Decimal"/>
|
|
<attribute name="createdAt" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="date" attributeType="Date" usesScalarValueType="NO"/>
|
|
<attribute name="id" attributeType="UUID" usesScalarValueType="NO"/>
|
|
<attribute name="notes" optional="YES" attributeType="String"/>
|
|
<attribute name="value" optional="YES" attributeType="Decimal"/>
|
|
<relationship name="source" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="InvestmentSource" inverseName="snapshots" inverseEntity="InvestmentSource"/>
|
|
</entity>
|
|
</model>
|