Commit d06cab16 authored by Javinator9889's avatar Javinator9889 🎼

Updated CQL model

parent e6fede70
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PackageRequirementsSettings">
<option name="requirementsPath" value="E:\Nextcloud\Programming\YouTubeMDBot\App\requirements.txt" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6.1 (C:\Users\Javier Alonso Silva\AppData\Local\Programs\Python\Python36\python.exe)" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/App.iml" filepath="$PROJECT_DIR$/.idea/App.iml" />
</modules>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
......@@ -31,6 +31,9 @@
<clipPath clipPathUnits="userSpaceOnUse" id="clipPath3_0_">
<rect x="0" y="0" width="170" height="110" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="clipPath6_0_">
<rect x="0" y="0" width="170" height="110" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="clipPath5_0_">
<rect x="0" y="0" width="170" height="110" />
</clipPath>
......@@ -49,6 +52,10 @@
<path stroke="rgb(0,0,0)" fill="none" stroke-opacity="1.0" stroke-width="1" d="M578 345 L526 345" />
</g>
<g stroke-linecap="butt" >
<path stroke="rgb(0,0,0)" fill="none" stroke-opacity="1.0" stroke-dasharray="8,8" stroke-width="1" d="M302 85 L255 85" />
<path stroke="rgb(0,0,0)" fill="none" stroke-opacity="1.0" stroke-width="1" d="M209 85 L255 85" />
</g>
<g stroke-linecap="butt" >
<path stroke="rgb(0,0,0)" fill="none" stroke-opacity="1.0" stroke-dasharray="8,8" stroke-width="1" d="M472 85 L532 85" />
<path stroke="rgb(0,0,0)" fill="none" stroke-opacity="1.0" stroke-width="1" d="M592 85 L532 85" />
</g>
......@@ -145,7 +152,7 @@ o
times_requested
</text>
</g>
<g fill="rgb(164,225,255)" stroke="rgb(0,0,255)" fill-opacity="1.0" stroke-opacity="1.0" clip-path="url(#clipPath5_0_)" transform="translate(302,31)" >
<g fill="rgb(164,225,255)" stroke="rgb(0,0,255)" fill-opacity="1.0" stroke-opacity="1.0" clip-path="url(#clipPath6_0_)" transform="translate(302,31)" >
<rect x="0" y="0" width="169" height="109" rx="20" ry="20" />
<text id="User" x="73" y="14" fill="rgb(0,0,255)" font-weight="bold" fill-opacity="1.0" font-size="10" stroke="none">
User
......@@ -217,5 +224,29 @@ o
is_metadata_by_user
</text>
</g>
<g fill="rgb(164,225,255)" stroke="rgb(0,0,255)" fill-opacity="1.0" stroke-opacity="1.0" clip-path="url(#clipPath5_0_)" transform="translate(39,29)" >
<rect x="0" y="0" width="169" height="109" rx="20" ry="20" />
<text id="Statistics" x="62" y="14" fill="rgb(0,0,255)" font-weight="bold" fill-opacity="1.0" font-size="10" stroke="none">
Statistics
</text>
<text x="16" y="32" fill="rgb(255,0,0)" fill-opacity="1.0" font-size="10" stroke="none">
o
</text>
<text x="26" y="32" fill="rgb(0,0,0)" fill-opacity="1.0" font-size="10" stroke="none">
lang
</text>
<text x="16" y="46" fill="rgb(255,0,0)" fill-opacity="1.0" font-size="10" stroke="none">
o
</text>
<text x="26" y="46" fill="rgb(0,0,0)" fill-opacity="1.0" font-size="10" stroke="none">
downloads
</text>
<text x="16" y="60" fill="rgb(255,0,0)" fill-opacity="1.0" font-size="10" stroke="none">
o
</text>
<text x="26" y="60" fill="rgb(0,0,0)" fill-opacity="1.0" font-size="10" stroke="none">
last_time_active
</text>
</g>
</svg>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" ?>
<design id="3C168D0F-3177-9281-C715-B5AB03BB32C4">
<models>
<model id="351C3A3B-985F-1B54-60FE-A46161E8F350" open="true" open_d_pm="false"/>
<model id="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" open="true" open_d_pm="false"/>
</models>
</design>
\ No newline at end of file
......@@ -4,7 +4,9 @@
<object objectType="Entity" objectID="FB782D70-50E0-0A98-4654-5E94050F8458" name="Music" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.logical.Entity" propertyParentId="6F505A55-3C56-E65E-61AB-E3E34318876E" propertySourceId="" propertyTargetId=""/>
<object objectType="Entity" objectID="52FEBBBF-C76E-AEF4-45C5-3341E59BD946" name="Playlist" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.logical.Entity" propertyParentId="6F505A55-3C56-E65E-61AB-E3E34318876E" propertySourceId="" propertyTargetId=""/>
<object objectType="Entity" objectID="312E0255-FAA7-1630-54E5-A4FCB50F6276" name="Preferences" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.logical.Entity" propertyParentId="6F505A55-3C56-E65E-61AB-E3E34318876E" propertySourceId="" propertyTargetId=""/>
<object objectType="Entity" objectID="B1A287E6-50CA-DB8B-0AAD-60C303A2A402" name="Statistics" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.logical.Entity" propertyParentId="6F505A55-3C56-E65E-61AB-E3E34318876E" propertySourceId="" propertyTargetId=""/>
<object objectType="Entity" objectID="96125017-F1D2-153D-CBAC-D12E0939CF4E" name="User" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.logical.Entity" propertyParentId="6F505A55-3C56-E65E-61AB-E3E34318876E" propertySourceId="" propertyTargetId=""/>
<object objectType="Relation" objectID="B934A368-41CA-2247-7505-4DDD707ADAB7" name="creates" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.logical.Relation" propertyParentId="6F505A55-3C56-E65E-61AB-E3E34318876E" propertySourceId="96125017-F1D2-153D-CBAC-D12E0939CF4E" propertyTargetId="B1A287E6-50CA-DB8B-0AAD-60C303A2A402"/>
<object objectType="Relation" objectID="46906DFA-66DD-2DD5-790C-7A87FFE7755C" name="has" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.logical.Relation" propertyParentId="6F505A55-3C56-E65E-61AB-E3E34318876E" propertySourceId="FB782D70-50E0-0A98-4654-5E94050F8458" propertyTargetId="1558C95F-4CEC-1E30-AA15-58B7C6ACD81B"/>
<object objectType="Relation" objectID="DDBAFE8B-B820-1773-EE96-8B363262CAA9" name="History" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.logical.Relation" propertyParentId="6F505A55-3C56-E65E-61AB-E3E34318876E" propertySourceId="96125017-F1D2-153D-CBAC-D12E0939CF4E" propertyTargetId="FB782D70-50E0-0A98-4654-5E94050F8458"/>
<object objectType="Relation" objectID="1D1B52B1-8974-5046-5AB7-7AB4BF89C08A" name="Playlist_has_Music" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.logical.Relation" propertyParentId="6F505A55-3C56-E65E-61AB-E3E34318876E" propertySourceId="52FEBBBF-C76E-AEF4-45C5-3341E59BD946" propertyTargetId="FB782D70-50E0-0A98-4654-5E94050F8458"/>
......
<?xml version = '1.0' encoding = 'UTF-8'?>
<Entity class="oracle.dbtools.crest.model.design.logical.Entity" directorySegmentName="seg_0" id="B1A287E6-50CA-DB8B-0AAD-60C303A2A402" name="Statistics">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:05:14 UTC</createdTime>
<ownerDesignName>database_design</ownerDesignName>
<engineerTo>
<item key="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" value="true"/>
</engineerTo>
<adequatelyNormalized>NO</adequatelyNormalized>
<expectedVolumes>0</expectedVolumes>
<fwdEngineeringStrategyName>Single Table</fwdEngineeringStrategyName>
<growthPercent>0</growthPercent>
<growthType>Year</growthType>
<maxVolumes>9999999</maxVolumes>
<minVolumes>0</minVolumes>
<normalForm>Third</normalForm>
<attributes itemClass="oracle.dbtools.crest.model.design.logical.Attribute">
<Attribute name="lang" id="89D674D7-31F9-D93D-73E0-665EFF65C20A">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:05:22 UTC</createdTime>
<ownerDesignName>database_design</ownerDesignName>
<engineerTo>
<item key="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" value="true"/>
</engineerTo>
<nullsAllowed>true</nullsAllowed>
<useDomainConstraints>false</useDomainConstraints>
<use>1</use>
<logicalDatatype>LOGDT024</logicalDatatype>
<dataTypeSize>5 CHAR</dataTypeSize>
<ownDataTypeParameters>5 CHAR,,</ownDataTypeParameters>
</Attribute>
<Attribute name="downloads" id="19C812C7-2829-FCC6-7AB0-8EF0080E3DF5">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:05:36 UTC</createdTime>
<ownerDesignName>database_design</ownerDesignName>
<engineerTo>
<item key="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" value="true"/>
</engineerTo>
<nullsAllowed>true</nullsAllowed>
<useDomainConstraints>false</useDomainConstraints>
<use>1</use>
<logicalDatatype>LOGDT011</logicalDatatype>
<ownDataTypeParameters>,,</ownDataTypeParameters>
</Attribute>
<Attribute name="last_time_active" id="E22158FC-409E-A487-CC46-78530525C255">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:05:55 UTC</createdTime>
<ownerDesignName>database_design</ownerDesignName>
<engineerTo>
<item key="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" value="true"/>
</engineerTo>
<nullsAllowed>true</nullsAllowed>
<useDomainConstraints>false</useDomainConstraints>
<use>1</use>
<logicalDatatype>LOGDT007</logicalDatatype>
<ownDataTypeParameters>,,</ownDataTypeParameters>
</Attribute>
<Attribute name="user_id" id="0C4521CC-B720-4EEA-EF48-2AB477F192BB">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:07:24 UTC</createdTime>
<generatorID>B934A368-41CA-2247-7505-4DDD707ADAB7</generatorID>
<ownerDesignName>database_design</ownerDesignName>
<engineerTo>
<item key="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" value="true"/>
</engineerTo>
<referedAttribute>8775EFB1-2319-5282-E470-92105C133D68</referedAttribute>
<useDomainConstraints>false</useDomainConstraints>
<use>1</use>
<logicalDatatype>LOGDT011</logicalDatatype>
<ownDataTypeParameters>,,</ownDataTypeParameters>
</Attribute>
</attributes>
</Entity>
\ No newline at end of file
<?xml version = '1.0' encoding = 'UTF-8'?>
<Relation class="oracle.dbtools.crest.model.design.logical.Relation" name="creates" directorySegmentName="seg_0" id="B934A368-41CA-2247-7505-4DDD707ADAB7">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:07:24 UTC</createdTime>
<ownerDesignName>database_design</ownerDesignName>
<engineerTo>
<item key="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" value="true"/>
</engineerTo>
<sourcePk>3E09607E-650C-5E05-C7AC-0E839F482CA2</sourcePk>
<identifying>false</identifying>
<optionalSource>true</optionalSource>
<optionalTarget>false</optionalTarget>
<sourceCardinality>1</sourceCardinality>
<sourceEntity>96125017-F1D2-153D-CBAC-D12E0939CF4E</sourceEntity>
<targetCardinalityString>1</targetCardinalityString>
<targetEntity>B1A287E6-50CA-DB8B-0AAD-60C303A2A402</targetEntity>
<transferable>true</transferable>
<deleteRule>CASCADE</deleteRule>
</Relation>
\ No newline at end of file
......@@ -30,6 +30,10 @@
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<bounds x="302" y="31" width="170" height="110"/>
</OView>
<OView class="oracle.dbtools.crest.swingui.logical.TVEntity" oid="B1A287E6-50CA-DB8B-0AAD-60C303A2A402" otype="Entity" vid="EE7AA86C-0E64-4679-3D34-63E13C0F2168">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<bounds x="39" y="29" width="170" height="110"/>
</OView>
<OView class="oracle.dbtools.crest.swingui.logical.TVEntity" oid="FB782D70-50E0-0A98-4654-5E94050F8458" otype="Entity" vid="6228CAAB-3F20-C75A-DB18-93B20B112ABE">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<bounds x="305" y="287" width="170" height="110"/>
......@@ -54,6 +58,15 @@
<point x="578" y="345"/>
</points>
</Connector>
<Connector class="oracle.dbtools.crest.swingui.logical.TVRelation" oid="B934A368-41CA-2247-7505-4DDD707ADAB7" otype="Relation" vid_source="1835A4EB-FF4E-AE49-E18C-B55630335F66" vid_target="EE7AA86C-0E64-4679-3D34-63E13C0F2168">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<backgroundColor>-16777216</backgroundColor>
<lineWidth>1</lineWidth>
<points>
<point x="302" y="85"/>
<point x="209" y="85"/>
</points>
</Connector>
<Connector class="oracle.dbtools.crest.swingui.logical.TVRelation" oid="C49FD692-24A0-3030-2280-A4D5B8CDFC01" otype="Relation" vid_source="1835A4EB-FF4E-AE49-E18C-B55630335F66" vid_target="753E8511-1D46-AB9A-60AD-1FBB71C19E3D">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<backgroundColor>-16777216</backgroundColor>
......
......@@ -57,6 +57,18 @@
</Mg>
</containedMappings>
</CM>
<CM id="B1A287E6-60C303A2A4021243C675-8F6C72D2CB26" lID="B1A287E6-50CA-DB8B-0AAD-60C303A2A402" lT="0" rID="1243C675-86A2-977F-2EFA-8F6C72D2CB26" rT="4">
<containedMappings itemClass="oracle.dbtools.crest.model.xtdmapping.RelMapping">
<Mg id="0C4521CC-2AB477F192BB44652E9D-F466221E35AD" lID="0C4521CC-B720-4EEA-EF48-2AB477F192BB" rID="44652E9D-2CE9-68CD-D636-F466221E35AD">
</Mg>
<Mg id="19C812C7-8EF0080E3DF576E36E0B-E931F34CB950" lID="19C812C7-2829-FCC6-7AB0-8EF0080E3DF5" rID="76E36E0B-3F39-720B-E5E1-E931F34CB950">
</Mg>
<Mg id="89D674D7-665EFF65C20A71506711-2BCCAC05A576" lID="89D674D7-31F9-D93D-73E0-665EFF65C20A" rID="71506711-481D-6C32-6A24-2BCCAC05A576">
</Mg>
<Mg id="E22158FC-78530525C25575598DA3-F3AF8FF1AB59" lID="E22158FC-409E-A487-CC46-78530525C255" rID="75598DA3-6766-33A1-6645-F3AF8FF1AB59">
</Mg>
</containedMappings>
</CM>
<CM id="DDBAFE8B-8B363262CAA9F0AD5A40-595FD0DB5F39" lID="DDBAFE8B-B820-1773-EE96-8B363262CAA9" lT="3" rID="F0AD5A40-5659-C806-BEA1-595FD0DB5F39" rT="4" rSEnt="96125017-F1D2-153D-CBAC-D12E0939CF4E" rTEnt="FB782D70-50E0-0A98-4654-5E94050F8458">
</CM>
<CM id="FB782D70-5E94050F845825DE0936-9EAA1E0DA843" lID="FB782D70-50E0-0A98-4654-5E94050F8458" lT="0" rID="25DE0936-5106-79A2-1678-9EAA1E0DA843" rT="4">
......@@ -80,6 +92,8 @@
</CM>
<CM id="46906DFA-7A87FFE7755C6A45C1C6-BA841A05B730" lID="46906DFA-66DD-2DD5-790C-7A87FFE7755C" lT="3" rID="6A45C1C6-8C3B-317C-9221-BA841A05B730" rT="8" rSEnt="FB782D70-50E0-0A98-4654-5E94050F8458" rTEnt="1558C95F-4CEC-1E30-AA15-58B7C6ACD81B">
</CM>
<CM id="B934A368-4DDD707ADAB751EE3780-7ED699DD5948" lID="B934A368-41CA-2247-7505-4DDD707ADAB7" lT="3" rID="51EE3780-3B5D-E1A1-65B0-7ED699DD5948" rT="8" rSEnt="96125017-F1D2-153D-CBAC-D12E0939CF4E" rTEnt="B1A287E6-50CA-DB8B-0AAD-60C303A2A402">
</CM>
<CM id="C49FD692-A4D5B8CDFC01C7DC4550-5E37D6D8832D" lID="C49FD692-24A0-3030-2280-A4D5B8CDFC01" lT="3" rID="C7DC4550-6D2C-B38B-5C23-5E37D6D8832D" rT="8" rSEnt="96125017-F1D2-153D-CBAC-D12E0939CF4E" rTEnt="312E0255-FAA7-1630-54E5-A4FCB50F6276">
</CM>
</mappings>
......
......@@ -6,6 +6,7 @@
<object objectType="Table" objectID="0AF231FE-3CA2-BFD0-E42B-0DFDC72D4D26" name="Playlist" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.relational.Table" propertyParentId="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" propertySourceId="" propertyTargetId=""/>
<object objectType="Table" objectID="47A181FD-9D20-6987-2EAE-0B7F53C88FB3" name="Playlist_has_Music" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.relational.Table" propertyParentId="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" propertySourceId="" propertyTargetId=""/>
<object objectType="Table" objectID="D088A558-CA22-9A96-F938-4F7712E4AEF1" name="Preferences" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.relational.Table" propertyParentId="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" propertySourceId="" propertyTargetId=""/>
<object objectType="Table" objectID="1243C675-86A2-977F-2EFA-8F6C72D2CB26" name="Statistics" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.relational.Table" propertyParentId="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" propertySourceId="" propertyTargetId=""/>
<object objectType="Table" objectID="175D64CD-6D93-E0AE-DD13-FF75CAB2DC92" name="User" seqName="seg_0" propertyClassName="oracle.dbtools.crest.model.design.relational.Table" propertyParentId="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" propertySourceId="" propertyTargetId=""/>
<object objectType="FKIndexAssociation" objectID="14761BF2-0284-F09E-1C36-5AD59C18B84E" name="History_Music_FK" seqName="seg_0" containerID="F0AD5A40-5659-C806-BEA1-595FD0DB5F39" refContainerID="25DE0936-5106-79A2-1678-9EAA1E0DA843" propertyClassName="oracle.dbtools.crest.model.design.relational.FKIndexAssociation" propertyParentId="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" propertySourceId="25DE0936-5106-79A2-1678-9EAA1E0DA843" propertyTargetId="F0AD5A40-5659-C806-BEA1-595FD0DB5F39"/>
<object objectType="FKIndexAssociation" objectID="6AA622A5-D308-C63C-2AF6-730CF06EBF34" name="History_User_FK" seqName="seg_0" containerID="F0AD5A40-5659-C806-BEA1-595FD0DB5F39" refContainerID="175D64CD-6D93-E0AE-DD13-FF75CAB2DC92" propertyClassName="oracle.dbtools.crest.model.design.relational.FKIndexAssociation" propertyParentId="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" propertySourceId="175D64CD-6D93-E0AE-DD13-FF75CAB2DC92" propertyTargetId="F0AD5A40-5659-C806-BEA1-595FD0DB5F39"/>
......@@ -13,4 +14,5 @@
<object objectType="FKIndexAssociation" objectID="B59DC6EC-C75B-86D4-AFA3-705630B49873" name="Playlist_has_Music_Music_FK" seqName="seg_0" containerID="47A181FD-9D20-6987-2EAE-0B7F53C88FB3" refContainerID="25DE0936-5106-79A2-1678-9EAA1E0DA843" propertyClassName="oracle.dbtools.crest.model.design.relational.FKIndexAssociation" propertyParentId="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" propertySourceId="25DE0936-5106-79A2-1678-9EAA1E0DA843" propertyTargetId="47A181FD-9D20-6987-2EAE-0B7F53C88FB3"/>
<object objectType="FKIndexAssociation" objectID="518E00B2-30C8-083A-0841-D61034BE188E" name="Playlist_has_Music_Playlist_FK" seqName="seg_0" containerID="47A181FD-9D20-6987-2EAE-0B7F53C88FB3" refContainerID="0AF231FE-3CA2-BFD0-E42B-0DFDC72D4D26" propertyClassName="oracle.dbtools.crest.model.design.relational.FKIndexAssociation" propertyParentId="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" propertySourceId="0AF231FE-3CA2-BFD0-E42B-0DFDC72D4D26" propertyTargetId="47A181FD-9D20-6987-2EAE-0B7F53C88FB3"/>
<object objectType="FKIndexAssociation" objectID="C7DC4550-6D2C-B38B-5C23-5E37D6D8832D" name="Preferences_User_FK" seqName="seg_0" containerID="D088A558-CA22-9A96-F938-4F7712E4AEF1" refContainerID="175D64CD-6D93-E0AE-DD13-FF75CAB2DC92" propertyClassName="oracle.dbtools.crest.model.design.relational.FKIndexAssociation" propertyParentId="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" propertySourceId="175D64CD-6D93-E0AE-DD13-FF75CAB2DC92" propertyTargetId="D088A558-CA22-9A96-F938-4F7712E4AEF1"/>
<object objectType="FKIndexAssociation" objectID="51EE3780-3B5D-E1A1-65B0-7ED699DD5948" name="Statistics_User_FK" seqName="seg_0" containerID="1243C675-86A2-977F-2EFA-8F6C72D2CB26" refContainerID="175D64CD-6D93-E0AE-DD13-FF75CAB2DC92" propertyClassName="oracle.dbtools.crest.model.design.relational.FKIndexAssociation" propertyParentId="C5DFC5DD-35E9-B422-B2BF-B7648E7DE99B" propertySourceId="175D64CD-6D93-E0AE-DD13-FF75CAB2DC92" propertyTargetId="1243C675-86A2-977F-2EFA-8F6C72D2CB26"/>
</oracle.dbtools.crest.model.design.relational.RelationalDesign>
<?xml version = '1.0' encoding = 'UTF-8'?>
<FKIndexAssociation class="oracle.dbtools.crest.model.design.relational.FKIndexAssociation" directorySegmentName="seg_0" id="51EE3780-3B5D-E1A1-65B0-7ED699DD5948" containerWithKeyObject="1243C675-86A2-977F-2EFA-8F6C72D2CB26" localFKIndex="F4D0C2D4-6598-EAB3-C5B6-B3A1428D7822" name="Statistics_User_FK">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:07:52 UTC</createdTime>
<generatorID>B934A368-41CA-2247-7505-4DDD707ADAB7</generatorID>
<ownerDesignName>database_design</ownerDesignName>
<referredTableLongName>User</referredTableLongName>
<deleteRule>CASCADE</deleteRule>
<referredTableID>175D64CD-6D93-E0AE-DD13-FF75CAB2DC92</referredTableID>
<keyObject>D02538CD-C7A9-1C9E-7706-9BD9CDCB8B5D</keyObject>
<referredKeyID>D02538CD-C7A9-1C9E-7706-9BD9CDCB8B5D</referredKeyID>
<mandatory>true</mandatory>
<refColNames>user_id</refColNames>
<transferable>true</transferable>
<rely>false</rely>
<columnDependencyConstraintGenerateInDDL>true</columnDependencyConstraintGenerateInDDL>
</FKIndexAssociation>
\ No newline at end of file
......@@ -16,15 +16,19 @@
<objectViews>
<OView class="oracle.dbtools.crest.swingui.relational.TVTable" oid="0AF231FE-3CA2-BFD0-E42B-0DFDC72D4D26" otype="Table" vid="EE21C7FE-C85E-5A2F-1C78-65A01371BC3B">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<bounds x="42" y="289" width="251" height="110"/>
<bounds x="4" y="390" width="253" height="110"/>
</OView>
<OView class="oracle.dbtools.crest.swingui.relational.TVTable" oid="1243C675-86A2-977F-2EFA-8F6C72D2CB26" otype="Table" vid="96F7DC31-5392-F6F5-90A9-53BD7AAFBAD7">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<bounds x="284" y="402" width="235" height="127"/>
</OView>
<OView class="oracle.dbtools.crest.swingui.relational.TVTable" oid="175D64CD-6D93-E0AE-DD13-FF75CAB2DC92" otype="Table" vid="D2EC0BC0-F700-1329-2716-2C21984B5622">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<bounds x="402" y="426" width="205" height="110"/>
<bounds x="590" y="412" width="204" height="110"/>
</OView>
<OView class="oracle.dbtools.crest.swingui.relational.TVTable" oid="25DE0936-5106-79A2-1678-9EAA1E0DA843" otype="Table" vid="2EF161ED-9225-9235-FB82-8D46B46E7C99">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<bounds x="382" y="38" width="265" height="132"/>
<bounds x="217" y="240" width="266" height="127"/>
</OView>
<OView class="oracle.dbtools.crest.swingui.relational.TVTable" oid="47A181FD-9D20-6987-2EAE-0B7F53C88FB3" otype="Table" vid="44FE6C73-9DC7-1AD1-9776-430C14CF03AD">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
......@@ -32,15 +36,15 @@
</OView>
<OView class="oracle.dbtools.crest.swingui.relational.TVTable" oid="D088A558-CA22-9A96-F938-4F7712E4AEF1" otype="Table" vid="A05D5803-ED8E-B325-BEA5-C740A63CE2DF">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<bounds x="677" y="415" width="257" height="138"/>
<bounds x="845" y="396" width="263" height="139"/>
</OView>
<OView class="oracle.dbtools.crest.swingui.relational.TVTable" oid="D1128F38-5763-FC3D-4FB1-14F78EDBE4CB" otype="Table" vid="D81A6E47-E007-9797-50BE-F7FF859B5323">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<bounds x="740" y="40" width="227" height="138"/>
<bounds x="333" y="25" width="233" height="137"/>
</OView>
<OView class="oracle.dbtools.crest.swingui.relational.TVTable" oid="F0AD5A40-5659-C806-BEA1-595FD0DB5F39" otype="Table" vid="CA7E6911-92B6-3662-B80D-2237D96C2937">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<bounds x="396" y="238" width="235" height="118"/>
<bounds x="578" y="227" width="234" height="118"/>
</OView>
</objectViews>
<connectors>
......@@ -49,8 +53,8 @@
<backgroundColor>-16777216</backgroundColor>
<lineWidth>1</lineWidth>
<points>
<point x="498" y="170"/>
<point x="498" y="238"/>
<point x="483" y="307"/>
<point x="578" y="307"/>
</points>
</Connector>
<Connector class="oracle.dbtools.crest.swingui.relational.TVFKRelation" oid="518E00B2-30C8-083A-0841-D61034BE188E" otype="FKIndexAssociation" vid_source="EE21C7FE-C85E-5A2F-1C78-65A01371BC3B" vid_target="44FE6C73-9DC7-1AD1-9776-430C14CF03AD">
......@@ -58,8 +62,17 @@
<backgroundColor>-16777216</backgroundColor>
<lineWidth>1</lineWidth>
<points>
<point x="167" y="289"/>
<point x="167" y="142"/>
<point x="130" y="390"/>
<point x="130" y="142"/>
</points>
</Connector>
<Connector class="oracle.dbtools.crest.swingui.relational.TVFKRelation" oid="51EE3780-3B5D-E1A1-65B0-7ED699DD5948" otype="FKIndexAssociation" vid_source="D2EC0BC0-F700-1329-2716-2C21984B5622" vid_target="96F7DC31-5392-F6F5-90A9-53BD7AAFBAD7">
<hideElementsInCurrentOnly>false</hideElementsInCurrentOnly>
<backgroundColor>-16777216</backgroundColor>
<lineWidth>1</lineWidth>
<points>
<point x="590" y="467"/>
<point x="519" y="467"/>
</points>
</Connector>
<Connector class="oracle.dbtools.crest.swingui.relational.TVFKRelation" oid="6A45C1C6-8C3B-317C-9221-BA841A05B730" otype="FKIndexAssociation" vid_source="2EF161ED-9225-9235-FB82-8D46B46E7C99" vid_target="D81A6E47-E007-9797-50BE-F7FF859B5323">
......@@ -67,8 +80,8 @@
<backgroundColor>-16777216</backgroundColor>
<lineWidth>1</lineWidth>
<points>
<point x="647" y="105"/>
<point x="740" y="105"/>
<point x="408" y="240"/>
<point x="408" y="162"/>
</points>
</Connector>
<Connector class="oracle.dbtools.crest.swingui.relational.TVFKRelation" oid="6AA622A5-D308-C63C-2AF6-730CF06EBF34" otype="FKIndexAssociation" vid_source="D2EC0BC0-F700-1329-2716-2C21984B5622" vid_target="CA7E6911-92B6-3662-B80D-2237D96C2937">
......@@ -76,8 +89,8 @@
<backgroundColor>-16777216</backgroundColor>
<lineWidth>1</lineWidth>
<points>
<point x="504" y="426"/>
<point x="504" y="356"/>
<point x="692" y="412"/>
<point x="692" y="345"/>
</points>
</Connector>
<Connector class="oracle.dbtools.crest.swingui.relational.TVFKRelation" oid="B59DC6EC-C75B-86D4-AFA3-705630B49873" otype="FKIndexAssociation" vid_source="2EF161ED-9225-9235-FB82-8D46B46E7C99" vid_target="44FE6C73-9DC7-1AD1-9776-430C14CF03AD">
......@@ -85,8 +98,8 @@
<backgroundColor>-16777216</backgroundColor>
<lineWidth>1</lineWidth>
<points>
<point x="382" y="90"/>
<point x="308" y="90"/>
<point x="262" y="240"/>
<point x="262" y="142"/>
</points>
</Connector>
<Connector class="oracle.dbtools.crest.swingui.relational.TVFKRelation" oid="C7DC4550-6D2C-B38B-5C23-5E37D6D8832D" otype="FKIndexAssociation" vid_source="D2EC0BC0-F700-1329-2716-2C21984B5622" vid_target="A05D5803-ED8E-B325-BEA5-C740A63CE2DF">
......@@ -94,8 +107,8 @@
<backgroundColor>-16777216</backgroundColor>
<lineWidth>1</lineWidth>
<points>
<point x="472" y="141"/>
<point x="677" y="481"/>
<point x="794" y="467"/>
<point x="845" y="467"/>
</points>
</Connector>
</connectors>
......
<?xml version = '1.0' encoding = 'UTF-8'?>
<Table class="oracle.dbtools.crest.model.design.relational.Table" directorySegmentName="seg_0" id="1243C675-86A2-977F-2EFA-8F6C72D2CB26" name="Statistics">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:07:52 UTC</createdTime>
<generatorID>B1A287E6-50CA-DB8B-0AAD-60C303A2A402</generatorID>
<ownerDesignName>database_design</ownerDesignName>
<allowColumnReorder>false</allowColumnReorder>
<existDependencyGenerateInDDl>true</existDependencyGenerateInDDl>
<parsed>true</parsed>
<columns itemClass="oracle.dbtools.crest.model.design.relational.Column">
<Column name="lang" id="71506711-481D-6C32-6A24-2BCCAC05A576">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:07:52 UTC</createdTime>
<generatorID>89D674D7-31F9-D93D-73E0-665EFF65C20A</generatorID>
<ownerDesignName>database_design</ownerDesignName>
<nullsAllowed>true</nullsAllowed>
<useDomainConstraints>false</useDomainConstraints>
<use>1</use>
<logicalDatatype>LOGDT024</logicalDatatype>
<dataTypeSize>5 CHAR</dataTypeSize>
<ownDataTypeParameters>5 CHAR,,</ownDataTypeParameters>
<autoIncrementCycle>false</autoIncrementCycle>
</Column>
<Column name="downloads" id="76E36E0B-3F39-720B-E5E1-E931F34CB950">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:07:52 UTC</createdTime>
<generatorID>19C812C7-2829-FCC6-7AB0-8EF0080E3DF5</generatorID>
<ownerDesignName>database_design</ownerDesignName>
<nullsAllowed>true</nullsAllowed>
<useDomainConstraints>false</useDomainConstraints>
<use>1</use>
<logicalDatatype>LOGDT011</logicalDatatype>
<ownDataTypeParameters>,,</ownDataTypeParameters>
<autoIncrementCycle>false</autoIncrementCycle>
</Column>
<Column name="last_time_active" id="75598DA3-6766-33A1-6645-F3AF8FF1AB59">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:07:52 UTC</createdTime>
<generatorID>E22158FC-409E-A487-CC46-78530525C255</generatorID>
<ownerDesignName>database_design</ownerDesignName>
<nullsAllowed>true</nullsAllowed>
<useDomainConstraints>false</useDomainConstraints>
<use>1</use>
<logicalDatatype>LOGDT007</logicalDatatype>
<ownDataTypeParameters>,,</ownDataTypeParameters>
<autoIncrementCycle>false</autoIncrementCycle>
</Column>
<Column name="User_user_id" id="44652E9D-2CE9-68CD-D636-F466221E35AD">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:07:52 UTC</createdTime>
<generatorID>0C4521CC-B720-4EEA-EF48-2AB477F192BB</generatorID>
<ownerDesignName>database_design</ownerDesignName>
<useDomainConstraints>false</useDomainConstraints>
<use>1</use>
<logicalDatatype>LOGDT011</logicalDatatype>
<ownDataTypeParameters>,,</ownDataTypeParameters>
<previousColumn>false</previousColumn>
<autoIncrementCycle>false</autoIncrementCycle>
<associations>
<colAssociation fkAssociation="51EE3780-3B5D-E1A1-65B0-7ED699DD5948" referredColumn="7794EE2F-2CCF-4261-4CE3-DF17DC38EB8E"/>
</associations>
</Column>
</columns>
<indexes itemClass="oracle.dbtools.crest.model.design.relational.Index">
<ind_PK_UK id="B01BAEC5-2ADC-175D-E1E6-96B4E3DAA8EE" name="Statistics__IDX">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:07:52 UTC</createdTime>
<ownerDesignName>database_design</ownerDesignName>
<indexState>Unique Plain Index</indexState>
<isSurrogateKey>false</isSurrogateKey>
<relationGeneratorID>B934A368-41CA-2247-7505-4DDD707ADAB7</relationGeneratorID>
<indexColumnUsage>
<colUsage columnID="44652E9D-2CE9-68CD-D636-F466221E35AD"/>
</indexColumnUsage>
</ind_PK_UK>
<ind_PK_UK id="F4D0C2D4-6598-EAB3-C5B6-B3A1428D7822" name="Statistics_User_FK">
<createdBy>Javier Alonso Silva</createdBy>
<createdTime>2018-06-19 17:07:52 UTC</createdTime>
<generatorID>B934A368-41CA-2247-7505-4DDD707ADAB7</generatorID>
<ownerDesignName>database_design</ownerDesignName>
<indexState>Foreign Key</indexState>
<isSurrogateKey>false</isSurrogateKey>
<indexColumnUsage>
<colUsage columnID="44652E9D-2CE9-68CD-D636-F466221E35AD"/>
</indexColumnUsage>
</ind_PK_UK>
</indexes>
</Table>
\ No newline at end of file
......@@ -49,3 +49,11 @@ CREATE TABLE IF NOT EXISTS "User" (
name TEXT,
PRIMARY KEY (user_id)
);
CREATE TABLE IF NOT EXISTS Statistics (
lang VARCHAR2(5 CHAR),
downloads INT,
last_time_active DATE,
user_id INT NOT NULL,
PRIMARY KEY (user_id)
)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment