Skip to content

Commit de1458a

Browse files
dmealingclaude
andcommitted
fix(codegen): regenerate generated fixtures for FR-017 M:N corpus entities (no M:N nav yet — Phase 3)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent cba4107 commit de1458a

7 files changed

Lines changed: 126 additions & 0 deletions

File tree

server/csharp/MetaObjects.IntegrationTests/Generated/AppDbContext.g.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ public class AppDbContext : DbContext
1010
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
1111

1212
public DbSet<Asset> Assets { get; set; } = default!;
13+
public DbSet<Follow> Follows { get; set; } = default!;
14+
public DbSet<Friendship> Friendships { get; set; } = default!;
1315
public DbSet<Measurement> Measurements { get; set; } = default!;
16+
public DbSet<Person> Persons { get; set; } = default!;
17+
public DbSet<Post> Posts { get; set; } = default!;
18+
public DbSet<PostTag> PostTags { get; set; } = default!;
1419
public DbSet<Program> Programs { get; set; } = default!;
1520
public DbSet<ProgramStat> ProgramStats { get; set; } = default!;
1621
public DbSet<ProgramView> ProgramViews { get; set; } = default!;
22+
public DbSet<Tag> Tags { get; set; } = default!;
1723
public DbSet<Week> Weeks { get; set; } = default!;
1824

1925
protected override void OnModelCreating(ModelBuilder modelBuilder)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// <auto-generated/>
2+
// Generated by MetaObjects entity-generator. Do not edit by hand.
3+
#nullable enable
4+
using System;
5+
using System.Collections.Generic;
6+
using System.ComponentModel.DataAnnotations;
7+
using System.ComponentModel.DataAnnotations.Schema;
8+
9+
namespace MetaObjects.IntegrationTests.Generated;
10+
11+
[PrimaryKey(nameof(FollowerId), nameof(FolloweeId))]
12+
[Table("follows")]
13+
public class Follow
14+
{
15+
[Column("followerId")]
16+
public long FollowerId { get; set; }
17+
[Column("followeeId")]
18+
public long FolloweeId { get; set; }
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// <auto-generated/>
2+
// Generated by MetaObjects entity-generator. Do not edit by hand.
3+
#nullable enable
4+
using System;
5+
using System.Collections.Generic;
6+
using System.ComponentModel.DataAnnotations;
7+
using System.ComponentModel.DataAnnotations.Schema;
8+
9+
namespace MetaObjects.IntegrationTests.Generated;
10+
11+
[PrimaryKey(nameof(PersonAId), nameof(PersonBId))]
12+
[Table("friendships")]
13+
public class Friendship
14+
{
15+
[Column("personAId")]
16+
public long PersonAId { get; set; }
17+
[Column("personBId")]
18+
public long PersonBId { get; set; }
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// <auto-generated/>
2+
// Generated by MetaObjects entity-generator. Do not edit by hand.
3+
#nullable enable
4+
using System;
5+
using System.Collections.Generic;
6+
using System.ComponentModel.DataAnnotations;
7+
using System.ComponentModel.DataAnnotations.Schema;
8+
9+
namespace MetaObjects.IntegrationTests.Generated;
10+
11+
[Table("people")]
12+
public class Person
13+
{
14+
[Key]
15+
[Column("id")]
16+
public long Id { get; set; }
17+
[Column("name")]
18+
[MaxLength(80)]
19+
[Required]
20+
public string Name { get; set; } = default!;
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// <auto-generated/>
2+
// Generated by MetaObjects entity-generator. Do not edit by hand.
3+
#nullable enable
4+
using System;
5+
using System.Collections.Generic;
6+
using System.ComponentModel.DataAnnotations;
7+
using System.ComponentModel.DataAnnotations.Schema;
8+
9+
namespace MetaObjects.IntegrationTests.Generated;
10+
11+
[Table("posts")]
12+
public class Post
13+
{
14+
[Key]
15+
[Column("id")]
16+
public long Id { get; set; }
17+
[Column("title")]
18+
[MaxLength(200)]
19+
[Required]
20+
public string Title { get; set; } = default!;
21+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// <auto-generated/>
2+
// Generated by MetaObjects entity-generator. Do not edit by hand.
3+
#nullable enable
4+
using System;
5+
using System.Collections.Generic;
6+
using System.ComponentModel.DataAnnotations;
7+
using System.ComponentModel.DataAnnotations.Schema;
8+
9+
namespace MetaObjects.IntegrationTests.Generated;
10+
11+
[PrimaryKey(nameof(PostId), nameof(TagId))]
12+
[Table("post_tags")]
13+
public class PostTag
14+
{
15+
[Column("postId")]
16+
public long PostId { get; set; }
17+
[Column("tagId")]
18+
public long TagId { get; set; }
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// <auto-generated/>
2+
// Generated by MetaObjects entity-generator. Do not edit by hand.
3+
#nullable enable
4+
using System;
5+
using System.Collections.Generic;
6+
using System.ComponentModel.DataAnnotations;
7+
using System.ComponentModel.DataAnnotations.Schema;
8+
9+
namespace MetaObjects.IntegrationTests.Generated;
10+
11+
[Table("tags")]
12+
public class Tag
13+
{
14+
[Key]
15+
[Column("id")]
16+
public long Id { get; set; }
17+
[Column("name")]
18+
[MaxLength(80)]
19+
[Required]
20+
public string Name { get; set; } = default!;
21+
}

0 commit comments

Comments
 (0)